Latest generation

This commit is contained in:
ci core model
2025-03-17 13:04:48 +00:00
parent 91448f9767
commit 14bdd43dfa
448 changed files with 177581 additions and 92 deletions

View File

@@ -0,0 +1,27 @@
//
// Generated code. Do not modify.
// source: google/api/annotations.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 'http.pb.dart' as $93;
class Annotations {
static final http = $pb.Extension<$93.HttpRule>(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'http', 72295728, $pb.PbFieldType.OM, defaultOrMaker: $93.HttpRule.getDefault, subBuilder: $93.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');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/api/annotations.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

View File

@@ -0,0 +1,15 @@
//
// Generated code. Do not modify.
// source: google/api/annotations.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;

View File

@@ -0,0 +1,29 @@
//
// Generated code. Do not modify.
// source: google/api/field_behavior.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_behavior.pbenum.dart';
export 'field_behavior.pbenum.dart';
class Field_behavior {
static final fieldBehavior = $pb.Extension<FieldBehavior>.repeated(_omitMessageNames ? '' : 'google.protobuf.FieldOptions', _omitFieldNames ? '' : 'fieldBehavior', 1052, $pb.PbFieldType.KE, check: $pb.getCheckFunction($pb.PbFieldType.KE), valueOf: FieldBehavior.valueOf, enumValues: FieldBehavior.values);
static void registerAllExtensions($pb.ExtensionRegistry registry) {
registry.add(fieldBehavior);
}
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,46 @@
//
// Generated code. Do not modify.
// source: google/api/field_behavior.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;
/// 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, _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 $core.List<FieldBehavior> values = <FieldBehavior> [
FIELD_BEHAVIOR_UNSPECIFIED,
OPTIONAL,
REQUIRED,
OUTPUT_ONLY,
INPUT_ONLY,
IMMUTABLE,
];
static final $core.Map<$core.int, FieldBehavior> _byValue = $pb.ProtobufEnum.initByValue(values);
static FieldBehavior? valueOf($core.int value) => _byValue[value];
const FieldBehavior._($core.int v, $core.String n) : super(v, n);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -0,0 +1,34 @@
//
// Generated code. Do not modify.
// source: google/api/field_behavior.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 fieldBehaviorDescriptor instead')
const FieldBehavior$json = {
'1': 'FieldBehavior',
'2': [
{'1': 'FIELD_BEHAVIOR_UNSPECIFIED', '2': 0},
{'1': 'OPTIONAL', '2': 1},
{'1': 'REQUIRED', '2': 2},
{'1': 'OUTPUT_ONLY', '2': 3},
{'1': 'INPUT_ONLY', '2': 4},
{'1': 'IMMUTABLE', '2': 5},
],
};
/// Descriptor for `FieldBehavior`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List fieldBehaviorDescriptor = $convert.base64Decode(
'Cg1GaWVsZEJlaGF2aW9yEh4KGkZJRUxEX0JFSEFWSU9SX1VOU1BFQ0lGSUVEEAASDAoIT1BUSU'
'9OQUwQARIMCghSRVFVSVJFRBACEg8KC09VVFBVVF9PTkxZEAMSDgoKSU5QVVRfT05MWRAEEg0K'
'CUlNTVVUQUJMRRAF');

647
lib/google/api/http.pb.dart Normal file
View File

@@ -0,0 +1,647 @@
//
// Generated code. Do not modify.
// source: google/api/http.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;
/// 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 {
factory Http({
$core.Iterable<HttpRule>? rules,
$core.bool? fullyDecodeReservedExpansion,
}) {
final $result = create();
if (rules != null) {
$result.rules.addAll(rules);
}
if (fullyDecodeReservedExpansion != null) {
$result.fullyDecodeReservedExpansion = fullyDecodeReservedExpansion;
}
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<HttpRule>(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')
Http clone() => Http()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Http create() => Http._();
Http createEmptyInstance() => create();
static $pb.PbList<Http> createRepeated() => $pb.PbList<Http>();
@$core.pragma('dart2js:noInline')
static Http getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Http>(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<HttpRule> 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)
set fullyDecodeReservedExpansion($core.bool v) { $_setBool(1, v); }
@$pb.TagNumber(2)
$core.bool hasFullyDecodeReservedExpansion() => $_has(1);
@$pb.TagNumber(2)
void clearFullyDecodeReservedExpansion() => clearField(2);
}
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 | gRPC
/// -----|-----
/// `GET /v1/messages/123456` | `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 | gRPC
/// -----|-----
/// `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
/// `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&param=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 | gRPC
/// -----|-----
/// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `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 | gRPC
/// -----|-----
/// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `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 | gRPC
/// -----|-----
/// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
/// `GET /v1/users/me/messages/123456` | `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.
///
/// Example:
///
/// http:
/// rules:
/// # Selects a gRPC method and applies HttpRule to it.
/// - 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 {
factory HttpRule({
$core.String? selector,
$core.String? get,
$core.String? put,
$core.String? post,
$core.String? delete,
$core.String? patch,
$core.String? body,
CustomHttpPattern? custom,
$core.Iterable<HttpRule>? additionalBindings,
$core.String? responseBody,
}) {
final $result = create();
if (selector != null) {
$result.selector = selector;
}
if (get != null) {
$result.get = get;
}
if (put != null) {
$result.put = put;
}
if (post != null) {
$result.post = post;
}
if (delete != null) {
$result.delete = delete;
}
if (patch != null) {
$result.patch = patch;
}
if (body != null) {
$result.body = body;
}
if (custom != null) {
$result.custom = custom;
}
if (additionalBindings != null) {
$result.additionalBindings.addAll(additionalBindings);
}
if (responseBody != null) {
$result.responseBody = responseBody;
}
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<CustomHttpPattern>(8, _omitFieldNames ? '' : 'custom', subBuilder: CustomHttpPattern.create)
..pc<HttpRule>(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')
HttpRule clone() => HttpRule()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static HttpRule create() => HttpRule._();
HttpRule createEmptyInstance() => create();
static $pb.PbList<HttpRule> createRepeated() => $pb.PbList<HttpRule>();
@$core.pragma('dart2js:noInline')
static HttpRule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<HttpRule>(create);
static HttpRule? _defaultInstance;
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)
set selector($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasSelector() => $_has(0);
@$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)
set get($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasGet() => $_has(1);
@$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)
set put($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasPut() => $_has(2);
@$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)
set post($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasPost() => $_has(3);
@$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)
set delete($core.String v) { $_setString(4, v); }
@$pb.TagNumber(5)
$core.bool hasDelete() => $_has(4);
@$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)
set patch($core.String v) { $_setString(5, v); }
@$pb.TagNumber(6)
$core.bool hasPatch() => $_has(5);
@$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)
set body($core.String v) { $_setString(6, v); }
@$pb.TagNumber(7)
$core.bool hasBody() => $_has(6);
@$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)
set custom(CustomHttpPattern v) { setField(8, v); }
@$pb.TagNumber(8)
$core.bool hasCustom() => $_has(7);
@$pb.TagNumber(8)
void clearCustom() => clearField(8);
@$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<HttpRule> 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)
set responseBody($core.String v) { $_setString(9, v); }
@$pb.TagNumber(12)
$core.bool hasResponseBody() => $_has(9);
@$pb.TagNumber(12)
void clearResponseBody() => clearField(12);
}
/// A custom pattern is used for defining custom HTTP verb.
class CustomHttpPattern extends $pb.GeneratedMessage {
factory CustomHttpPattern({
$core.String? kind,
$core.String? path,
}) {
final $result = create();
if (kind != null) {
$result.kind = kind;
}
if (path != null) {
$result.path = path;
}
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')
CustomHttpPattern clone() => CustomHttpPattern()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CustomHttpPattern copyWith(void Function(CustomHttpPattern) updates) => super.copyWith((message) => updates(message as CustomHttpPattern)) as CustomHttpPattern;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CustomHttpPattern create() => CustomHttpPattern._();
CustomHttpPattern createEmptyInstance() => create();
static $pb.PbList<CustomHttpPattern> createRepeated() => $pb.PbList<CustomHttpPattern>();
@$core.pragma('dart2js:noInline')
static CustomHttpPattern getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CustomHttpPattern>(create);
static CustomHttpPattern? _defaultInstance;
/// The name of this custom HTTP verb.
@$pb.TagNumber(1)
$core.String get kind => $_getSZ(0);
@$pb.TagNumber(1)
set kind($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasKind() => $_has(0);
@$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)
set path($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasPath() => $_has(1);
@$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');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/api/http.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

View File

@@ -0,0 +1,74 @@
//
// Generated code. Do not modify.
// source: google/api/http.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 httpDescriptor instead')
const Http$json = {
'1': 'Http',
'2': [
{'1': 'rules', '3': 1, '4': 3, '5': 11, '6': '.google.api.HttpRule', '10': 'rules'},
{'1': 'fully_decode_reserved_expansion', '3': 2, '4': 1, '5': 8, '10': 'fullyDecodeReservedExpansion'},
],
};
/// Descriptor for `Http`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List httpDescriptor = $convert.base64Decode(
'CgRIdHRwEioKBXJ1bGVzGAEgAygLMhQuZ29vZ2xlLmFwaS5IdHRwUnVsZVIFcnVsZXMSRQofZn'
'VsbHlfZGVjb2RlX3Jlc2VydmVkX2V4cGFuc2lvbhgCIAEoCFIcZnVsbHlEZWNvZGVSZXNlcnZl'
'ZEV4cGFuc2lvbg==');
@$core.Deprecated('Use httpRuleDescriptor instead')
const HttpRule$json = {
'1': 'HttpRule',
'2': [
{'1': 'selector', '3': 1, '4': 1, '5': 9, '10': 'selector'},
{'1': 'get', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'get'},
{'1': 'put', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'put'},
{'1': 'post', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'post'},
{'1': 'delete', '3': 5, '4': 1, '5': 9, '9': 0, '10': 'delete'},
{'1': 'patch', '3': 6, '4': 1, '5': 9, '9': 0, '10': 'patch'},
{'1': 'custom', '3': 8, '4': 1, '5': 11, '6': '.google.api.CustomHttpPattern', '9': 0, '10': 'custom'},
{'1': 'body', '3': 7, '4': 1, '5': 9, '10': 'body'},
{'1': 'response_body', '3': 12, '4': 1, '5': 9, '10': 'responseBody'},
{'1': 'additional_bindings', '3': 11, '4': 3, '5': 11, '6': '.google.api.HttpRule', '10': 'additionalBindings'},
],
'8': [
{'1': 'pattern'},
],
};
/// Descriptor for `HttpRule`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List httpRuleDescriptor = $convert.base64Decode(
'CghIdHRwUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISEgoDZ2V0GAIgASgJSABSA2'
'dldBISCgNwdXQYAyABKAlIAFIDcHV0EhQKBHBvc3QYBCABKAlIAFIEcG9zdBIYCgZkZWxldGUY'
'BSABKAlIAFIGZGVsZXRlEhYKBXBhdGNoGAYgASgJSABSBXBhdGNoEjcKBmN1c3RvbRgIIAEoCz'
'IdLmdvb2dsZS5hcGkuQ3VzdG9tSHR0cFBhdHRlcm5IAFIGY3VzdG9tEhIKBGJvZHkYByABKAlS'
'BGJvZHkSIwoNcmVzcG9uc2VfYm9keRgMIAEoCVIMcmVzcG9uc2VCb2R5EkUKE2FkZGl0aW9uYW'
'xfYmluZGluZ3MYCyADKAsyFC5nb29nbGUuYXBpLkh0dHBSdWxlUhJhZGRpdGlvbmFsQmluZGlu'
'Z3NCCQoHcGF0dGVybg==');
@$core.Deprecated('Use customHttpPatternDescriptor instead')
const CustomHttpPattern$json = {
'1': 'CustomHttpPattern',
'2': [
{'1': 'kind', '3': 1, '4': 1, '5': 9, '10': 'kind'},
{'1': 'path', '3': 2, '4': 1, '5': 9, '10': 'path'},
],
};
/// Descriptor for `CustomHttpPattern`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List customHttpPatternDescriptor = $convert.base64Decode(
'ChFDdXN0b21IdHRwUGF0dGVybhISCgRraW5kGAEgASgJUgRraW5kEhIKBHBhdGgYAiABKAlSBH'
'BhdGg=');

View File

@@ -0,0 +1,135 @@
//
// Generated code. Do not modify.
// source: google/api/httpbody.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/any.pb.dart' as $89;
/// 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 {
factory HttpBody({
$core.String? contentType,
$core.List<$core.int>? data,
$core.Iterable<$89.Any>? extensions,
}) {
final $result = create();
if (contentType != null) {
$result.contentType = contentType;
}
if (data != null) {
$result.data = data;
}
if (extensions != null) {
$result.extensions.addAll(extensions);
}
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<$89.Any>(3, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, subBuilder: $89.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')
HttpBody clone() => HttpBody()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static HttpBody create() => HttpBody._();
HttpBody createEmptyInstance() => create();
static $pb.PbList<HttpBody> createRepeated() => $pb.PbList<HttpBody>();
@$core.pragma('dart2js:noInline')
static HttpBody getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<HttpBody>(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)
set contentType($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasContentType() => $_has(0);
@$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)
set data($core.List<$core.int> v) { $_setBytes(1, v); }
@$pb.TagNumber(2)
$core.bool hasData() => $_has(1);
@$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<$89.Any> get extensions => $_getList(2);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/api/httpbody.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

View File

@@ -0,0 +1,31 @@
//
// Generated code. Do not modify.
// source: google/api/httpbody.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 httpBodyDescriptor instead')
const HttpBody$json = {
'1': 'HttpBody',
'2': [
{'1': 'content_type', '3': 1, '4': 1, '5': 9, '10': 'contentType'},
{'1': 'data', '3': 2, '4': 1, '5': 12, '10': 'data'},
{'1': 'extensions', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.Any', '10': 'extensions'},
],
};
/// Descriptor for `HttpBody`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List httpBodyDescriptor = $convert.base64Decode(
'CghIdHRwQm9keRIhCgxjb250ZW50X3R5cGUYASABKAlSC2NvbnRlbnRUeXBlEhIKBGRhdGEYAi'
'ABKAxSBGRhdGESNAoKZXh0ZW5zaW9ucxgDIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSCmV4'
'dGVuc2lvbnM=');

View File

@@ -0,0 +1,201 @@
//
// Generated code. Do not modify.
// source: google/protobuf/any.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 '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);
/// }
///
/// 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 := ptypes.MarshalAny(foo)
/// ...
/// foo := &pb.Foo{}
/// if err := ptypes.UnmarshalAny(any, 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": <string>,
/// "lastName": <string>
/// }
///
/// 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 {
factory Any({
$core.String? typeUrl,
$core.List<$core.int>? value,
}) {
final $result = create();
if (typeUrl != null) {
$result.typeUrl = typeUrl;
}
if (value != null) {
$result.value = value;
}
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')
Any clone() => Any()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Any copyWith(void Function(Any) updates) => super.copyWith((message) => updates(message as Any)) as Any;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Any create() => Any._();
Any createEmptyInstance() => create();
static $pb.PbList<Any> createRepeated() => $pb.PbList<Any>();
@$core.pragma('dart2js:noInline')
static Any getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Any>(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.
///
/// 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)
set typeUrl($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasTypeUrl() => $_has(0);
@$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)
set value($core.List<$core.int> v) { $_setBytes(1, v); }
@$pb.TagNumber(2)
$core.bool hasValue() => $_has(1);
@$pb.TagNumber(2)
void clearValue() => clearField(2);
/// Creates a new [Any] encoding [message].
///
/// The [typeUrl] will be [typeUrlPrefix]/`fullName` where `fullName` is
/// the fully qualified name of the type of [message].
static Any pack($pb.GeneratedMessage message,
{$core.String typeUrlPrefix = 'type.googleapis.com'}) {
final result = create();
$mixin.AnyMixin.packIntoAny(result, message,
typeUrlPrefix: typeUrlPrefix);
return result;
}
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/any.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

View File

@@ -0,0 +1,28 @@
//
// Generated code. Do not modify.
// source: google/protobuf/any.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 anyDescriptor instead')
const Any$json = {
'1': 'Any',
'2': [
{'1': 'type_url', '3': 1, '4': 1, '5': 9, '10': 'typeUrl'},
{'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'},
],
};
/// Descriptor for `Any`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List anyDescriptor = $convert.base64Decode(
'CgNBbnkSGQoIdHlwZV91cmwYASABKAlSB3R5cGVVcmwSFAoFdmFsdWUYAiABKAxSBXZhbHVl');

View File

@@ -0,0 +1,457 @@
//
// Generated code. Do not modify.
// source: google/protobuf/api.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 'source_context.pb.dart' as $90;
import 'type.pb.dart' as $92;
import 'type.pbenum.dart' as $92;
/// 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 {
factory Api({
$core.String? name,
$core.Iterable<Method>? methods,
$core.Iterable<$92.Option>? options,
$core.String? version,
$90.SourceContext? sourceContext,
$core.Iterable<Mixin>? mixins,
$92.Syntax? syntax,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (methods != null) {
$result.methods.addAll(methods);
}
if (options != null) {
$result.options.addAll(options);
}
if (version != null) {
$result.version = version;
}
if (sourceContext != null) {
$result.sourceContext = sourceContext;
}
if (mixins != null) {
$result.mixins.addAll(mixins);
}
if (syntax != null) {
$result.syntax = syntax;
}
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<Method>(2, _omitFieldNames ? '' : 'methods', $pb.PbFieldType.PM, subBuilder: Method.create)
..pc<$92.Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $92.Option.create)
..aOS(4, _omitFieldNames ? '' : 'version')
..aOM<$90.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $90.SourceContext.create)
..pc<Mixin>(6, _omitFieldNames ? '' : 'mixins', $pb.PbFieldType.PM, subBuilder: Mixin.create)
..e<$92.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $92.Syntax.SYNTAX_PROTO2, valueOf: $92.Syntax.valueOf, enumValues: $92.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')
Api clone() => Api()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Api create() => Api._();
Api createEmptyInstance() => create();
static $pb.PbList<Api> createRepeated() => $pb.PbList<Api>();
@$core.pragma('dart2js:noInline')
static Api getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Api>(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)
set name($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasName() => $_has(0);
@$pb.TagNumber(1)
void clearName() => clearField(1);
/// The methods of this interface, in unspecified order.
@$pb.TagNumber(2)
$core.List<Method> get methods => $_getList(1);
/// Any metadata attached to the interface.
@$pb.TagNumber(3)
$core.List<$92.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<major-version>`, 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)
set version($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasVersion() => $_has(3);
@$pb.TagNumber(4)
void clearVersion() => clearField(4);
/// Source context for the protocol buffer service represented by this
/// message.
@$pb.TagNumber(5)
$90.SourceContext get sourceContext => $_getN(4);
@$pb.TagNumber(5)
set sourceContext($90.SourceContext v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasSourceContext() => $_has(4);
@$pb.TagNumber(5)
void clearSourceContext() => clearField(5);
@$pb.TagNumber(5)
$90.SourceContext ensureSourceContext() => $_ensure(4);
/// Included interfaces. See [Mixin][].
@$pb.TagNumber(6)
$core.List<Mixin> get mixins => $_getList(5);
/// The source syntax of the service.
@$pb.TagNumber(7)
$92.Syntax get syntax => $_getN(6);
@$pb.TagNumber(7)
set syntax($92.Syntax v) { setField(7, v); }
@$pb.TagNumber(7)
$core.bool hasSyntax() => $_has(6);
@$pb.TagNumber(7)
void clearSyntax() => clearField(7);
}
/// Method represents a method of an API interface.
class Method extends $pb.GeneratedMessage {
factory Method({
$core.String? name,
$core.String? requestTypeUrl,
$core.bool? requestStreaming,
$core.String? responseTypeUrl,
$core.bool? responseStreaming,
$core.Iterable<$92.Option>? options,
$92.Syntax? syntax,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (requestTypeUrl != null) {
$result.requestTypeUrl = requestTypeUrl;
}
if (requestStreaming != null) {
$result.requestStreaming = requestStreaming;
}
if (responseTypeUrl != null) {
$result.responseTypeUrl = responseTypeUrl;
}
if (responseStreaming != null) {
$result.responseStreaming = responseStreaming;
}
if (options != null) {
$result.options.addAll(options);
}
if (syntax != null) {
$result.syntax = syntax;
}
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<$92.Option>(6, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $92.Option.create)
..e<$92.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $92.Syntax.SYNTAX_PROTO2, valueOf: $92.Syntax.valueOf, enumValues: $92.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')
Method clone() => Method()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Method create() => Method._();
Method createEmptyInstance() => create();
static $pb.PbList<Method> createRepeated() => $pb.PbList<Method>();
@$core.pragma('dart2js:noInline')
static Method getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Method>(create);
static Method? _defaultInstance;
/// The simple name of this method.
@$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);
/// A URL of the input message type.
@$pb.TagNumber(2)
$core.String get requestTypeUrl => $_getSZ(1);
@$pb.TagNumber(2)
set requestTypeUrl($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasRequestTypeUrl() => $_has(1);
@$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)
set requestStreaming($core.bool v) { $_setBool(2, v); }
@$pb.TagNumber(3)
$core.bool hasRequestStreaming() => $_has(2);
@$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)
set responseTypeUrl($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasResponseTypeUrl() => $_has(3);
@$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)
set responseStreaming($core.bool v) { $_setBool(4, v); }
@$pb.TagNumber(5)
$core.bool hasResponseStreaming() => $_has(4);
@$pb.TagNumber(5)
void clearResponseStreaming() => clearField(5);
/// Any metadata attached to the method.
@$pb.TagNumber(6)
$core.List<$92.Option> get options => $_getList(5);
/// The source syntax of this method.
@$pb.TagNumber(7)
$92.Syntax get syntax => $_getN(6);
@$pb.TagNumber(7)
set syntax($92.Syntax v) { setField(7, v); }
@$pb.TagNumber(7)
$core.bool hasSyntax() => $_has(6);
@$pb.TagNumber(7)
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 {
factory Mixin({
$core.String? name,
$core.String? root,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (root != null) {
$result.root = root;
}
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')
Mixin clone() => Mixin()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Mixin create() => Mixin._();
Mixin createEmptyInstance() => create();
static $pb.PbList<Mixin> createRepeated() => $pb.PbList<Mixin>();
@$core.pragma('dart2js:noInline')
static Mixin getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Mixin>(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)
set name($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasName() => $_has(0);
@$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)
set root($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasRoot() => $_has(1);
@$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');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/api.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

View File

@@ -0,0 +1,74 @@
//
// Generated code. Do not modify.
// source: google/protobuf/api.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 apiDescriptor instead')
const Api$json = {
'1': 'Api',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'methods', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.Method', '10': 'methods'},
{'1': 'options', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.Option', '10': 'options'},
{'1': 'version', '3': 4, '4': 1, '5': 9, '10': 'version'},
{'1': 'source_context', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.SourceContext', '10': 'sourceContext'},
{'1': 'mixins', '3': 6, '4': 3, '5': 11, '6': '.google.protobuf.Mixin', '10': 'mixins'},
{'1': 'syntax', '3': 7, '4': 1, '5': 14, '6': '.google.protobuf.Syntax', '10': 'syntax'},
],
};
/// Descriptor for `Api`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List apiDescriptor = $convert.base64Decode(
'CgNBcGkSEgoEbmFtZRgBIAEoCVIEbmFtZRIxCgdtZXRob2RzGAIgAygLMhcuZ29vZ2xlLnByb3'
'RvYnVmLk1ldGhvZFIHbWV0aG9kcxIxCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVm'
'Lk9wdGlvblIHb3B0aW9ucxIYCgd2ZXJzaW9uGAQgASgJUgd2ZXJzaW9uEkUKDnNvdXJjZV9jb2'
'50ZXh0GAUgASgLMh4uZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvbnRleHRSDXNvdXJjZUNvbnRl'
'eHQSLgoGbWl4aW5zGAYgAygLMhYuZ29vZ2xlLnByb3RvYnVmLk1peGluUgZtaXhpbnMSLwoGc3'
'ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4');
@$core.Deprecated('Use methodDescriptor instead')
const Method$json = {
'1': 'Method',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'request_type_url', '3': 2, '4': 1, '5': 9, '10': 'requestTypeUrl'},
{'1': 'request_streaming', '3': 3, '4': 1, '5': 8, '10': 'requestStreaming'},
{'1': 'response_type_url', '3': 4, '4': 1, '5': 9, '10': 'responseTypeUrl'},
{'1': 'response_streaming', '3': 5, '4': 1, '5': 8, '10': 'responseStreaming'},
{'1': 'options', '3': 6, '4': 3, '5': 11, '6': '.google.protobuf.Option', '10': 'options'},
{'1': 'syntax', '3': 7, '4': 1, '5': 14, '6': '.google.protobuf.Syntax', '10': 'syntax'},
],
};
/// Descriptor for `Method`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List methodDescriptor = $convert.base64Decode(
'CgZNZXRob2QSEgoEbmFtZRgBIAEoCVIEbmFtZRIoChByZXF1ZXN0X3R5cGVfdXJsGAIgASgJUg'
'5yZXF1ZXN0VHlwZVVybBIrChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCFIQcmVxdWVzdFN0cmVh'
'bWluZxIqChFyZXNwb25zZV90eXBlX3VybBgEIAEoCVIPcmVzcG9uc2VUeXBlVXJsEi0KEnJlc3'
'BvbnNlX3N0cmVhbWluZxgFIAEoCFIRcmVzcG9uc2VTdHJlYW1pbmcSMQoHb3B0aW9ucxgGIAMo'
'CzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb25SB29wdGlvbnMSLwoGc3ludGF4GAcgASgOMhcuZ2'
'9vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4');
@$core.Deprecated('Use mixinDescriptor instead')
const Mixin$json = {
'1': 'Mixin',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'root', '3': 2, '4': 1, '5': 9, '10': 'root'},
],
};
/// Descriptor for `Mixin`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List mixinDescriptor = $convert.base64Decode(
'CgVNaXhpbhISCgRuYW1lGAEgASgJUgRuYW1lEhIKBHJvb3QYAiABKAlSBHJvb3Q=');

View File

@@ -0,0 +1,411 @@
//
// Generated code. Do not modify.
// source: google/protobuf/compiler/plugin.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 '../descriptor.pb.dart' as $91;
/// The version number of protocol compiler.
class Version extends $pb.GeneratedMessage {
factory Version({
$core.int? major,
$core.int? minor,
$core.int? patch,
$core.String? suffix,
}) {
final $result = create();
if (major != null) {
$result.major = major;
}
if (minor != null) {
$result.minor = minor;
}
if (patch != null) {
$result.patch = patch;
}
if (suffix != null) {
$result.suffix = suffix;
}
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 final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Version', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'major', $pb.PbFieldType.O3)
..a<$core.int>(2, _omitFieldNames ? '' : 'minor', $pb.PbFieldType.O3)
..a<$core.int>(3, _omitFieldNames ? '' : 'patch', $pb.PbFieldType.O3)
..aOS(4, _omitFieldNames ? '' : 'suffix')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Version clone() => 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')
Version copyWith(void Function(Version) updates) => 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();
static $pb.PbList<Version> createRepeated() => $pb.PbList<Version>();
@$core.pragma('dart2js:noInline')
static Version getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Version>(create);
static Version? _defaultInstance;
@$pb.TagNumber(1)
$core.int get major => $_getIZ(0);
@$pb.TagNumber(1)
set major($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasMajor() => $_has(0);
@$pb.TagNumber(1)
void clearMajor() => clearField(1);
@$pb.TagNumber(2)
$core.int get minor => $_getIZ(1);
@$pb.TagNumber(2)
set minor($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasMinor() => $_has(1);
@$pb.TagNumber(2)
void clearMinor() => clearField(2);
@$pb.TagNumber(3)
$core.int get patch => $_getIZ(2);
@$pb.TagNumber(3)
set patch($core.int v) { $_setSignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasPatch() => $_has(2);
@$pb.TagNumber(3)
void clearPatch() => clearField(3);
/// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
/// be empty for mainline stable releases.
@$pb.TagNumber(4)
$core.String get suffix => $_getSZ(3);
@$pb.TagNumber(4)
set suffix($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasSuffix() => $_has(3);
@$pb.TagNumber(4)
void clearSuffix() => clearField(4);
}
/// An encoded CodeGeneratorRequest is written to the plugin's stdin.
class CodeGeneratorRequest extends $pb.GeneratedMessage {
factory CodeGeneratorRequest({
$core.Iterable<$core.String>? fileToGenerate,
$core.String? parameter,
Version? compilerVersion,
$core.Iterable<$91.FileDescriptorProto>? protoFile,
}) {
final $result = create();
if (fileToGenerate != null) {
$result.fileToGenerate.addAll(fileToGenerate);
}
if (parameter != null) {
$result.parameter = parameter;
}
if (compilerVersion != null) {
$result.compilerVersion = compilerVersion;
}
if (protoFile != null) {
$result.protoFile.addAll(protoFile);
}
return $result;
}
CodeGeneratorRequest._() : super();
factory CodeGeneratorRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory CodeGeneratorRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CodeGeneratorRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
..pPS(1, _omitFieldNames ? '' : 'fileToGenerate')
..aOS(2, _omitFieldNames ? '' : 'parameter')
..aOM<Version>(3, _omitFieldNames ? '' : 'compilerVersion', subBuilder: Version.create)
..pc<$91.FileDescriptorProto>(15, _omitFieldNames ? '' : 'protoFile', $pb.PbFieldType.PM, subBuilder: $91.FileDescriptorProto.create)
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
CodeGeneratorRequest clone() => CodeGeneratorRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CodeGeneratorRequest copyWith(void Function(CodeGeneratorRequest) updates) => super.copyWith((message) => updates(message as CodeGeneratorRequest)) as CodeGeneratorRequest;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CodeGeneratorRequest create() => CodeGeneratorRequest._();
CodeGeneratorRequest createEmptyInstance() => create();
static $pb.PbList<CodeGeneratorRequest> createRepeated() => $pb.PbList<CodeGeneratorRequest>();
@$core.pragma('dart2js:noInline')
static CodeGeneratorRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CodeGeneratorRequest>(create);
static CodeGeneratorRequest? _defaultInstance;
/// The .proto files that were explicitly listed on the command-line. The
/// code generator should generate code only for these files. Each file's
/// descriptor will be included in proto_file, below.
@$pb.TagNumber(1)
$core.List<$core.String> get fileToGenerate => $_getList(0);
/// The generator parameter passed on the command-line.
@$pb.TagNumber(2)
$core.String get parameter => $_getSZ(1);
@$pb.TagNumber(2)
set parameter($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasParameter() => $_has(1);
@$pb.TagNumber(2)
void clearParameter() => clearField(2);
/// The version number of protocol compiler.
@$pb.TagNumber(3)
Version get compilerVersion => $_getN(2);
@$pb.TagNumber(3)
set compilerVersion(Version v) { setField(3, v); }
@$pb.TagNumber(3)
$core.bool hasCompilerVersion() => $_has(2);
@$pb.TagNumber(3)
void clearCompilerVersion() => clearField(3);
@$pb.TagNumber(3)
Version ensureCompilerVersion() => $_ensure(2);
/// FileDescriptorProtos for all files in files_to_generate and everything
/// they import. The files will appear in topological order, so each file
/// appears before any file that imports it.
///
/// protoc guarantees that all proto_files will be written after
/// the fields above, even though this is not technically guaranteed by the
/// protobuf wire format. This theoretically could allow a plugin to stream
/// in the FileDescriptorProtos and handle them one by one rather than read
/// the entire set into memory at once. However, as of this writing, this
/// is not similarly optimized on protoc's end -- it will store all fields in
/// memory at once before sending them to the plugin.
///
/// Type names of fields and extensions in the FileDescriptorProto are always
/// fully qualified.
@$pb.TagNumber(15)
$core.List<$91.FileDescriptorProto> get protoFile => $_getList(3);
}
/// Represents a single generated file.
class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
factory CodeGeneratorResponse_File({
$core.String? name,
$core.String? insertionPoint,
$core.String? content,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (insertionPoint != null) {
$result.insertionPoint = insertionPoint;
}
if (content != null) {
$result.content = content;
}
return $result;
}
CodeGeneratorResponse_File._() : super();
factory CodeGeneratorResponse_File.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory CodeGeneratorResponse_File.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CodeGeneratorResponse.File', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..aOS(2, _omitFieldNames ? '' : 'insertionPoint')
..aOS(15, _omitFieldNames ? '' : 'content')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
CodeGeneratorResponse_File clone() => CodeGeneratorResponse_File()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CodeGeneratorResponse_File copyWith(void Function(CodeGeneratorResponse_File) updates) => super.copyWith((message) => updates(message as CodeGeneratorResponse_File)) as CodeGeneratorResponse_File;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CodeGeneratorResponse_File create() => CodeGeneratorResponse_File._();
CodeGeneratorResponse_File createEmptyInstance() => create();
static $pb.PbList<CodeGeneratorResponse_File> createRepeated() => $pb.PbList<CodeGeneratorResponse_File>();
@$core.pragma('dart2js:noInline')
static CodeGeneratorResponse_File getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CodeGeneratorResponse_File>(create);
static CodeGeneratorResponse_File? _defaultInstance;
/// The file name, relative to the output directory. The name must not
/// contain "." or ".." components and must be relative, not be absolute (so,
/// the file cannot lie outside the output directory). "/" must be used as
/// the path separator, not "\".
///
/// If the name is omitted, the content will be appended to the previous
/// file. This allows the generator to break large files into small chunks,
/// and allows the generated text to be streamed back to protoc so that large
/// files need not reside completely in memory at one time. Note that as of
/// this writing protoc does not optimize for this -- it will read the entire
/// CodeGeneratorResponse before writing files to disk.
@$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);
/// If non-empty, indicates that the named file should already exist, and the
/// content here is to be inserted into that file at a defined insertion
/// point. This feature allows a code generator to extend the output
/// produced by another code generator. The original generator may provide
/// insertion points by placing special annotations in the file that look
/// like:
/// @@protoc_insertion_point(NAME)
/// The annotation can have arbitrary text before and after it on the line,
/// which allows it to be placed in a comment. NAME should be replaced with
/// an identifier naming the point -- this is what other generators will use
/// as the insertion_point. Code inserted at this point will be placed
/// immediately above the line containing the insertion point (thus multiple
/// insertions to the same point will come out in the order they were added).
/// The double-@ is intended to make it unlikely that the generated code
/// could contain things that look like insertion points by accident.
///
/// For example, the C++ code generator places the following line in the
/// .pb.h files that it generates:
/// // @@protoc_insertion_point(namespace_scope)
/// This line appears within the scope of the file's package namespace, but
/// outside of any particular class. Another plugin can then specify the
/// insertion_point "namespace_scope" to generate additional classes or
/// other declarations that should be placed in this scope.
///
/// Note that if the line containing the insertion point begins with
/// whitespace, the same whitespace will be added to every line of the
/// inserted text. This is useful for languages like Python, where
/// indentation matters. In these languages, the insertion point comment
/// should be indented the same amount as any inserted code will need to be
/// in order to work correctly in that context.
///
/// The code generator that generates the initial file and the one which
/// inserts into it must both run as part of a single invocation of protoc.
/// Code generators are executed in the order in which they appear on the
/// command line.
///
/// If |insertion_point| is present, |name| must also be present.
@$pb.TagNumber(2)
$core.String get insertionPoint => $_getSZ(1);
@$pb.TagNumber(2)
set insertionPoint($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasInsertionPoint() => $_has(1);
@$pb.TagNumber(2)
void clearInsertionPoint() => clearField(2);
/// The file contents.
@$pb.TagNumber(15)
$core.String get content => $_getSZ(2);
@$pb.TagNumber(15)
set content($core.String v) { $_setString(2, v); }
@$pb.TagNumber(15)
$core.bool hasContent() => $_has(2);
@$pb.TagNumber(15)
void clearContent() => clearField(15);
}
/// The plugin writes an encoded CodeGeneratorResponse to stdout.
class CodeGeneratorResponse extends $pb.GeneratedMessage {
factory CodeGeneratorResponse({
$core.String? error,
$core.Iterable<CodeGeneratorResponse_File>? file,
}) {
final $result = create();
if (error != null) {
$result.error = error;
}
if (file != null) {
$result.file.addAll(file);
}
return $result;
}
CodeGeneratorResponse._() : super();
factory CodeGeneratorResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory CodeGeneratorResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CodeGeneratorResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'error')
..pc<CodeGeneratorResponse_File>(15, _omitFieldNames ? '' : 'file', $pb.PbFieldType.PM, subBuilder: CodeGeneratorResponse_File.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
CodeGeneratorResponse clone() => CodeGeneratorResponse()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
CodeGeneratorResponse copyWith(void Function(CodeGeneratorResponse) updates) => super.copyWith((message) => updates(message as CodeGeneratorResponse)) as CodeGeneratorResponse;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CodeGeneratorResponse create() => CodeGeneratorResponse._();
CodeGeneratorResponse createEmptyInstance() => create();
static $pb.PbList<CodeGeneratorResponse> createRepeated() => $pb.PbList<CodeGeneratorResponse>();
@$core.pragma('dart2js:noInline')
static CodeGeneratorResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CodeGeneratorResponse>(create);
static CodeGeneratorResponse? _defaultInstance;
/// Error message. If non-empty, code generation failed. The plugin process
/// should exit with status code zero even if it reports an error in this way.
///
/// This should be used to indicate errors in .proto files which prevent the
/// code generator from generating correct code. Errors which indicate a
/// problem in protoc itself -- such as the input CodeGeneratorRequest being
/// unparseable -- should be reported by writing a message to stderr and
/// exiting with a non-zero status code.
@$pb.TagNumber(1)
$core.String get error => $_getSZ(0);
@$pb.TagNumber(1)
set error($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasError() => $_has(0);
@$pb.TagNumber(1)
void clearError() => clearField(1);
@$pb.TagNumber(15)
$core.List<CodeGeneratorResponse_File> get file => $_getList(1);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/compiler/plugin.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

View File

@@ -0,0 +1,77 @@
//
// Generated code. Do not modify.
// source: google/protobuf/compiler/plugin.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 versionDescriptor instead')
const Version$json = {
'1': 'Version',
'2': [
{'1': 'major', '3': 1, '4': 1, '5': 5, '10': 'major'},
{'1': 'minor', '3': 2, '4': 1, '5': 5, '10': 'minor'},
{'1': 'patch', '3': 3, '4': 1, '5': 5, '10': 'patch'},
{'1': 'suffix', '3': 4, '4': 1, '5': 9, '10': 'suffix'},
],
};
/// Descriptor for `Version`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List versionDescriptor = $convert.base64Decode(
'CgdWZXJzaW9uEhQKBW1ham9yGAEgASgFUgVtYWpvchIUCgVtaW5vchgCIAEoBVIFbWlub3ISFA'
'oFcGF0Y2gYAyABKAVSBXBhdGNoEhYKBnN1ZmZpeBgEIAEoCVIGc3VmZml4');
@$core.Deprecated('Use codeGeneratorRequestDescriptor instead')
const CodeGeneratorRequest$json = {
'1': 'CodeGeneratorRequest',
'2': [
{'1': 'file_to_generate', '3': 1, '4': 3, '5': 9, '10': 'fileToGenerate'},
{'1': 'parameter', '3': 2, '4': 1, '5': 9, '10': 'parameter'},
{'1': 'proto_file', '3': 15, '4': 3, '5': 11, '6': '.google.protobuf.FileDescriptorProto', '10': 'protoFile'},
{'1': 'compiler_version', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.compiler.Version', '10': 'compilerVersion'},
],
};
/// Descriptor for `CodeGeneratorRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List codeGeneratorRequestDescriptor = $convert.base64Decode(
'ChRDb2RlR2VuZXJhdG9yUmVxdWVzdBIoChBmaWxlX3RvX2dlbmVyYXRlGAEgAygJUg5maWxlVG'
'9HZW5lcmF0ZRIcCglwYXJhbWV0ZXIYAiABKAlSCXBhcmFtZXRlchJDCgpwcm90b19maWxlGA8g'
'AygLMiQuZ29vZ2xlLnByb3RvYnVmLkZpbGVEZXNjcmlwdG9yUHJvdG9SCXByb3RvRmlsZRJMCh'
'Bjb21waWxlcl92ZXJzaW9uGAMgASgLMiEuZ29vZ2xlLnByb3RvYnVmLmNvbXBpbGVyLlZlcnNp'
'b25SD2NvbXBpbGVyVmVyc2lvbg==');
@$core.Deprecated('Use codeGeneratorResponseDescriptor instead')
const CodeGeneratorResponse$json = {
'1': 'CodeGeneratorResponse',
'2': [
{'1': 'error', '3': 1, '4': 1, '5': 9, '10': 'error'},
{'1': 'file', '3': 15, '4': 3, '5': 11, '6': '.google.protobuf.compiler.CodeGeneratorResponse.File', '10': 'file'},
],
'3': [CodeGeneratorResponse_File$json],
};
@$core.Deprecated('Use codeGeneratorResponseDescriptor instead')
const CodeGeneratorResponse_File$json = {
'1': 'File',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'insertion_point', '3': 2, '4': 1, '5': 9, '10': 'insertionPoint'},
{'1': 'content', '3': 15, '4': 1, '5': 9, '10': 'content'},
],
};
/// Descriptor for `CodeGeneratorResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List codeGeneratorResponseDescriptor = $convert.base64Decode(
'ChVDb2RlR2VuZXJhdG9yUmVzcG9uc2USFAoFZXJyb3IYASABKAlSBWVycm9yEkgKBGZpbGUYDy'
'ADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdlbmVyYXRvclJlc3BvbnNlLkZp'
'bGVSBGZpbGUaXQoERmlsZRISCgRuYW1lGAEgASgJUgRuYW1lEicKD2luc2VydGlvbl9wb2ludB'
'gCIAEoCVIOaW5zZXJ0aW9uUG9pbnQSGAoHY29udGVudBgPIAEoCVIHY29udGVudA==');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,153 @@
//
// Generated code. Do not modify.
// source: google/protobuf/descriptor.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 FieldDescriptorProto_Type extends $pb.ProtobufEnum {
static const FieldDescriptorProto_Type TYPE_DOUBLE = FieldDescriptorProto_Type._(1, _omitEnumNames ? '' : 'TYPE_DOUBLE');
static const FieldDescriptorProto_Type TYPE_FLOAT = FieldDescriptorProto_Type._(2, _omitEnumNames ? '' : 'TYPE_FLOAT');
static const FieldDescriptorProto_Type TYPE_INT64 = FieldDescriptorProto_Type._(3, _omitEnumNames ? '' : 'TYPE_INT64');
static const FieldDescriptorProto_Type TYPE_UINT64 = FieldDescriptorProto_Type._(4, _omitEnumNames ? '' : 'TYPE_UINT64');
static const FieldDescriptorProto_Type TYPE_INT32 = FieldDescriptorProto_Type._(5, _omitEnumNames ? '' : 'TYPE_INT32');
static const FieldDescriptorProto_Type TYPE_FIXED64 = FieldDescriptorProto_Type._(6, _omitEnumNames ? '' : 'TYPE_FIXED64');
static const FieldDescriptorProto_Type TYPE_FIXED32 = FieldDescriptorProto_Type._(7, _omitEnumNames ? '' : 'TYPE_FIXED32');
static const FieldDescriptorProto_Type TYPE_BOOL = FieldDescriptorProto_Type._(8, _omitEnumNames ? '' : 'TYPE_BOOL');
static const FieldDescriptorProto_Type TYPE_STRING = FieldDescriptorProto_Type._(9, _omitEnumNames ? '' : 'TYPE_STRING');
static const FieldDescriptorProto_Type TYPE_GROUP = FieldDescriptorProto_Type._(10, _omitEnumNames ? '' : 'TYPE_GROUP');
static const FieldDescriptorProto_Type TYPE_MESSAGE = FieldDescriptorProto_Type._(11, _omitEnumNames ? '' : 'TYPE_MESSAGE');
static const FieldDescriptorProto_Type TYPE_BYTES = FieldDescriptorProto_Type._(12, _omitEnumNames ? '' : 'TYPE_BYTES');
static const FieldDescriptorProto_Type TYPE_UINT32 = FieldDescriptorProto_Type._(13, _omitEnumNames ? '' : 'TYPE_UINT32');
static const FieldDescriptorProto_Type TYPE_ENUM = FieldDescriptorProto_Type._(14, _omitEnumNames ? '' : 'TYPE_ENUM');
static const FieldDescriptorProto_Type TYPE_SFIXED32 = FieldDescriptorProto_Type._(15, _omitEnumNames ? '' : 'TYPE_SFIXED32');
static const FieldDescriptorProto_Type TYPE_SFIXED64 = FieldDescriptorProto_Type._(16, _omitEnumNames ? '' : 'TYPE_SFIXED64');
static const FieldDescriptorProto_Type TYPE_SINT32 = FieldDescriptorProto_Type._(17, _omitEnumNames ? '' : 'TYPE_SINT32');
static const FieldDescriptorProto_Type TYPE_SINT64 = FieldDescriptorProto_Type._(18, _omitEnumNames ? '' : 'TYPE_SINT64');
static const $core.List<FieldDescriptorProto_Type> values = <FieldDescriptorProto_Type> [
TYPE_DOUBLE,
TYPE_FLOAT,
TYPE_INT64,
TYPE_UINT64,
TYPE_INT32,
TYPE_FIXED64,
TYPE_FIXED32,
TYPE_BOOL,
TYPE_STRING,
TYPE_GROUP,
TYPE_MESSAGE,
TYPE_BYTES,
TYPE_UINT32,
TYPE_ENUM,
TYPE_SFIXED32,
TYPE_SFIXED64,
TYPE_SINT32,
TYPE_SINT64,
];
static final $core.Map<$core.int, FieldDescriptorProto_Type> _byValue = $pb.ProtobufEnum.initByValue(values);
static FieldDescriptorProto_Type? valueOf($core.int value) => _byValue[value];
const FieldDescriptorProto_Type._($core.int v, $core.String n) : super(v, n);
}
class FieldDescriptorProto_Label extends $pb.ProtobufEnum {
static const FieldDescriptorProto_Label LABEL_OPTIONAL = FieldDescriptorProto_Label._(1, _omitEnumNames ? '' : 'LABEL_OPTIONAL');
static const FieldDescriptorProto_Label LABEL_REQUIRED = FieldDescriptorProto_Label._(2, _omitEnumNames ? '' : 'LABEL_REQUIRED');
static const FieldDescriptorProto_Label LABEL_REPEATED = FieldDescriptorProto_Label._(3, _omitEnumNames ? '' : 'LABEL_REPEATED');
static const $core.List<FieldDescriptorProto_Label> values = <FieldDescriptorProto_Label> [
LABEL_OPTIONAL,
LABEL_REQUIRED,
LABEL_REPEATED,
];
static final $core.Map<$core.int, FieldDescriptorProto_Label> _byValue = $pb.ProtobufEnum.initByValue(values);
static FieldDescriptorProto_Label? valueOf($core.int value) => _byValue[value];
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, _omitEnumNames ? '' : 'SPEED');
static const FileOptions_OptimizeMode CODE_SIZE = FileOptions_OptimizeMode._(2, _omitEnumNames ? '' : 'CODE_SIZE');
static const FileOptions_OptimizeMode LITE_RUNTIME = FileOptions_OptimizeMode._(3, _omitEnumNames ? '' : 'LITE_RUNTIME');
static const $core.List<FileOptions_OptimizeMode> values = <FileOptions_OptimizeMode> [
SPEED,
CODE_SIZE,
LITE_RUNTIME,
];
static final $core.Map<$core.int, FileOptions_OptimizeMode> _byValue = $pb.ProtobufEnum.initByValue(values);
static FileOptions_OptimizeMode? valueOf($core.int value) => _byValue[value];
const FileOptions_OptimizeMode._($core.int v, $core.String n) : super(v, n);
}
class FieldOptions_CType extends $pb.ProtobufEnum {
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<FieldOptions_CType> values = <FieldOptions_CType> [
STRING,
CORD,
STRING_PIECE,
];
static final $core.Map<$core.int, FieldOptions_CType> _byValue = $pb.ProtobufEnum.initByValue(values);
static FieldOptions_CType? valueOf($core.int value) => _byValue[value];
const FieldOptions_CType._($core.int v, $core.String n) : super(v, n);
}
class FieldOptions_JSType extends $pb.ProtobufEnum {
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<FieldOptions_JSType> values = <FieldOptions_JSType> [
JS_NORMAL,
JS_STRING,
JS_NUMBER,
];
static final $core.Map<$core.int, FieldOptions_JSType> _byValue = $pb.ProtobufEnum.initByValue(values);
static FieldOptions_JSType? valueOf($core.int value) => _byValue[value];
const FieldOptions_JSType._($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, _omitEnumNames ? '' : 'IDEMPOTENCY_UNKNOWN');
static const MethodOptions_IdempotencyLevel NO_SIDE_EFFECTS = MethodOptions_IdempotencyLevel._(1, _omitEnumNames ? '' : 'NO_SIDE_EFFECTS');
static const MethodOptions_IdempotencyLevel IDEMPOTENT = MethodOptions_IdempotencyLevel._(2, _omitEnumNames ? '' : 'IDEMPOTENT');
static const $core.List<MethodOptions_IdempotencyLevel> values = <MethodOptions_IdempotencyLevel> [
IDEMPOTENCY_UNKNOWN,
NO_SIDE_EFFECTS,
IDEMPOTENT,
];
static final $core.Map<$core.int, MethodOptions_IdempotencyLevel> _byValue = $pb.ProtobufEnum.initByValue(values);
static MethodOptions_IdempotencyLevel? valueOf($core.int value) => _byValue[value];
const MethodOptions_IdempotencyLevel._($core.int v, $core.String n) : super(v, n);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -0,0 +1,687 @@
//
// Generated code. Do not modify.
// source: google/protobuf/descriptor.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 fileDescriptorSetDescriptor instead')
const FileDescriptorSet$json = {
'1': 'FileDescriptorSet',
'2': [
{'1': 'file', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.FileDescriptorProto', '10': 'file'},
],
};
/// Descriptor for `FileDescriptorSet`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fileDescriptorSetDescriptor = $convert.base64Decode(
'ChFGaWxlRGVzY3JpcHRvclNldBI4CgRmaWxlGAEgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkZpbG'
'VEZXNjcmlwdG9yUHJvdG9SBGZpbGU=');
@$core.Deprecated('Use fileDescriptorProtoDescriptor instead')
const FileDescriptorProto$json = {
'1': 'FileDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'package', '3': 2, '4': 1, '5': 9, '10': 'package'},
{'1': 'dependency', '3': 3, '4': 3, '5': 9, '10': 'dependency'},
{'1': 'public_dependency', '3': 10, '4': 3, '5': 5, '10': 'publicDependency'},
{'1': 'weak_dependency', '3': 11, '4': 3, '5': 5, '10': 'weakDependency'},
{'1': 'message_type', '3': 4, '4': 3, '5': 11, '6': '.google.protobuf.DescriptorProto', '10': 'messageType'},
{'1': 'enum_type', '3': 5, '4': 3, '5': 11, '6': '.google.protobuf.EnumDescriptorProto', '10': 'enumType'},
{'1': 'service', '3': 6, '4': 3, '5': 11, '6': '.google.protobuf.ServiceDescriptorProto', '10': 'service'},
{'1': 'extension', '3': 7, '4': 3, '5': 11, '6': '.google.protobuf.FieldDescriptorProto', '10': 'extension'},
{'1': 'options', '3': 8, '4': 1, '5': 11, '6': '.google.protobuf.FileOptions', '10': 'options'},
{'1': 'source_code_info', '3': 9, '4': 1, '5': 11, '6': '.google.protobuf.SourceCodeInfo', '10': 'sourceCodeInfo'},
{'1': 'syntax', '3': 12, '4': 1, '5': 9, '10': 'syntax'},
],
};
/// Descriptor for `FileDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fileDescriptorProtoDescriptor = $convert.base64Decode(
'ChNGaWxlRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSGAoHcGFja2FnZRgCIA'
'EoCVIHcGFja2FnZRIeCgpkZXBlbmRlbmN5GAMgAygJUgpkZXBlbmRlbmN5EisKEXB1YmxpY19k'
'ZXBlbmRlbmN5GAogAygFUhBwdWJsaWNEZXBlbmRlbmN5EicKD3dlYWtfZGVwZW5kZW5jeRgLIA'
'MoBVIOd2Vha0RlcGVuZGVuY3kSQwoMbWVzc2FnZV90eXBlGAQgAygLMiAuZ29vZ2xlLnByb3Rv'
'YnVmLkRlc2NyaXB0b3JQcm90b1ILbWVzc2FnZVR5cGUSQQoJZW51bV90eXBlGAUgAygLMiQuZ2'
'9vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9yUHJvdG9SCGVudW1UeXBlEkEKB3NlcnZpY2UY'
'BiADKAsyJy5nb29nbGUucHJvdG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90b1IHc2VydmljZR'
'JDCglleHRlbnNpb24YByADKAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv'
'dG9SCWV4dGVuc2lvbhI2CgdvcHRpb25zGAggASgLMhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcH'
'Rpb25zUgdvcHRpb25zEkkKEHNvdXJjZV9jb2RlX2luZm8YCSABKAsyHy5nb29nbGUucHJvdG9i'
'dWYuU291cmNlQ29kZUluZm9SDnNvdXJjZUNvZGVJbmZvEhYKBnN5bnRheBgMIAEoCVIGc3ludG'
'F4');
@$core.Deprecated('Use descriptorProtoDescriptor instead')
const DescriptorProto$json = {
'1': 'DescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'field', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.FieldDescriptorProto', '10': 'field'},
{'1': 'extension', '3': 6, '4': 3, '5': 11, '6': '.google.protobuf.FieldDescriptorProto', '10': 'extension'},
{'1': 'nested_type', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.DescriptorProto', '10': 'nestedType'},
{'1': 'enum_type', '3': 4, '4': 3, '5': 11, '6': '.google.protobuf.EnumDescriptorProto', '10': 'enumType'},
{'1': 'extension_range', '3': 5, '4': 3, '5': 11, '6': '.google.protobuf.DescriptorProto.ExtensionRange', '10': 'extensionRange'},
{'1': 'oneof_decl', '3': 8, '4': 3, '5': 11, '6': '.google.protobuf.OneofDescriptorProto', '10': 'oneofDecl'},
{'1': 'options', '3': 7, '4': 1, '5': 11, '6': '.google.protobuf.MessageOptions', '10': 'options'},
{'1': 'reserved_range', '3': 9, '4': 3, '5': 11, '6': '.google.protobuf.DescriptorProto.ReservedRange', '10': 'reservedRange'},
{'1': 'reserved_name', '3': 10, '4': 3, '5': 9, '10': 'reservedName'},
],
'3': [DescriptorProto_ExtensionRange$json, DescriptorProto_ReservedRange$json],
};
@$core.Deprecated('Use descriptorProtoDescriptor instead')
const DescriptorProto_ExtensionRange$json = {
'1': 'ExtensionRange',
'2': [
{'1': 'start', '3': 1, '4': 1, '5': 5, '10': 'start'},
{'1': 'end', '3': 2, '4': 1, '5': 5, '10': 'end'},
{'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.ExtensionRangeOptions', '10': 'options'},
],
};
@$core.Deprecated('Use descriptorProtoDescriptor instead')
const DescriptorProto_ReservedRange$json = {
'1': 'ReservedRange',
'2': [
{'1': 'start', '3': 1, '4': 1, '5': 5, '10': 'start'},
{'1': 'end', '3': 2, '4': 1, '5': 5, '10': 'end'},
],
};
/// Descriptor for `DescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List descriptorProtoDescriptor = $convert.base64Decode(
'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',
'2': [
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'5': [
{'1': 1000, '2': 536870912},
],
};
/// Descriptor for `ExtensionRangeOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List extensionRangeOptionsDescriptor = $convert.base64Decode(
'ChVFeHRlbnNpb25SYW5nZU9wdGlvbnMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMi'
'QuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRp'
'b24qCQjoBxCAgICAAg==');
@$core.Deprecated('Use fieldDescriptorProtoDescriptor instead')
const FieldDescriptorProto$json = {
'1': 'FieldDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'number', '3': 3, '4': 1, '5': 5, '10': 'number'},
{'1': 'label', '3': 4, '4': 1, '5': 14, '6': '.google.protobuf.FieldDescriptorProto.Label', '10': 'label'},
{'1': 'type', '3': 5, '4': 1, '5': 14, '6': '.google.protobuf.FieldDescriptorProto.Type', '10': 'type'},
{'1': 'type_name', '3': 6, '4': 1, '5': 9, '10': 'typeName'},
{'1': 'extendee', '3': 2, '4': 1, '5': 9, '10': 'extendee'},
{'1': 'default_value', '3': 7, '4': 1, '5': 9, '10': 'defaultValue'},
{'1': 'oneof_index', '3': 9, '4': 1, '5': 5, '10': 'oneofIndex'},
{'1': 'json_name', '3': 10, '4': 1, '5': 9, '10': 'jsonName'},
{'1': 'options', '3': 8, '4': 1, '5': 11, '6': '.google.protobuf.FieldOptions', '10': 'options'},
],
'4': [FieldDescriptorProto_Type$json, FieldDescriptorProto_Label$json],
};
@$core.Deprecated('Use fieldDescriptorProtoDescriptor instead')
const FieldDescriptorProto_Type$json = {
'1': 'Type',
'2': [
{'1': 'TYPE_DOUBLE', '2': 1},
{'1': 'TYPE_FLOAT', '2': 2},
{'1': 'TYPE_INT64', '2': 3},
{'1': 'TYPE_UINT64', '2': 4},
{'1': 'TYPE_INT32', '2': 5},
{'1': 'TYPE_FIXED64', '2': 6},
{'1': 'TYPE_FIXED32', '2': 7},
{'1': 'TYPE_BOOL', '2': 8},
{'1': 'TYPE_STRING', '2': 9},
{'1': 'TYPE_GROUP', '2': 10},
{'1': 'TYPE_MESSAGE', '2': 11},
{'1': 'TYPE_BYTES', '2': 12},
{'1': 'TYPE_UINT32', '2': 13},
{'1': 'TYPE_ENUM', '2': 14},
{'1': 'TYPE_SFIXED32', '2': 15},
{'1': 'TYPE_SFIXED64', '2': 16},
{'1': 'TYPE_SINT32', '2': 17},
{'1': 'TYPE_SINT64', '2': 18},
],
};
@$core.Deprecated('Use fieldDescriptorProtoDescriptor instead')
const FieldDescriptorProto_Label$json = {
'1': 'Label',
'2': [
{'1': 'LABEL_OPTIONAL', '2': 1},
{'1': 'LABEL_REQUIRED', '2': 2},
{'1': 'LABEL_REPEATED', '2': 3},
],
};
/// Descriptor for `FieldDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fieldDescriptorProtoDescriptor = $convert.base64Decode(
'ChRGaWVsZERlc2NyaXB0b3JQcm90bxISCgRuYW1lGAEgASgJUgRuYW1lEhYKBm51bWJlchgDIA'
'EoBVIGbnVtYmVyEkEKBWxhYmVsGAQgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3Jp'
'cHRvclByb3RvLkxhYmVsUgVsYWJlbBI+CgR0eXBlGAUgASgOMiouZ29vZ2xlLnByb3RvYnVmLk'
'ZpZWxkRGVzY3JpcHRvclByb3RvLlR5cGVSBHR5cGUSGwoJdHlwZV9uYW1lGAYgASgJUgh0eXBl'
'TmFtZRIaCghleHRlbmRlZRgCIAEoCVIIZXh0ZW5kZWUSIwoNZGVmYXVsdF92YWx1ZRgHIAEoCV'
'IMZGVmYXVsdFZhbHVlEh8KC29uZW9mX2luZGV4GAkgASgFUgpvbmVvZkluZGV4EhsKCWpzb25f'
'bmFtZRgKIAEoCVIIanNvbk5hbWUSNwoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi'
'5GaWVsZE9wdGlvbnNSB29wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQARIOCgpUWVBF'
'X0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlOVDY0EAQSDgoKVFlQRV9JTlQzMh'
'AFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZUEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8K'
'C1RZUEVfU1RSSU5HEAkSDgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUE'
'VfQllURVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVfU0ZJWEVE'
'MzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQERIPCgtUWVBFX1NJTlQ2NB'
'ASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFMEAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5M'
'QUJFTF9SRVBFQVRFRBAD');
@$core.Deprecated('Use oneofDescriptorProtoDescriptor instead')
const OneofDescriptorProto$json = {
'1': 'OneofDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'options', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.OneofOptions', '10': 'options'},
],
};
/// Descriptor for `OneofDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List oneofDescriptorProtoDescriptor = $convert.base64Decode(
'ChRPbmVvZkRlc2NyaXB0b3JQcm90bxISCgRuYW1lGAEgASgJUgRuYW1lEjcKB29wdGlvbnMYAi'
'ABKAsyHS5nb29nbGUucHJvdG9idWYuT25lb2ZPcHRpb25zUgdvcHRpb25z');
@$core.Deprecated('Use enumDescriptorProtoDescriptor instead')
const EnumDescriptorProto$json = {
'1': 'EnumDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'value', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.EnumValueDescriptorProto', '10': 'value'},
{'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.EnumOptions', '10': 'options'},
{'1': 'reserved_range', '3': 4, '4': 3, '5': 11, '6': '.google.protobuf.EnumDescriptorProto.EnumReservedRange', '10': 'reservedRange'},
{'1': 'reserved_name', '3': 5, '4': 3, '5': 9, '10': 'reservedName'},
],
'3': [EnumDescriptorProto_EnumReservedRange$json],
};
@$core.Deprecated('Use enumDescriptorProtoDescriptor instead')
const EnumDescriptorProto_EnumReservedRange$json = {
'1': 'EnumReservedRange',
'2': [
{'1': 'start', '3': 1, '4': 1, '5': 5, '10': 'start'},
{'1': 'end', '3': 2, '4': 1, '5': 5, '10': 'end'},
],
};
/// Descriptor for `EnumDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List enumDescriptorProtoDescriptor = $convert.base64Decode(
'ChNFbnVtRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSPwoFdmFsdWUYAiADKA'
'syKS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvUgV2YWx1ZRI2Cgdv'
'cHRpb25zGAMgASgLMhwuZ29vZ2xlLnByb3RvYnVmLkVudW1PcHRpb25zUgdvcHRpb25zEl0KDn'
'Jlc2VydmVkX3JhbmdlGAQgAygLMjYuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9yUHJv'
'dG8uRW51bVJlc2VydmVkUmFuZ2VSDXJlc2VydmVkUmFuZ2USIwoNcmVzZXJ2ZWRfbmFtZRgFIA'
'MoCVIMcmVzZXJ2ZWROYW1lGjsKEUVudW1SZXNlcnZlZFJhbmdlEhQKBXN0YXJ0GAEgASgFUgVz'
'dGFydBIQCgNlbmQYAiABKAVSA2VuZA==');
@$core.Deprecated('Use enumValueDescriptorProtoDescriptor instead')
const EnumValueDescriptorProto$json = {
'1': 'EnumValueDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'number', '3': 2, '4': 1, '5': 5, '10': 'number'},
{'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.EnumValueOptions', '10': 'options'},
],
};
/// Descriptor for `EnumValueDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List enumValueDescriptorProtoDescriptor = $convert.base64Decode(
'ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRIWCgZudW1iZX'
'IYAiABKAVSBm51bWJlchI7CgdvcHRpb25zGAMgASgLMiEuZ29vZ2xlLnByb3RvYnVmLkVudW1W'
'YWx1ZU9wdGlvbnNSB29wdGlvbnM=');
@$core.Deprecated('Use serviceDescriptorProtoDescriptor instead')
const ServiceDescriptorProto$json = {
'1': 'ServiceDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'method', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.MethodDescriptorProto', '10': 'method'},
{'1': 'options', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.ServiceOptions', '10': 'options'},
],
};
/// Descriptor for `ServiceDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List serviceDescriptorProtoDescriptor = $convert.base64Decode(
'ChZTZXJ2aWNlRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSPgoGbWV0aG9kGA'
'IgAygLMiYuZ29vZ2xlLnByb3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90b1IGbWV0aG9kEjkK'
'B29wdGlvbnMYAyABKAsyHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnNSB29wdGlvbn'
'M=');
@$core.Deprecated('Use methodDescriptorProtoDescriptor instead')
const MethodDescriptorProto$json = {
'1': 'MethodDescriptorProto',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'input_type', '3': 2, '4': 1, '5': 9, '10': 'inputType'},
{'1': 'output_type', '3': 3, '4': 1, '5': 9, '10': 'outputType'},
{'1': 'options', '3': 4, '4': 1, '5': 11, '6': '.google.protobuf.MethodOptions', '10': 'options'},
{'1': 'client_streaming', '3': 5, '4': 1, '5': 8, '7': 'false', '10': 'clientStreaming'},
{'1': 'server_streaming', '3': 6, '4': 1, '5': 8, '7': 'false', '10': 'serverStreaming'},
],
};
/// Descriptor for `MethodDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List methodDescriptorProtoDescriptor = $convert.base64Decode(
'ChVNZXRob2REZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRIdCgppbnB1dF90eX'
'BlGAIgASgJUglpbnB1dFR5cGUSHwoLb3V0cHV0X3R5cGUYAyABKAlSCm91dHB1dFR5cGUSOAoH'
'b3B0aW9ucxgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zUgdvcHRpb25zEj'
'AKEGNsaWVudF9zdHJlYW1pbmcYBSABKAg6BWZhbHNlUg9jbGllbnRTdHJlYW1pbmcSMAoQc2Vy'
'dmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2VSD3NlcnZlclN0cmVhbWluZw==');
@$core.Deprecated('Use fileOptionsDescriptor instead')
const FileOptions$json = {
'1': 'FileOptions',
'2': [
{'1': 'java_package', '3': 1, '4': 1, '5': 9, '10': 'javaPackage'},
{'1': 'java_outer_classname', '3': 8, '4': 1, '5': 9, '10': 'javaOuterClassname'},
{'1': 'java_multiple_files', '3': 10, '4': 1, '5': 8, '7': 'false', '10': 'javaMultipleFiles'},
{
'1': 'java_generate_equals_and_hash',
'3': 20,
'4': 1,
'5': 8,
'8': {'3': true},
'10': 'javaGenerateEqualsAndHash',
},
{'1': 'java_string_check_utf8', '3': 27, '4': 1, '5': 8, '7': 'false', '10': 'javaStringCheckUtf8'},
{'1': 'optimize_for', '3': 9, '4': 1, '5': 14, '6': '.google.protobuf.FileOptions.OptimizeMode', '7': 'SPEED', '10': 'optimizeFor'},
{'1': 'go_package', '3': 11, '4': 1, '5': 9, '10': 'goPackage'},
{'1': 'cc_generic_services', '3': 16, '4': 1, '5': 8, '7': 'false', '10': 'ccGenericServices'},
{'1': 'java_generic_services', '3': 17, '4': 1, '5': 8, '7': 'false', '10': 'javaGenericServices'},
{'1': 'py_generic_services', '3': 18, '4': 1, '5': 8, '7': 'false', '10': 'pyGenericServices'},
{'1': 'php_generic_services', '3': 42, '4': 1, '5': 8, '7': 'false', '10': 'phpGenericServices'},
{'1': 'deprecated', '3': 23, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'cc_enable_arenas', '3': 31, '4': 1, '5': 8, '7': 'false', '10': 'ccEnableArenas'},
{'1': 'objc_class_prefix', '3': 36, '4': 1, '5': 9, '10': 'objcClassPrefix'},
{'1': 'csharp_namespace', '3': 37, '4': 1, '5': 9, '10': 'csharpNamespace'},
{'1': 'swift_prefix', '3': 39, '4': 1, '5': 9, '10': 'swiftPrefix'},
{'1': 'php_class_prefix', '3': 40, '4': 1, '5': 9, '10': 'phpClassPrefix'},
{'1': 'php_namespace', '3': 41, '4': 1, '5': 9, '10': 'phpNamespace'},
{'1': 'php_metadata_namespace', '3': 44, '4': 1, '5': 9, '10': 'phpMetadataNamespace'},
{'1': 'ruby_package', '3': 45, '4': 1, '5': 9, '10': 'rubyPackage'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'4': [FileOptions_OptimizeMode$json],
'5': [
{'1': 1000, '2': 536870912},
],
'9': [
{'1': 38, '2': 39},
],
};
@$core.Deprecated('Use fileOptionsDescriptor instead')
const FileOptions_OptimizeMode$json = {
'1': 'OptimizeMode',
'2': [
{'1': 'SPEED', '2': 1},
{'1': 'CODE_SIZE', '2': 2},
{'1': 'LITE_RUNTIME', '2': 3},
],
};
/// Descriptor for `FileOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fileOptionsDescriptor = $convert.base64Decode(
'CgtGaWxlT3B0aW9ucxIhCgxqYXZhX3BhY2thZ2UYASABKAlSC2phdmFQYWNrYWdlEjAKFGphdm'
'Ffb3V0ZXJfY2xhc3NuYW1lGAggASgJUhJqYXZhT3V0ZXJDbGFzc25hbWUSNQoTamF2YV9tdWx0'
'aXBsZV9maWxlcxgKIAEoCDoFZmFsc2VSEWphdmFNdWx0aXBsZUZpbGVzEkQKHWphdmFfZ2VuZX'
'JhdGVfZXF1YWxzX2FuZF9oYXNoGBQgASgIQgIYAVIZamF2YUdlbmVyYXRlRXF1YWxzQW5kSGFz'
'aBI6ChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsgASgIOgVmYWxzZVITamF2YVN0cmluZ0NoZW'
'NrVXRmOBJTCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlv'
'bnMuT3B0aW1pemVNb2RlOgVTUEVFRFILb3B0aW1pemVGb3ISHQoKZ29fcGFja2FnZRgLIAEoCV'
'IJZ29QYWNrYWdlEjUKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZhbHNlUhFjY0dlbmVy'
'aWNTZXJ2aWNlcxI5ChVqYXZhX2dlbmVyaWNfc2VydmljZXMYESABKAg6BWZhbHNlUhNqYXZhR2'
'VuZXJpY1NlcnZpY2VzEjUKE3B5X2dlbmVyaWNfc2VydmljZXMYEiABKAg6BWZhbHNlUhFweUdl'
'bmVyaWNTZXJ2aWNlcxI3ChRwaHBfZ2VuZXJpY19zZXJ2aWNlcxgqIAEoCDoFZmFsc2VSEnBocE'
'dlbmVyaWNTZXJ2aWNlcxIlCgpkZXByZWNhdGVkGBcgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBIv'
'ChBjY19lbmFibGVfYXJlbmFzGB8gASgIOgVmYWxzZVIOY2NFbmFibGVBcmVuYXMSKgoRb2JqY1'
'9jbGFzc19wcmVmaXgYJCABKAlSD29iamNDbGFzc1ByZWZpeBIpChBjc2hhcnBfbmFtZXNwYWNl'
'GCUgASgJUg9jc2hhcnBOYW1lc3BhY2USIQoMc3dpZnRfcHJlZml4GCcgASgJUgtzd2lmdFByZW'
'ZpeBIoChBwaHBfY2xhc3NfcHJlZml4GCggASgJUg5waHBDbGFzc1ByZWZpeBIjCg1waHBfbmFt'
'ZXNwYWNlGCkgASgJUgxwaHBOYW1lc3BhY2USNAoWcGhwX21ldGFkYXRhX25hbWVzcGFjZRgsIA'
'EoCVIUcGhwTWV0YWRhdGFOYW1lc3BhY2USIQoMcnVieV9wYWNrYWdlGC0gASgJUgtydWJ5UGFj'
'a2FnZRJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW'
'5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6ZU1vZGUS'
'CQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJTUUQAyoJCOgHEICAgIACSg'
'QIJhAn');
@$core.Deprecated('Use messageOptionsDescriptor instead')
const MessageOptions$json = {
'1': 'MessageOptions',
'2': [
{'1': 'message_set_wire_format', '3': 1, '4': 1, '5': 8, '7': 'false', '10': 'messageSetWireFormat'},
{'1': 'no_standard_descriptor_accessor', '3': 2, '4': 1, '5': 8, '7': 'false', '10': 'noStandardDescriptorAccessor'},
{'1': 'deprecated', '3': 3, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'map_entry', '3': 7, '4': 1, '5': 8, '10': 'mapEntry'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'5': [
{'1': 1000, '2': 536870912},
],
'9': [
{'1': 8, '2': 9},
{'1': 9, '2': 10},
],
};
/// Descriptor for `MessageOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List messageOptionsDescriptor = $convert.base64Decode(
'Cg5NZXNzYWdlT3B0aW9ucxI8ChdtZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2'
'VSFG1lc3NhZ2VTZXRXaXJlRm9ybWF0EkwKH25vX3N0YW5kYXJkX2Rlc2NyaXB0b3JfYWNjZXNz'
'b3IYAiABKAg6BWZhbHNlUhxub1N0YW5kYXJkRGVzY3JpcHRvckFjY2Vzc29yEiUKCmRlcHJlY2'
'F0ZWQYAyABKAg6BWZhbHNlUgpkZXByZWNhdGVkEhsKCW1hcF9lbnRyeRgHIAEoCFIIbWFwRW50'
'cnkSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW'
'50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAkoECAgQCUoE'
'CAkQCg==');
@$core.Deprecated('Use fieldOptionsDescriptor instead')
const FieldOptions$json = {
'1': 'FieldOptions',
'2': [
{'1': 'ctype', '3': 1, '4': 1, '5': 14, '6': '.google.protobuf.FieldOptions.CType', '7': 'STRING', '10': 'ctype'},
{'1': 'packed', '3': 2, '4': 1, '5': 8, '10': 'packed'},
{'1': 'jstype', '3': 6, '4': 1, '5': 14, '6': '.google.protobuf.FieldOptions.JSType', '7': 'JS_NORMAL', '10': 'jstype'},
{'1': 'lazy', '3': 5, '4': 1, '5': 8, '7': 'false', '10': 'lazy'},
{'1': 'deprecated', '3': 3, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'weak', '3': 10, '4': 1, '5': 8, '7': 'false', '10': 'weak'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'4': [FieldOptions_CType$json, FieldOptions_JSType$json],
'5': [
{'1': 1000, '2': 536870912},
],
'9': [
{'1': 4, '2': 5},
],
};
@$core.Deprecated('Use fieldOptionsDescriptor instead')
const FieldOptions_CType$json = {
'1': 'CType',
'2': [
{'1': 'STRING', '2': 0},
{'1': 'CORD', '2': 1},
{'1': 'STRING_PIECE', '2': 2},
],
};
@$core.Deprecated('Use fieldOptionsDescriptor instead')
const FieldOptions_JSType$json = {
'1': 'JSType',
'2': [
{'1': 'JS_NORMAL', '2': 0},
{'1': 'JS_STRING', '2': 1},
{'1': 'JS_NUMBER', '2': 2},
],
};
/// Descriptor for `FieldOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fieldOptionsDescriptor = $convert.base64Decode(
'CgxGaWVsZE9wdGlvbnMSQQoFY3R5cGUYASABKA4yIy5nb29nbGUucHJvdG9idWYuRmllbGRPcH'
'Rpb25zLkNUeXBlOgZTVFJJTkdSBWN0eXBlEhYKBnBhY2tlZBgCIAEoCFIGcGFja2VkEkcKBmpz'
'dHlwZRgGIAEoDjIkLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1'
'JNQUxSBmpzdHlwZRIZCgRsYXp5GAUgASgIOgVmYWxzZVIEbGF6eRIlCgpkZXByZWNhdGVkGAMg'
'ASgIOgVmYWxzZVIKZGVwcmVjYXRlZBIZCgR3ZWFrGAogASgIOgVmYWxzZVIEd2VhaxJYChR1bm'
'ludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRl'
'ZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1'
'JEEAESEAoMU1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpTX1NU'
'UklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAJKBAgEEAU=');
@$core.Deprecated('Use oneofOptionsDescriptor instead')
const OneofOptions$json = {
'1': 'OneofOptions',
'2': [
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'5': [
{'1': 1000, '2': 536870912},
],
};
/// Descriptor for `OneofOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List oneofOptionsDescriptor = $convert.base64Decode(
'CgxPbmVvZk9wdGlvbnMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLn'
'Byb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCA'
'gICAAg==');
@$core.Deprecated('Use enumOptionsDescriptor instead')
const EnumOptions$json = {
'1': 'EnumOptions',
'2': [
{'1': 'allow_alias', '3': 2, '4': 1, '5': 8, '10': 'allowAlias'},
{'1': 'deprecated', '3': 3, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'5': [
{'1': 1000, '2': 536870912},
],
'9': [
{'1': 5, '2': 6},
],
};
/// Descriptor for `EnumOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List enumOptionsDescriptor = $convert.base64Decode(
'CgtFbnVtT3B0aW9ucxIfCgthbGxvd19hbGlhcxgCIAEoCFIKYWxsb3dBbGlhcxIlCgpkZXByZW'
'NhdGVkGAMgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBJYChR1bmludGVycHJldGVkX29wdGlvbhjn'
'ByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZX'
'RlZE9wdGlvbioJCOgHEICAgIACSgQIBRAG');
@$core.Deprecated('Use enumValueOptionsDescriptor instead')
const EnumValueOptions$json = {
'1': 'EnumValueOptions',
'2': [
{'1': 'deprecated', '3': 1, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'5': [
{'1': 1000, '2': 536870912},
],
};
/// Descriptor for `EnumValueOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List enumValueOptionsDescriptor = $convert.base64Decode(
'ChBFbnVtVmFsdWVPcHRpb25zEiUKCmRlcHJlY2F0ZWQYASABKAg6BWZhbHNlUgpkZXByZWNhdG'
'VkElgKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu'
'dGVycHJldGVkT3B0aW9uUhN1bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAI=');
@$core.Deprecated('Use serviceOptionsDescriptor instead')
const ServiceOptions$json = {
'1': 'ServiceOptions',
'2': [
{'1': 'deprecated', '3': 33, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'5': [
{'1': 1000, '2': 536870912},
],
};
/// Descriptor for `ServiceOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List serviceOptionsDescriptor = $convert.base64Decode(
'Cg5TZXJ2aWNlT3B0aW9ucxIlCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZVIKZGVwcmVjYXRlZB'
'JYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRl'
'cnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIAC');
@$core.Deprecated('Use methodOptionsDescriptor instead')
const MethodOptions$json = {
'1': 'MethodOptions',
'2': [
{'1': 'deprecated', '3': 33, '4': 1, '5': 8, '7': 'false', '10': 'deprecated'},
{'1': 'idempotency_level', '3': 34, '4': 1, '5': 14, '6': '.google.protobuf.MethodOptions.IdempotencyLevel', '7': 'IDEMPOTENCY_UNKNOWN', '10': 'idempotencyLevel'},
{'1': 'uninterpreted_option', '3': 999, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption'},
],
'4': [MethodOptions_IdempotencyLevel$json],
'5': [
{'1': 1000, '2': 536870912},
],
};
@$core.Deprecated('Use methodOptionsDescriptor instead')
const MethodOptions_IdempotencyLevel$json = {
'1': 'IdempotencyLevel',
'2': [
{'1': 'IDEMPOTENCY_UNKNOWN', '2': 0},
{'1': 'NO_SIDE_EFFECTS', '2': 1},
{'1': 'IDEMPOTENT', '2': 2},
],
};
/// Descriptor for `MethodOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List methodOptionsDescriptor = $convert.base64Decode(
'Cg1NZXRob2RPcHRpb25zEiUKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlUgpkZXByZWNhdGVkEn'
'EKEWlkZW1wb3RlbmN5X2xldmVsGCIgASgOMi8uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlv'
'bnMuSWRlbXBvdGVuY3lMZXZlbDoTSURFTVBPVEVOQ1lfVU5LTk9XTlIQaWRlbXBvdGVuY3lMZX'
'ZlbBJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5p'
'bnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbiJQChBJZGVtcG90ZW5jeUxldm'
'VsEhcKE0lERU1QT1RFTkNZX1VOS05PV04QABITCg9OT19TSURFX0VGRkVDVFMQARIOCgpJREVN'
'UE9URU5UEAIqCQjoBxCAgICAAg==');
@$core.Deprecated('Use uninterpretedOptionDescriptor instead')
const UninterpretedOption$json = {
'1': 'UninterpretedOption',
'2': [
{'1': 'name', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.UninterpretedOption.NamePart', '10': 'name'},
{'1': 'identifier_value', '3': 3, '4': 1, '5': 9, '10': 'identifierValue'},
{'1': 'positive_int_value', '3': 4, '4': 1, '5': 4, '10': 'positiveIntValue'},
{'1': 'negative_int_value', '3': 5, '4': 1, '5': 3, '10': 'negativeIntValue'},
{'1': 'double_value', '3': 6, '4': 1, '5': 1, '10': 'doubleValue'},
{'1': 'string_value', '3': 7, '4': 1, '5': 12, '10': 'stringValue'},
{'1': 'aggregate_value', '3': 8, '4': 1, '5': 9, '10': 'aggregateValue'},
],
'3': [UninterpretedOption_NamePart$json],
};
@$core.Deprecated('Use uninterpretedOptionDescriptor instead')
const UninterpretedOption_NamePart$json = {
'1': 'NamePart',
'2': [
{'1': 'name_part', '3': 1, '4': 2, '5': 9, '10': 'namePart'},
{'1': 'is_extension', '3': 2, '4': 2, '5': 8, '10': 'isExtension'},
],
};
/// Descriptor for `UninterpretedOption`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List uninterpretedOptionDescriptor = $convert.base64Decode(
'ChNVbmludGVycHJldGVkT3B0aW9uEkEKBG5hbWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW'
'5pbnRlcnByZXRlZE9wdGlvbi5OYW1lUGFydFIEbmFtZRIpChBpZGVudGlmaWVyX3ZhbHVlGAMg'
'ASgJUg9pZGVudGlmaWVyVmFsdWUSLAoScG9zaXRpdmVfaW50X3ZhbHVlGAQgASgEUhBwb3NpdG'
'l2ZUludFZhbHVlEiwKEm5lZ2F0aXZlX2ludF92YWx1ZRgFIAEoA1IQbmVnYXRpdmVJbnRWYWx1'
'ZRIhCgxkb3VibGVfdmFsdWUYBiABKAFSC2RvdWJsZVZhbHVlEiEKDHN0cmluZ192YWx1ZRgHIA'
'EoDFILc3RyaW5nVmFsdWUSJwoPYWdncmVnYXRlX3ZhbHVlGAggASgJUg5hZ2dyZWdhdGVWYWx1'
'ZRpKCghOYW1lUGFydBIbCgluYW1lX3BhcnQYASACKAlSCG5hbWVQYXJ0EiEKDGlzX2V4dGVuc2'
'lvbhgCIAIoCFILaXNFeHRlbnNpb24=');
@$core.Deprecated('Use sourceCodeInfoDescriptor instead')
const SourceCodeInfo$json = {
'1': 'SourceCodeInfo',
'2': [
{'1': 'location', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.SourceCodeInfo.Location', '10': 'location'},
],
'3': [SourceCodeInfo_Location$json],
};
@$core.Deprecated('Use sourceCodeInfoDescriptor instead')
const SourceCodeInfo_Location$json = {
'1': 'Location',
'2': [
{
'1': 'path',
'3': 1,
'4': 3,
'5': 5,
'8': {'2': true},
'10': 'path',
},
{
'1': 'span',
'3': 2,
'4': 3,
'5': 5,
'8': {'2': true},
'10': 'span',
},
{'1': 'leading_comments', '3': 3, '4': 1, '5': 9, '10': 'leadingComments'},
{'1': 'trailing_comments', '3': 4, '4': 1, '5': 9, '10': 'trailingComments'},
{'1': 'leading_detached_comments', '3': 6, '4': 3, '5': 9, '10': 'leadingDetachedComments'},
],
};
/// Descriptor for `SourceCodeInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List sourceCodeInfoDescriptor = $convert.base64Decode(
'Cg5Tb3VyY2VDb2RlSW5mbxJECghsb2NhdGlvbhgBIAMoCzIoLmdvb2dsZS5wcm90b2J1Zi5Tb3'
'VyY2VDb2RlSW5mby5Mb2NhdGlvblIIbG9jYXRpb24azgEKCExvY2F0aW9uEhYKBHBhdGgYASAD'
'KAVCAhABUgRwYXRoEhYKBHNwYW4YAiADKAVCAhABUgRzcGFuEikKEGxlYWRpbmdfY29tbWVudH'
'MYAyABKAlSD2xlYWRpbmdDb21tZW50cxIrChF0cmFpbGluZ19jb21tZW50cxgEIAEoCVIQdHJh'
'aWxpbmdDb21tZW50cxI6ChlsZWFkaW5nX2RldGFjaGVkX2NvbW1lbnRzGAYgAygJUhdsZWFkaW'
'5nRGV0YWNoZWRDb21tZW50cw==');
@$core.Deprecated('Use generatedCodeInfoDescriptor instead')
const GeneratedCodeInfo$json = {
'1': 'GeneratedCodeInfo',
'2': [
{'1': 'annotation', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.GeneratedCodeInfo.Annotation', '10': 'annotation'},
],
'3': [GeneratedCodeInfo_Annotation$json],
};
@$core.Deprecated('Use generatedCodeInfoDescriptor instead')
const GeneratedCodeInfo_Annotation$json = {
'1': 'Annotation',
'2': [
{
'1': 'path',
'3': 1,
'4': 3,
'5': 5,
'8': {'2': true},
'10': 'path',
},
{'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'},
],
};
/// Descriptor for `GeneratedCodeInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List generatedCodeInfoDescriptor = $convert.base64Decode(
'ChFHZW5lcmF0ZWRDb2RlSW5mbxJNCgphbm5vdGF0aW9uGAEgAygLMi0uZ29vZ2xlLnByb3RvYn'
'VmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb25SCmFubm90YXRpb24abQoKQW5ub3RhdGlv'
'bhIWCgRwYXRoGAEgAygFQgIQAVIEcGF0aBIfCgtzb3VyY2VfZmlsZRgCIAEoCVIKc291cmNlRm'
'lsZRIUCgViZWdpbhgDIAEoBVIFYmVnaW4SEAoDZW5kGAQgASgFUgNlbmQ=');

View File

@@ -0,0 +1,151 @@
//
// Generated code. Do not modify.
// source: google/protobuf/duration.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 '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 {
factory Duration({
$fixnum.Int64? seconds,
$core.int? nanos,
}) {
final $result = create();
if (seconds != null) {
$result.seconds = seconds;
}
if (nanos != null) {
$result.nanos = nanos;
}
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')
Duration clone() => Duration()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Duration create() => Duration._();
Duration createEmptyInstance() => create();
static $pb.PbList<Duration> createRepeated() => $pb.PbList<Duration>();
@$core.pragma('dart2js:noInline')
static Duration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Duration>(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)
set seconds($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasSeconds() => $_has(0);
@$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)
set nanos($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasNanos() => $_has(1);
@$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');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/duration.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

View File

@@ -0,0 +1,29 @@
//
// Generated code. Do not modify.
// source: google/protobuf/duration.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 durationDescriptor instead')
const Duration$json = {
'1': 'Duration',
'2': [
{'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'},
{'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'},
],
};
/// Descriptor for `Duration`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List durationDescriptor = $convert.base64Decode(
'CghEdXJhdGlvbhIYCgdzZWNvbmRzGAEgASgDUgdzZWNvbmRzEhQKBW5hbm9zGAIgASgFUgVuYW'
'5vcw==');

View File

@@ -0,0 +1,58 @@
//
// Generated code. Do not modify.
// source: google/protobuf/empty.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;
/// 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);
/// }
///
/// The JSON representation for `Empty` is empty JSON object `{}`.
class Empty extends $pb.GeneratedMessage {
factory Empty() => create();
Empty._() : super();
factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Empty clone() => Empty()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Empty create() => Empty._();
Empty createEmptyInstance() => create();
static $pb.PbList<Empty> createRepeated() => $pb.PbList<Empty>();
@$core.pragma('dart2js:noInline')
static Empty getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Empty>(create);
static Empty? _defaultInstance;
}
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/empty.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

View File

@@ -0,0 +1,24 @@
//
// Generated code. Do not modify.
// source: google/protobuf/empty.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 emptyDescriptor instead')
const Empty$json = {
'1': 'Empty',
};
/// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode(
'CgVFbXB0eQ==');

View File

@@ -0,0 +1,263 @@
//
// Generated code. Do not modify.
// source: google/protobuf/field_mask.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 '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 {
factory FieldMask({
$core.Iterable<$core.String>? paths,
}) {
final $result = create();
if (paths != null) {
$result.paths.addAll(paths);
}
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')
FieldMask clone() => FieldMask()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
FieldMask copyWith(void Function(FieldMask) updates) => super.copyWith((message) => updates(message as FieldMask)) as FieldMask;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static FieldMask create() => FieldMask._();
FieldMask createEmptyInstance() => create();
static $pb.PbList<FieldMask> createRepeated() => $pb.PbList<FieldMask>();
@$core.pragma('dart2js:noInline')
static FieldMask getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FieldMask>(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');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/field_mask.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

View File

@@ -0,0 +1,27 @@
//
// Generated code. Do not modify.
// source: google/protobuf/field_mask.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 fieldMaskDescriptor instead')
const FieldMask$json = {
'1': 'FieldMask',
'2': [
{'1': 'paths', '3': 1, '4': 3, '5': 9, '10': 'paths'},
],
};
/// Descriptor for `FieldMask`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fieldMaskDescriptor = $convert.base64Decode(
'CglGaWVsZE1hc2sSFAoFcGF0aHMYASADKAlSBXBhdGhz');

View File

@@ -0,0 +1,72 @@
//
// Generated code. Do not modify.
// source: google/protobuf/source_context.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;
/// `SourceContext` represents information about the source of a
/// protobuf element, like the file in which it is defined.
class SourceContext extends $pb.GeneratedMessage {
factory SourceContext({
$core.String? fileName,
}) {
final $result = create();
if (fileName != null) {
$result.fileName = fileName;
}
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')
SourceContext clone() => SourceContext()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
SourceContext copyWith(void Function(SourceContext) updates) => super.copyWith((message) => updates(message as SourceContext)) as SourceContext;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static SourceContext create() => SourceContext._();
SourceContext createEmptyInstance() => create();
static $pb.PbList<SourceContext> createRepeated() => $pb.PbList<SourceContext>();
@$core.pragma('dart2js:noInline')
static SourceContext getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SourceContext>(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)
set fileName($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasFileName() => $_has(0);
@$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');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/source_context.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

View File

@@ -0,0 +1,27 @@
//
// Generated code. Do not modify.
// source: google/protobuf/source_context.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 sourceContextDescriptor instead')
const SourceContext$json = {
'1': 'SourceContext',
'2': [
{'1': 'file_name', '3': 1, '4': 1, '5': 9, '10': 'fileName'},
],
};
/// Descriptor for `SourceContext`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List sourceContextDescriptor = $convert.base64Decode(
'Cg1Tb3VyY2VDb250ZXh0EhsKCWZpbGVfbmFtZRgBIAEoCVIIZmlsZU5hbWU=');

View File

@@ -0,0 +1,283 @@
//
// Generated code. Do not modify.
// source: google/protobuf/struct.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 '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 {
factory Struct({
$core.Map<$core.String, Value>? fields,
}) {
final $result = create();
if (fields != null) {
$result.fields.addAll(fields);
}
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')
Struct clone() => Struct()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Struct create() => Struct._();
Struct createEmptyInstance() => create();
static $pb.PbList<Struct> createRepeated() => $pb.PbList<Struct>();
@$core.pragma('dart2js:noInline')
static Struct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Struct>(create);
static Struct? _defaultInstance;
/// Unordered map of dynamically typed values.
@$pb.TagNumber(1)
$core.Map<$core.String, Value> get fields => $_getMap(0);
}
enum Value_Kind {
nullValue,
numberValue,
stringValue,
boolValue,
structValue,
listValue,
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 that
/// variants, absence of any variant indicates an error.
///
/// The JSON representation for `Value` is JSON value.
class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
factory Value({
NullValue? nullValue,
$core.double? numberValue,
$core.String? stringValue,
$core.bool? boolValue,
Struct? structValue,
ListValue? listValue,
}) {
final $result = create();
if (nullValue != null) {
$result.nullValue = nullValue;
}
if (numberValue != null) {
$result.numberValue = numberValue;
}
if (stringValue != null) {
$result.stringValue = stringValue;
}
if (boolValue != null) {
$result.boolValue = boolValue;
}
if (structValue != null) {
$result.structValue = structValue;
}
if (listValue != null) {
$result.listValue = listValue;
}
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<NullValue>(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<Struct>(5, _omitFieldNames ? '' : 'structValue', subBuilder: Struct.create)
..aOM<ListValue>(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')
Value clone() => Value()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Value create() => Value._();
Value createEmptyInstance() => create();
static $pb.PbList<Value> createRepeated() => $pb.PbList<Value>();
@$core.pragma('dart2js:noInline')
static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Value>(create);
static Value? _defaultInstance;
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)
set nullValue(NullValue v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasNullValue() => $_has(0);
@$pb.TagNumber(1)
void clearNullValue() => clearField(1);
/// Represents a double value.
@$pb.TagNumber(2)
$core.double get numberValue => $_getN(1);
@$pb.TagNumber(2)
set numberValue($core.double v) { $_setDouble(1, v); }
@$pb.TagNumber(2)
$core.bool hasNumberValue() => $_has(1);
@$pb.TagNumber(2)
void clearNumberValue() => clearField(2);
/// Represents a string value.
@$pb.TagNumber(3)
$core.String get stringValue => $_getSZ(2);
@$pb.TagNumber(3)
set stringValue($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasStringValue() => $_has(2);
@$pb.TagNumber(3)
void clearStringValue() => clearField(3);
/// Represents a boolean value.
@$pb.TagNumber(4)
$core.bool get boolValue => $_getBF(3);
@$pb.TagNumber(4)
set boolValue($core.bool v) { $_setBool(3, v); }
@$pb.TagNumber(4)
$core.bool hasBoolValue() => $_has(3);
@$pb.TagNumber(4)
void clearBoolValue() => clearField(4);
/// Represents a structured value.
@$pb.TagNumber(5)
Struct get structValue => $_getN(4);
@$pb.TagNumber(5)
set structValue(Struct v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasStructValue() => $_has(4);
@$pb.TagNumber(5)
void clearStructValue() => clearField(5);
@$pb.TagNumber(5)
Struct ensureStructValue() => $_ensure(4);
/// Represents a repeated `Value`.
@$pb.TagNumber(6)
ListValue get listValue => $_getN(5);
@$pb.TagNumber(6)
set listValue(ListValue v) { setField(6, v); }
@$pb.TagNumber(6)
$core.bool hasListValue() => $_has(5);
@$pb.TagNumber(6)
void clearListValue() => clearField(6);
@$pb.TagNumber(6)
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 {
factory ListValue({
$core.Iterable<Value>? values,
}) {
final $result = create();
if (values != null) {
$result.values.addAll(values);
}
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<Value>(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')
ListValue clone() => ListValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ListValue create() => ListValue._();
ListValue createEmptyInstance() => create();
static $pb.PbList<ListValue> createRepeated() => $pb.PbList<ListValue>();
@$core.pragma('dart2js:noInline')
static ListValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListValue>(create);
static ListValue? _defaultInstance;
/// Repeated field of dynamically typed values.
@$pb.TagNumber(1)
$core.List<Value> get values => $_getList(0);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,34 @@
//
// Generated code. Do not modify.
// source: google/protobuf/struct.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;
/// `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, _omitEnumNames ? '' : 'NULL_VALUE');
static const $core.List<NullValue> values = <NullValue> [
NULL_VALUE,
];
static final $core.Map<$core.int, NullValue> _byValue = $pb.ProtobufEnum.initByValue(values);
static NullValue? valueOf($core.int value) => _byValue[value];
const NullValue._($core.int v, $core.String n) : super(v, n);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -0,0 +1,90 @@
//
// Generated code. Do not modify.
// source: google/protobuf/struct.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 nullValueDescriptor instead')
const NullValue$json = {
'1': 'NullValue',
'2': [
{'1': 'NULL_VALUE', '2': 0},
],
};
/// 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',
'2': [
{'1': 'fields', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Struct.FieldsEntry', '10': 'fields'},
],
'3': [Struct_FieldsEntry$json],
};
@$core.Deprecated('Use structDescriptor instead')
const Struct_FieldsEntry$json = {
'1': 'FieldsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Value', '10': 'value'},
],
'7': {'7': true},
};
/// Descriptor for `Struct`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List structDescriptor = $convert.base64Decode(
'CgZTdHJ1Y3QSOwoGZmllbGRzGAEgAygLMiMuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdC5GaWVsZH'
'NFbnRyeVIGZmllbGRzGlEKC0ZpZWxkc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EiwKBXZhbHVl'
'GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgV2YWx1ZToCOAE=');
@$core.Deprecated('Use valueDescriptor instead')
const Value$json = {
'1': 'Value',
'2': [
{'1': 'null_value', '3': 1, '4': 1, '5': 14, '6': '.google.protobuf.NullValue', '9': 0, '10': 'nullValue'},
{'1': 'number_value', '3': 2, '4': 1, '5': 1, '9': 0, '10': 'numberValue'},
{'1': 'string_value', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'stringValue'},
{'1': 'bool_value', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'boolValue'},
{'1': 'struct_value', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '9': 0, '10': 'structValue'},
{'1': 'list_value', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.ListValue', '9': 0, '10': 'listValue'},
],
'8': [
{'1': 'kind'},
],
};
/// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List valueDescriptor = $convert.base64Decode(
'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU'
'gAUgludWxsVmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAIgASgBSABSC251bWJlclZhbHVlEiMKDHN0'
'cmluZ192YWx1ZRgDIAEoCUgAUgtzdHJpbmdWYWx1ZRIfCgpib29sX3ZhbHVlGAQgASgISABSCW'
'Jvb2xWYWx1ZRI8CgxzdHJ1Y3RfdmFsdWUYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0'
'SABSC3N0cnVjdFZhbHVlEjsKCmxpc3RfdmFsdWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuTG'
'lzdFZhbHVlSABSCWxpc3RWYWx1ZUIGCgRraW5k');
@$core.Deprecated('Use listValueDescriptor instead')
const ListValue$json = {
'1': 'ListValue',
'2': [
{'1': 'values', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Value', '10': 'values'},
],
};
/// Descriptor for `ListValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode(
'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YW'
'x1ZXM=');

View File

@@ -0,0 +1,181 @@
//
// Generated code. Do not modify.
// source: google/protobuf/timestamp.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 '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 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://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
/// ) to obtain a formatter capable of generating timestamps in this format.
class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
factory Timestamp({
$fixnum.Int64? seconds,
$core.int? nanos,
}) {
final $result = create();
if (seconds != null) {
$result.seconds = seconds;
}
if (nanos != null) {
$result.nanos = nanos;
}
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')
Timestamp clone() => Timestamp()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Timestamp create() => Timestamp._();
Timestamp createEmptyInstance() => create();
static $pb.PbList<Timestamp> createRepeated() => $pb.PbList<Timestamp>();
@$core.pragma('dart2js:noInline')
static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Timestamp>(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)
set seconds($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasSeconds() => $_has(0);
@$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)
set nanos($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasNanos() => $_has(1);
@$pb.TagNumber(2)
void clearNanos() => clearField(2);
/// Creates a new instance from [dateTime].
///
/// Time zone information will not be preserved.
static Timestamp fromDateTime($core.DateTime dateTime) {
final result = create();
$mixin.TimestampMixin.setFromDateTime(result, dateTime);
return result;
}
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/timestamp.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

View File

@@ -0,0 +1,29 @@
//
// Generated code. Do not modify.
// source: google/protobuf/timestamp.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 timestampDescriptor instead')
const Timestamp$json = {
'1': 'Timestamp',
'2': [
{'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'},
{'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'},
],
};
/// Descriptor for `Timestamp`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode(
'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbm'
'Fub3M=');

View File

@@ -0,0 +1,572 @@
//
// Generated code. Do not modify.
// source: google/protobuf/type.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 'any.pb.dart' as $89;
import 'source_context.pb.dart' as $90;
import 'type.pbenum.dart';
export 'type.pbenum.dart';
/// A protocol buffer message type.
class Type extends $pb.GeneratedMessage {
factory Type({
$core.String? name,
$core.Iterable<Field>? fields,
$core.Iterable<$core.String>? oneofs,
$core.Iterable<Option>? options,
$90.SourceContext? sourceContext,
Syntax? syntax,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (fields != null) {
$result.fields.addAll(fields);
}
if (oneofs != null) {
$result.oneofs.addAll(oneofs);
}
if (options != null) {
$result.options.addAll(options);
}
if (sourceContext != null) {
$result.sourceContext = sourceContext;
}
if (syntax != null) {
$result.syntax = syntax;
}
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 final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Type', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..pc<Field>(2, _omitFieldNames ? '' : 'fields', $pb.PbFieldType.PM, subBuilder: Field.create)
..pPS(3, _omitFieldNames ? '' : 'oneofs')
..pc<Option>(4, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: Option.create)
..aOM<$90.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $90.SourceContext.create)
..e<Syntax>(6, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: Syntax.SYNTAX_PROTO2, valueOf: Syntax.valueOf, enumValues: 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')
Type clone() => Type()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Type create() => Type._();
Type createEmptyInstance() => create();
static $pb.PbList<Type> createRepeated() => $pb.PbList<Type>();
@$core.pragma('dart2js:noInline')
static Type getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Type>(create);
static Type? _defaultInstance;
/// The fully qualified message name.
@$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 list of fields.
@$pb.TagNumber(2)
$core.List<Field> get fields => $_getList(1);
/// The list of types appearing in `oneof` definitions in this type.
@$pb.TagNumber(3)
$core.List<$core.String> get oneofs => $_getList(2);
/// The protocol buffer options.
@$pb.TagNumber(4)
$core.List<Option> get options => $_getList(3);
/// The source context.
@$pb.TagNumber(5)
$90.SourceContext get sourceContext => $_getN(4);
@$pb.TagNumber(5)
set sourceContext($90.SourceContext v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasSourceContext() => $_has(4);
@$pb.TagNumber(5)
void clearSourceContext() => clearField(5);
@$pb.TagNumber(5)
$90.SourceContext ensureSourceContext() => $_ensure(4);
/// The source syntax.
@$pb.TagNumber(6)
Syntax get syntax => $_getN(5);
@$pb.TagNumber(6)
set syntax(Syntax v) { setField(6, v); }
@$pb.TagNumber(6)
$core.bool hasSyntax() => $_has(5);
@$pb.TagNumber(6)
void clearSyntax() => clearField(6);
}
/// A single field of a message type.
class Field extends $pb.GeneratedMessage {
factory Field({
Field_Kind? kind,
Field_Cardinality? cardinality,
$core.int? number,
$core.String? name,
$core.String? typeUrl,
$core.int? oneofIndex,
$core.bool? packed,
$core.Iterable<Option>? options,
$core.String? jsonName,
$core.String? defaultValue,
}) {
final $result = create();
if (kind != null) {
$result.kind = kind;
}
if (cardinality != null) {
$result.cardinality = cardinality;
}
if (number != null) {
$result.number = number;
}
if (name != null) {
$result.name = name;
}
if (typeUrl != null) {
$result.typeUrl = typeUrl;
}
if (oneofIndex != null) {
$result.oneofIndex = oneofIndex;
}
if (packed != null) {
$result.packed = packed;
}
if (options != null) {
$result.options.addAll(options);
}
if (jsonName != null) {
$result.jsonName = jsonName;
}
if (defaultValue != null) {
$result.defaultValue = defaultValue;
}
return $result;
}
Field._() : super();
factory Field.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Field.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Field', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
..e<Field_Kind>(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, defaultOrMaker: Field_Kind.TYPE_UNKNOWN, valueOf: Field_Kind.valueOf, enumValues: Field_Kind.values)
..e<Field_Cardinality>(2, _omitFieldNames ? '' : 'cardinality', $pb.PbFieldType.OE, defaultOrMaker: Field_Cardinality.CARDINALITY_UNKNOWN, valueOf: Field_Cardinality.valueOf, enumValues: Field_Cardinality.values)
..a<$core.int>(3, _omitFieldNames ? '' : 'number', $pb.PbFieldType.O3)
..aOS(4, _omitFieldNames ? '' : 'name')
..aOS(6, _omitFieldNames ? '' : 'typeUrl')
..a<$core.int>(7, _omitFieldNames ? '' : 'oneofIndex', $pb.PbFieldType.O3)
..aOB(8, _omitFieldNames ? '' : 'packed')
..pc<Option>(9, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: Option.create)
..aOS(10, _omitFieldNames ? '' : 'jsonName')
..aOS(11, _omitFieldNames ? '' : 'defaultValue')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Field clone() => Field()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Field copyWith(void Function(Field) updates) => super.copyWith((message) => updates(message as Field)) as Field;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Field create() => Field._();
Field createEmptyInstance() => create();
static $pb.PbList<Field> createRepeated() => $pb.PbList<Field>();
@$core.pragma('dart2js:noInline')
static Field getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Field>(create);
static Field? _defaultInstance;
/// The field type.
@$pb.TagNumber(1)
Field_Kind get kind => $_getN(0);
@$pb.TagNumber(1)
set kind(Field_Kind v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasKind() => $_has(0);
@$pb.TagNumber(1)
void clearKind() => clearField(1);
/// The field cardinality.
@$pb.TagNumber(2)
Field_Cardinality get cardinality => $_getN(1);
@$pb.TagNumber(2)
set cardinality(Field_Cardinality v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasCardinality() => $_has(1);
@$pb.TagNumber(2)
void clearCardinality() => clearField(2);
/// The field number.
@$pb.TagNumber(3)
$core.int get number => $_getIZ(2);
@$pb.TagNumber(3)
set number($core.int v) { $_setSignedInt32(2, v); }
@$pb.TagNumber(3)
$core.bool hasNumber() => $_has(2);
@$pb.TagNumber(3)
void clearNumber() => clearField(3);
/// The field name.
@$pb.TagNumber(4)
$core.String get name => $_getSZ(3);
@$pb.TagNumber(4)
set name($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasName() => $_has(3);
@$pb.TagNumber(4)
void clearName() => clearField(4);
/// The field type URL, without the scheme, for message or enumeration
/// types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
@$pb.TagNumber(6)
$core.String get typeUrl => $_getSZ(4);
@$pb.TagNumber(6)
set typeUrl($core.String v) { $_setString(4, v); }
@$pb.TagNumber(6)
$core.bool hasTypeUrl() => $_has(4);
@$pb.TagNumber(6)
void clearTypeUrl() => clearField(6);
/// The index of the field type in `Type.oneofs`, for message or enumeration
/// types. The first type has index 1; zero means the type is not in the list.
@$pb.TagNumber(7)
$core.int get oneofIndex => $_getIZ(5);
@$pb.TagNumber(7)
set oneofIndex($core.int v) { $_setSignedInt32(5, v); }
@$pb.TagNumber(7)
$core.bool hasOneofIndex() => $_has(5);
@$pb.TagNumber(7)
void clearOneofIndex() => clearField(7);
/// Whether to use alternative packed wire representation.
@$pb.TagNumber(8)
$core.bool get packed => $_getBF(6);
@$pb.TagNumber(8)
set packed($core.bool v) { $_setBool(6, v); }
@$pb.TagNumber(8)
$core.bool hasPacked() => $_has(6);
@$pb.TagNumber(8)
void clearPacked() => clearField(8);
/// The protocol buffer options.
@$pb.TagNumber(9)
$core.List<Option> get options => $_getList(7);
/// The field JSON name.
@$pb.TagNumber(10)
$core.String get jsonName => $_getSZ(8);
@$pb.TagNumber(10)
set jsonName($core.String v) { $_setString(8, v); }
@$pb.TagNumber(10)
$core.bool hasJsonName() => $_has(8);
@$pb.TagNumber(10)
void clearJsonName() => clearField(10);
/// The string value of the default value of this field. Proto2 syntax only.
@$pb.TagNumber(11)
$core.String get defaultValue => $_getSZ(9);
@$pb.TagNumber(11)
set defaultValue($core.String v) { $_setString(9, v); }
@$pb.TagNumber(11)
$core.bool hasDefaultValue() => $_has(9);
@$pb.TagNumber(11)
void clearDefaultValue() => clearField(11);
}
/// Enum type definition.
class Enum extends $pb.GeneratedMessage {
factory Enum({
$core.String? name,
$core.Iterable<EnumValue>? enumvalue,
$core.Iterable<Option>? options,
$90.SourceContext? sourceContext,
Syntax? syntax,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (enumvalue != null) {
$result.enumvalue.addAll(enumvalue);
}
if (options != null) {
$result.options.addAll(options);
}
if (sourceContext != null) {
$result.sourceContext = sourceContext;
}
if (syntax != null) {
$result.syntax = syntax;
}
return $result;
}
Enum._() : super();
factory Enum.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Enum.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Enum', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..pc<EnumValue>(2, _omitFieldNames ? '' : 'enumvalue', $pb.PbFieldType.PM, subBuilder: EnumValue.create)
..pc<Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: Option.create)
..aOM<$90.SourceContext>(4, _omitFieldNames ? '' : 'sourceContext', subBuilder: $90.SourceContext.create)
..e<Syntax>(5, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: Syntax.SYNTAX_PROTO2, valueOf: Syntax.valueOf, enumValues: 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')
Enum clone() => Enum()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Enum copyWith(void Function(Enum) updates) => super.copyWith((message) => updates(message as Enum)) as Enum;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Enum create() => Enum._();
Enum createEmptyInstance() => create();
static $pb.PbList<Enum> createRepeated() => $pb.PbList<Enum>();
@$core.pragma('dart2js:noInline')
static Enum getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Enum>(create);
static Enum? _defaultInstance;
/// Enum type name.
@$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);
/// Enum value definitions.
@$pb.TagNumber(2)
$core.List<EnumValue> get enumvalue => $_getList(1);
/// Protocol buffer options.
@$pb.TagNumber(3)
$core.List<Option> get options => $_getList(2);
/// The source context.
@$pb.TagNumber(4)
$90.SourceContext get sourceContext => $_getN(3);
@$pb.TagNumber(4)
set sourceContext($90.SourceContext v) { setField(4, v); }
@$pb.TagNumber(4)
$core.bool hasSourceContext() => $_has(3);
@$pb.TagNumber(4)
void clearSourceContext() => clearField(4);
@$pb.TagNumber(4)
$90.SourceContext ensureSourceContext() => $_ensure(3);
/// The source syntax.
@$pb.TagNumber(5)
Syntax get syntax => $_getN(4);
@$pb.TagNumber(5)
set syntax(Syntax v) { setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasSyntax() => $_has(4);
@$pb.TagNumber(5)
void clearSyntax() => clearField(5);
}
/// Enum value definition.
class EnumValue extends $pb.GeneratedMessage {
factory EnumValue({
$core.String? name,
$core.int? number,
$core.Iterable<Option>? options,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (number != null) {
$result.number = number;
}
if (options != null) {
$result.options.addAll(options);
}
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.protobuf'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..a<$core.int>(2, _omitFieldNames ? '' : 'number', $pb.PbFieldType.O3)
..pc<Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: Option.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
EnumValue clone() => EnumValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'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;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EnumValue create() => EnumValue._();
EnumValue createEmptyInstance() => create();
static $pb.PbList<EnumValue> createRepeated() => $pb.PbList<EnumValue>();
@$core.pragma('dart2js:noInline')
static EnumValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<EnumValue>(create);
static EnumValue? _defaultInstance;
/// Enum value name.
@$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);
/// Enum value number.
@$pb.TagNumber(2)
$core.int get number => $_getIZ(1);
@$pb.TagNumber(2)
set number($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasNumber() => $_has(1);
@$pb.TagNumber(2)
void clearNumber() => clearField(2);
/// Protocol buffer options.
@$pb.TagNumber(3)
$core.List<Option> get options => $_getList(2);
}
/// A protocol buffer option, which can be attached to a message, field,
/// enumeration, etc.
class Option extends $pb.GeneratedMessage {
factory Option({
$core.String? name,
$89.Any? value,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (value != null) {
$result.value = value;
}
return $result;
}
Option._() : super();
factory Option.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Option.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Option', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..aOM<$89.Any>(2, _omitFieldNames ? '' : 'value', subBuilder: $89.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')
Option clone() => Option()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Option copyWith(void Function(Option) updates) => super.copyWith((message) => updates(message as Option)) as Option;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Option create() => Option._();
Option createEmptyInstance() => create();
static $pb.PbList<Option> createRepeated() => $pb.PbList<Option>();
@$core.pragma('dart2js:noInline')
static Option getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Option>(create);
static Option? _defaultInstance;
/// The option's name. For protobuf built-in options (options defined in
/// descriptor.proto), this is the short name. For example, `"map_entry"`.
/// For custom options, it should be the fully-qualified name. For example,
/// `"google.api.http"`.
@$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 option's value packed in an Any message. If the value is a primitive,
/// the corresponding wrapper type defined in google/protobuf/wrappers.proto
/// should be used. If the value is an enum, it should be stored as an int32
/// value using the google.protobuf.Int32Value type.
@$pb.TagNumber(2)
$89.Any get value => $_getN(1);
@$pb.TagNumber(2)
set value($89.Any v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasValue() => $_has(1);
@$pb.TagNumber(2)
void clearValue() => clearField(2);
@$pb.TagNumber(2)
$89.Any ensureValue() => $_ensure(1);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,103 @@
//
// Generated code. Do not modify.
// source: google/protobuf/type.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 syntax in which a protocol buffer element is defined.
class Syntax extends $pb.ProtobufEnum {
static const Syntax SYNTAX_PROTO2 = Syntax._(0, _omitEnumNames ? '' : 'SYNTAX_PROTO2');
static const Syntax SYNTAX_PROTO3 = Syntax._(1, _omitEnumNames ? '' : 'SYNTAX_PROTO3');
static const $core.List<Syntax> values = <Syntax> [
SYNTAX_PROTO2,
SYNTAX_PROTO3,
];
static final $core.Map<$core.int, Syntax> _byValue = $pb.ProtobufEnum.initByValue(values);
static Syntax? valueOf($core.int value) => _byValue[value];
const Syntax._($core.int v, $core.String n) : super(v, n);
}
/// Basic field types.
class Field_Kind extends $pb.ProtobufEnum {
static const Field_Kind TYPE_UNKNOWN = Field_Kind._(0, _omitEnumNames ? '' : 'TYPE_UNKNOWN');
static const Field_Kind TYPE_DOUBLE = Field_Kind._(1, _omitEnumNames ? '' : 'TYPE_DOUBLE');
static const Field_Kind TYPE_FLOAT = Field_Kind._(2, _omitEnumNames ? '' : 'TYPE_FLOAT');
static const Field_Kind TYPE_INT64 = Field_Kind._(3, _omitEnumNames ? '' : 'TYPE_INT64');
static const Field_Kind TYPE_UINT64 = Field_Kind._(4, _omitEnumNames ? '' : 'TYPE_UINT64');
static const Field_Kind TYPE_INT32 = Field_Kind._(5, _omitEnumNames ? '' : 'TYPE_INT32');
static const Field_Kind TYPE_FIXED64 = Field_Kind._(6, _omitEnumNames ? '' : 'TYPE_FIXED64');
static const Field_Kind TYPE_FIXED32 = Field_Kind._(7, _omitEnumNames ? '' : 'TYPE_FIXED32');
static const Field_Kind TYPE_BOOL = Field_Kind._(8, _omitEnumNames ? '' : 'TYPE_BOOL');
static const Field_Kind TYPE_STRING = Field_Kind._(9, _omitEnumNames ? '' : 'TYPE_STRING');
static const Field_Kind TYPE_GROUP = Field_Kind._(10, _omitEnumNames ? '' : 'TYPE_GROUP');
static const Field_Kind TYPE_MESSAGE = Field_Kind._(11, _omitEnumNames ? '' : 'TYPE_MESSAGE');
static const Field_Kind TYPE_BYTES = Field_Kind._(12, _omitEnumNames ? '' : 'TYPE_BYTES');
static const Field_Kind TYPE_UINT32 = Field_Kind._(13, _omitEnumNames ? '' : 'TYPE_UINT32');
static const Field_Kind TYPE_ENUM = Field_Kind._(14, _omitEnumNames ? '' : 'TYPE_ENUM');
static const Field_Kind TYPE_SFIXED32 = Field_Kind._(15, _omitEnumNames ? '' : 'TYPE_SFIXED32');
static const Field_Kind TYPE_SFIXED64 = Field_Kind._(16, _omitEnumNames ? '' : 'TYPE_SFIXED64');
static const Field_Kind TYPE_SINT32 = Field_Kind._(17, _omitEnumNames ? '' : 'TYPE_SINT32');
static const Field_Kind TYPE_SINT64 = Field_Kind._(18, _omitEnumNames ? '' : 'TYPE_SINT64');
static const $core.List<Field_Kind> values = <Field_Kind> [
TYPE_UNKNOWN,
TYPE_DOUBLE,
TYPE_FLOAT,
TYPE_INT64,
TYPE_UINT64,
TYPE_INT32,
TYPE_FIXED64,
TYPE_FIXED32,
TYPE_BOOL,
TYPE_STRING,
TYPE_GROUP,
TYPE_MESSAGE,
TYPE_BYTES,
TYPE_UINT32,
TYPE_ENUM,
TYPE_SFIXED32,
TYPE_SFIXED64,
TYPE_SINT32,
TYPE_SINT64,
];
static final $core.Map<$core.int, Field_Kind> _byValue = $pb.ProtobufEnum.initByValue(values);
static Field_Kind? valueOf($core.int value) => _byValue[value];
const Field_Kind._($core.int v, $core.String n) : super(v, n);
}
/// Whether a field is optional, required, or repeated.
class Field_Cardinality extends $pb.ProtobufEnum {
static const Field_Cardinality CARDINALITY_UNKNOWN = Field_Cardinality._(0, _omitEnumNames ? '' : 'CARDINALITY_UNKNOWN');
static const Field_Cardinality CARDINALITY_OPTIONAL = Field_Cardinality._(1, _omitEnumNames ? '' : 'CARDINALITY_OPTIONAL');
static const Field_Cardinality CARDINALITY_REQUIRED = Field_Cardinality._(2, _omitEnumNames ? '' : 'CARDINALITY_REQUIRED');
static const Field_Cardinality CARDINALITY_REPEATED = Field_Cardinality._(3, _omitEnumNames ? '' : 'CARDINALITY_REPEATED');
static const $core.List<Field_Cardinality> values = <Field_Cardinality> [
CARDINALITY_UNKNOWN,
CARDINALITY_OPTIONAL,
CARDINALITY_REQUIRED,
CARDINALITY_REPEATED,
];
static final $core.Map<$core.int, Field_Cardinality> _byValue = $pb.ProtobufEnum.initByValue(values);
static Field_Cardinality? valueOf($core.int value) => _byValue[value];
const Field_Cardinality._($core.int v, $core.String n) : super(v, n);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -0,0 +1,171 @@
//
// Generated code. Do not modify.
// source: google/protobuf/type.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 syntaxDescriptor instead')
const Syntax$json = {
'1': 'Syntax',
'2': [
{'1': 'SYNTAX_PROTO2', '2': 0},
{'1': 'SYNTAX_PROTO3', '2': 1},
],
};
/// Descriptor for `Syntax`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List syntaxDescriptor = $convert.base64Decode(
'CgZTeW50YXgSEQoNU1lOVEFYX1BST1RPMhAAEhEKDVNZTlRBWF9QUk9UTzMQAQ==');
@$core.Deprecated('Use typeDescriptor instead')
const Type$json = {
'1': 'Type',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'fields', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.Field', '10': 'fields'},
{'1': 'oneofs', '3': 3, '4': 3, '5': 9, '10': 'oneofs'},
{'1': 'options', '3': 4, '4': 3, '5': 11, '6': '.google.protobuf.Option', '10': 'options'},
{'1': 'source_context', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.SourceContext', '10': 'sourceContext'},
{'1': 'syntax', '3': 6, '4': 1, '5': 14, '6': '.google.protobuf.Syntax', '10': 'syntax'},
],
};
/// Descriptor for `Type`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List typeDescriptor = $convert.base64Decode(
'CgRUeXBlEhIKBG5hbWUYASABKAlSBG5hbWUSLgoGZmllbGRzGAIgAygLMhYuZ29vZ2xlLnByb3'
'RvYnVmLkZpZWxkUgZmaWVsZHMSFgoGb25lb2ZzGAMgAygJUgZvbmVvZnMSMQoHb3B0aW9ucxgE'
'IAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb25SB29wdGlvbnMSRQoOc291cmNlX2NvbnRleH'
'QYBSABKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dFINc291cmNlQ29udGV4dBIv'
'CgZzeW50YXgYBiABKA4yFy5nb29nbGUucHJvdG9idWYuU3ludGF4UgZzeW50YXg=');
@$core.Deprecated('Use fieldDescriptor instead')
const Field$json = {
'1': 'Field',
'2': [
{'1': 'kind', '3': 1, '4': 1, '5': 14, '6': '.google.protobuf.Field.Kind', '10': 'kind'},
{'1': 'cardinality', '3': 2, '4': 1, '5': 14, '6': '.google.protobuf.Field.Cardinality', '10': 'cardinality'},
{'1': 'number', '3': 3, '4': 1, '5': 5, '10': 'number'},
{'1': 'name', '3': 4, '4': 1, '5': 9, '10': 'name'},
{'1': 'type_url', '3': 6, '4': 1, '5': 9, '10': 'typeUrl'},
{'1': 'oneof_index', '3': 7, '4': 1, '5': 5, '10': 'oneofIndex'},
{'1': 'packed', '3': 8, '4': 1, '5': 8, '10': 'packed'},
{'1': 'options', '3': 9, '4': 3, '5': 11, '6': '.google.protobuf.Option', '10': 'options'},
{'1': 'json_name', '3': 10, '4': 1, '5': 9, '10': 'jsonName'},
{'1': 'default_value', '3': 11, '4': 1, '5': 9, '10': 'defaultValue'},
],
'4': [Field_Kind$json, Field_Cardinality$json],
};
@$core.Deprecated('Use fieldDescriptor instead')
const Field_Kind$json = {
'1': 'Kind',
'2': [
{'1': 'TYPE_UNKNOWN', '2': 0},
{'1': 'TYPE_DOUBLE', '2': 1},
{'1': 'TYPE_FLOAT', '2': 2},
{'1': 'TYPE_INT64', '2': 3},
{'1': 'TYPE_UINT64', '2': 4},
{'1': 'TYPE_INT32', '2': 5},
{'1': 'TYPE_FIXED64', '2': 6},
{'1': 'TYPE_FIXED32', '2': 7},
{'1': 'TYPE_BOOL', '2': 8},
{'1': 'TYPE_STRING', '2': 9},
{'1': 'TYPE_GROUP', '2': 10},
{'1': 'TYPE_MESSAGE', '2': 11},
{'1': 'TYPE_BYTES', '2': 12},
{'1': 'TYPE_UINT32', '2': 13},
{'1': 'TYPE_ENUM', '2': 14},
{'1': 'TYPE_SFIXED32', '2': 15},
{'1': 'TYPE_SFIXED64', '2': 16},
{'1': 'TYPE_SINT32', '2': 17},
{'1': 'TYPE_SINT64', '2': 18},
],
};
@$core.Deprecated('Use fieldDescriptor instead')
const Field_Cardinality$json = {
'1': 'Cardinality',
'2': [
{'1': 'CARDINALITY_UNKNOWN', '2': 0},
{'1': 'CARDINALITY_OPTIONAL', '2': 1},
{'1': 'CARDINALITY_REQUIRED', '2': 2},
{'1': 'CARDINALITY_REPEATED', '2': 3},
],
};
/// Descriptor for `Field`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fieldDescriptor = $convert.base64Decode(
'CgVGaWVsZBIvCgRraW5kGAEgASgOMhsuZ29vZ2xlLnByb3RvYnVmLkZpZWxkLktpbmRSBGtpbm'
'QSRAoLY2FyZGluYWxpdHkYAiABKA4yIi5nb29nbGUucHJvdG9idWYuRmllbGQuQ2FyZGluYWxp'
'dHlSC2NhcmRpbmFsaXR5EhYKBm51bWJlchgDIAEoBVIGbnVtYmVyEhIKBG5hbWUYBCABKAlSBG'
'5hbWUSGQoIdHlwZV91cmwYBiABKAlSB3R5cGVVcmwSHwoLb25lb2ZfaW5kZXgYByABKAVSCm9u'
'ZW9mSW5kZXgSFgoGcGFja2VkGAggASgIUgZwYWNrZWQSMQoHb3B0aW9ucxgJIAMoCzIXLmdvb2'
'dsZS5wcm90b2J1Zi5PcHRpb25SB29wdGlvbnMSGwoJanNvbl9uYW1lGAogASgJUghqc29uTmFt'
'ZRIjCg1kZWZhdWx0X3ZhbHVlGAsgASgJUgxkZWZhdWx0VmFsdWUiyAIKBEtpbmQSEAoMVFlQRV'
'9VTktOT1dOEAASDwoLVFlQRV9ET1VCTEUQARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2'
'NBADEg8KC1RZUEVfVUlOVDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEh'
'AKDFRZUEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkSDgoKVFlQ'
'RV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllURVMQDBIPCgtUWVBFX1VJTl'
'QzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVfU0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0'
'EBASDwoLVFlQRV9TSU5UMzIQERIPCgtUWVBFX1NJTlQ2NBASInQKC0NhcmRpbmFsaXR5EhcKE0'
'NBUkRJTkFMSVRZX1VOS05PV04QABIYChRDQVJESU5BTElUWV9PUFRJT05BTBABEhgKFENBUkRJ'
'TkFMSVRZX1JFUVVJUkVEEAISGAoUQ0FSRElOQUxJVFlfUkVQRUFURUQQAw==');
@$core.Deprecated('Use enumDescriptor instead')
const Enum$json = {
'1': 'Enum',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'enumvalue', '3': 2, '4': 3, '5': 11, '6': '.google.protobuf.EnumValue', '10': 'enumvalue'},
{'1': 'options', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.Option', '10': 'options'},
{'1': 'source_context', '3': 4, '4': 1, '5': 11, '6': '.google.protobuf.SourceContext', '10': 'sourceContext'},
{'1': 'syntax', '3': 5, '4': 1, '5': 14, '6': '.google.protobuf.Syntax', '10': 'syntax'},
],
};
/// Descriptor for `Enum`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List enumDescriptor = $convert.base64Decode(
'CgRFbnVtEhIKBG5hbWUYASABKAlSBG5hbWUSOAoJZW51bXZhbHVlGAIgAygLMhouZ29vZ2xlLn'
'Byb3RvYnVmLkVudW1WYWx1ZVIJZW51bXZhbHVlEjEKB29wdGlvbnMYAyADKAsyFy5nb29nbGUu'
'cHJvdG9idWYuT3B0aW9uUgdvcHRpb25zEkUKDnNvdXJjZV9jb250ZXh0GAQgASgLMh4uZ29vZ2'
'xlLnByb3RvYnVmLlNvdXJjZUNvbnRleHRSDXNvdXJjZUNvbnRleHQSLwoGc3ludGF4GAUgASgO'
'MhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4');
@$core.Deprecated('Use enumValueDescriptor instead')
const EnumValue$json = {
'1': 'EnumValue',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'number', '3': 2, '4': 1, '5': 5, '10': 'number'},
{'1': 'options', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.Option', '10': 'options'},
],
};
/// Descriptor for `EnumValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List enumValueDescriptor = $convert.base64Decode(
'CglFbnVtVmFsdWUSEgoEbmFtZRgBIAEoCVIEbmFtZRIWCgZudW1iZXIYAiABKAVSBm51bWJlch'
'IxCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvblIHb3B0aW9ucw==');
@$core.Deprecated('Use optionDescriptor instead')
const Option$json = {
'1': 'Option',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Any', '10': 'value'},
],
};
/// Descriptor for `Option`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List optionDescriptor = $convert.base64Decode(
'CgZPcHRpb24SEgoEbmFtZRgBIAEoCVIEbmFtZRIqCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm'
'90b2J1Zi5BbnlSBXZhbHVl');

View File

@@ -0,0 +1,506 @@
//
// Generated code. Do not modify.
// source: google/protobuf/wrappers.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 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
/// Wrapper message for `double`.
///
/// The JSON representation for `DoubleValue` is JSON number.
class DoubleValue extends $pb.GeneratedMessage with $mixin.DoubleValueMixin {
factory DoubleValue({
$core.double? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
DoubleValue._() : super();
factory DoubleValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory DoubleValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DoubleValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.DoubleValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.DoubleValueMixin.fromProto3JsonHelper)
..a<$core.double>(1, _omitFieldNames ? '' : 'value', $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')
DoubleValue clone() => DoubleValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
DoubleValue copyWith(void Function(DoubleValue) updates) => super.copyWith((message) => updates(message as DoubleValue)) as DoubleValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static DoubleValue create() => DoubleValue._();
DoubleValue createEmptyInstance() => create();
static $pb.PbList<DoubleValue> createRepeated() => $pb.PbList<DoubleValue>();
@$core.pragma('dart2js:noInline')
static DoubleValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DoubleValue>(create);
static DoubleValue? _defaultInstance;
/// The double value.
@$pb.TagNumber(1)
$core.double get value => $_getN(0);
@$pb.TagNumber(1)
set value($core.double v) { $_setDouble(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
/// Wrapper message for `float`.
///
/// The JSON representation for `FloatValue` is JSON number.
class FloatValue extends $pb.GeneratedMessage with $mixin.FloatValueMixin {
factory FloatValue({
$core.double? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
FloatValue._() : super();
factory FloatValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory FloatValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FloatValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.FloatValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.FloatValueMixin.fromProto3JsonHelper)
..a<$core.double>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OF)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
FloatValue clone() => FloatValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
FloatValue copyWith(void Function(FloatValue) updates) => super.copyWith((message) => updates(message as FloatValue)) as FloatValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static FloatValue create() => FloatValue._();
FloatValue createEmptyInstance() => create();
static $pb.PbList<FloatValue> createRepeated() => $pb.PbList<FloatValue>();
@$core.pragma('dart2js:noInline')
static FloatValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FloatValue>(create);
static FloatValue? _defaultInstance;
/// The float value.
@$pb.TagNumber(1)
$core.double get value => $_getN(0);
@$pb.TagNumber(1)
set value($core.double v) { $_setFloat(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
/// Wrapper message for `int64`.
///
/// The JSON representation for `Int64Value` is JSON string.
class Int64Value extends $pb.GeneratedMessage with $mixin.Int64ValueMixin {
factory Int64Value({
$fixnum.Int64? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
Int64Value._() : super();
factory Int64Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Int64Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Int64Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.Int64ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.Int64ValueMixin.fromProto3JsonHelper)
..aInt64(1, _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')
Int64Value clone() => Int64Value()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Int64Value copyWith(void Function(Int64Value) updates) => super.copyWith((message) => updates(message as Int64Value)) as Int64Value;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Int64Value create() => Int64Value._();
Int64Value createEmptyInstance() => create();
static $pb.PbList<Int64Value> createRepeated() => $pb.PbList<Int64Value>();
@$core.pragma('dart2js:noInline')
static Int64Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Int64Value>(create);
static Int64Value? _defaultInstance;
/// The int64 value.
@$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);
}
/// Wrapper message for `uint64`.
///
/// The JSON representation for `UInt64Value` is JSON string.
class UInt64Value extends $pb.GeneratedMessage with $mixin.UInt64ValueMixin {
factory UInt64Value({
$fixnum.Int64? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
UInt64Value._() : super();
factory UInt64Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory UInt64Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UInt64Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.UInt64ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.UInt64ValueMixin.fromProto3JsonHelper)
..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
UInt64Value clone() => UInt64Value()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
UInt64Value copyWith(void Function(UInt64Value) updates) => super.copyWith((message) => updates(message as UInt64Value)) as UInt64Value;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UInt64Value create() => UInt64Value._();
UInt64Value createEmptyInstance() => create();
static $pb.PbList<UInt64Value> createRepeated() => $pb.PbList<UInt64Value>();
@$core.pragma('dart2js:noInline')
static UInt64Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UInt64Value>(create);
static UInt64Value? _defaultInstance;
/// The uint64 value.
@$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);
}
/// Wrapper message for `int32`.
///
/// The JSON representation for `Int32Value` is JSON number.
class Int32Value extends $pb.GeneratedMessage with $mixin.Int32ValueMixin {
factory Int32Value({
$core.int? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
Int32Value._() : super();
factory Int32Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Int32Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Int32Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.Int32ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.Int32ValueMixin.fromProto3JsonHelper)
..a<$core.int>(1, _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')
Int32Value clone() => Int32Value()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)) as Int32Value;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Int32Value create() => Int32Value._();
Int32Value createEmptyInstance() => create();
static $pb.PbList<Int32Value> createRepeated() => $pb.PbList<Int32Value>();
@$core.pragma('dart2js:noInline')
static Int32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Int32Value>(create);
static Int32Value? _defaultInstance;
/// The int32 value.
@$pb.TagNumber(1)
$core.int get value => $_getIZ(0);
@$pb.TagNumber(1)
set value($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
/// Wrapper message for `uint32`.
///
/// The JSON representation for `UInt32Value` is JSON number.
class UInt32Value extends $pb.GeneratedMessage with $mixin.UInt32ValueMixin {
factory UInt32Value({
$core.int? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
UInt32Value._() : super();
factory UInt32Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory UInt32Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UInt32Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.UInt32ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.UInt32ValueMixin.fromProto3JsonHelper)
..a<$core.int>(1, _omitFieldNames ? '' : 'value', $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')
UInt32Value clone() => UInt32Value()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
UInt32Value copyWith(void Function(UInt32Value) updates) => super.copyWith((message) => updates(message as UInt32Value)) as UInt32Value;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UInt32Value create() => UInt32Value._();
UInt32Value createEmptyInstance() => create();
static $pb.PbList<UInt32Value> createRepeated() => $pb.PbList<UInt32Value>();
@$core.pragma('dart2js:noInline')
static UInt32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UInt32Value>(create);
static UInt32Value? _defaultInstance;
/// The uint32 value.
@$pb.TagNumber(1)
$core.int get value => $_getIZ(0);
@$pb.TagNumber(1)
set value($core.int v) { $_setUnsignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
/// Wrapper message for `bool`.
///
/// The JSON representation for `BoolValue` is JSON `true` and `false`.
class BoolValue extends $pb.GeneratedMessage with $mixin.BoolValueMixin {
factory BoolValue({
$core.bool? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
BoolValue._() : super();
factory BoolValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory BoolValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BoolValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.BoolValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.BoolValueMixin.fromProto3JsonHelper)
..aOB(1, _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')
BoolValue clone() => BoolValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BoolValue copyWith(void Function(BoolValue) updates) => super.copyWith((message) => updates(message as BoolValue)) as BoolValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BoolValue create() => BoolValue._();
BoolValue createEmptyInstance() => create();
static $pb.PbList<BoolValue> createRepeated() => $pb.PbList<BoolValue>();
@$core.pragma('dart2js:noInline')
static BoolValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BoolValue>(create);
static BoolValue? _defaultInstance;
/// The bool value.
@$pb.TagNumber(1)
$core.bool get value => $_getBF(0);
@$pb.TagNumber(1)
set value($core.bool v) { $_setBool(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
/// Wrapper message for `string`.
///
/// The JSON representation for `StringValue` is JSON string.
class StringValue extends $pb.GeneratedMessage with $mixin.StringValueMixin {
factory StringValue({
$core.String? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
StringValue._() : super();
factory StringValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory StringValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StringValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.StringValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.StringValueMixin.fromProto3JsonHelper)
..aOS(1, _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')
StringValue clone() => StringValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
StringValue copyWith(void Function(StringValue) updates) => super.copyWith((message) => updates(message as StringValue)) as StringValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static StringValue create() => StringValue._();
StringValue createEmptyInstance() => create();
static $pb.PbList<StringValue> createRepeated() => $pb.PbList<StringValue>();
@$core.pragma('dart2js:noInline')
static StringValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<StringValue>(create);
static StringValue? _defaultInstance;
/// The string value.
@$pb.TagNumber(1)
$core.String get value => $_getSZ(0);
@$pb.TagNumber(1)
set value($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
/// Wrapper message for `bytes`.
///
/// The JSON representation for `BytesValue` is JSON string.
class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin {
factory BytesValue({
$core.List<$core.int>? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
}
BytesValue._() : super();
factory BytesValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory BytesValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BytesValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.BytesValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.BytesValueMixin.fromProto3JsonHelper)
..a<$core.List<$core.int>>(1, _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')
BytesValue clone() => BytesValue()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BytesValue copyWith(void Function(BytesValue) updates) => super.copyWith((message) => updates(message as BytesValue)) as BytesValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BytesValue create() => BytesValue._();
BytesValue createEmptyInstance() => create();
static $pb.PbList<BytesValue> createRepeated() => $pb.PbList<BytesValue>();
@$core.pragma('dart2js:noInline')
static BytesValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BytesValue>(create);
static BytesValue? _defaultInstance;
/// The bytes value.
@$pb.TagNumber(1)
$core.List<$core.int> get value => $_getN(0);
@$pb.TagNumber(1)
set value($core.List<$core.int> v) { $_setBytes(0, v); }
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
void clearValue() => clearField(1);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/protobuf/wrappers.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

View File

@@ -0,0 +1,123 @@
//
// Generated code. Do not modify.
// source: google/protobuf/wrappers.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 doubleValueDescriptor instead')
const DoubleValue$json = {
'1': 'DoubleValue',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 1, '10': 'value'},
],
};
/// Descriptor for `DoubleValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List doubleValueDescriptor = $convert.base64Decode(
'CgtEb3VibGVWYWx1ZRIUCgV2YWx1ZRgBIAEoAVIFdmFsdWU=');
@$core.Deprecated('Use floatValueDescriptor instead')
const FloatValue$json = {
'1': 'FloatValue',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 2, '10': 'value'},
],
};
/// Descriptor for `FloatValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List floatValueDescriptor = $convert.base64Decode(
'CgpGbG9hdFZhbHVlEhQKBXZhbHVlGAEgASgCUgV2YWx1ZQ==');
@$core.Deprecated('Use int64ValueDescriptor instead')
const Int64Value$json = {
'1': 'Int64Value',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 3, '10': 'value'},
],
};
/// Descriptor for `Int64Value`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List int64ValueDescriptor = $convert.base64Decode(
'CgpJbnQ2NFZhbHVlEhQKBXZhbHVlGAEgASgDUgV2YWx1ZQ==');
@$core.Deprecated('Use uInt64ValueDescriptor instead')
const UInt64Value$json = {
'1': 'UInt64Value',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 4, '10': 'value'},
],
};
/// Descriptor for `UInt64Value`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List uInt64ValueDescriptor = $convert.base64Decode(
'CgtVSW50NjRWYWx1ZRIUCgV2YWx1ZRgBIAEoBFIFdmFsdWU=');
@$core.Deprecated('Use int32ValueDescriptor instead')
const Int32Value$json = {
'1': 'Int32Value',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 5, '10': 'value'},
],
};
/// Descriptor for `Int32Value`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List int32ValueDescriptor = $convert.base64Decode(
'CgpJbnQzMlZhbHVlEhQKBXZhbHVlGAEgASgFUgV2YWx1ZQ==');
@$core.Deprecated('Use uInt32ValueDescriptor instead')
const UInt32Value$json = {
'1': 'UInt32Value',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 13, '10': 'value'},
],
};
/// Descriptor for `UInt32Value`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List uInt32ValueDescriptor = $convert.base64Decode(
'CgtVSW50MzJWYWx1ZRIUCgV2YWx1ZRgBIAEoDVIFdmFsdWU=');
@$core.Deprecated('Use boolValueDescriptor instead')
const BoolValue$json = {
'1': 'BoolValue',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 8, '10': 'value'},
],
};
/// Descriptor for `BoolValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List boolValueDescriptor = $convert.base64Decode(
'CglCb29sVmFsdWUSFAoFdmFsdWUYASABKAhSBXZhbHVl');
@$core.Deprecated('Use stringValueDescriptor instead')
const StringValue$json = {
'1': 'StringValue',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 9, '10': 'value'},
],
};
/// Descriptor for `StringValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List stringValueDescriptor = $convert.base64Decode(
'CgtTdHJpbmdWYWx1ZRIUCgV2YWx1ZRgBIAEoCVIFdmFsdWU=');
@$core.Deprecated('Use bytesValueDescriptor instead')
const BytesValue$json = {
'1': 'BytesValue',
'2': [
{'1': 'value', '3': 1, '4': 1, '5': 12, '10': 'value'},
],
};
/// Descriptor for `BytesValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List bytesValueDescriptor = $convert.base64Decode(
'CgpCeXRlc1ZhbHVlEhQKBXZhbHVlGAEgASgMUgV2YWx1ZQ==');

View File

@@ -0,0 +1,15 @@
//
// Generated code. Do not modify.
// source: google/rpc/code.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;
export 'code.pbenum.dart';

View File

@@ -0,0 +1,69 @@
//
// Generated code. Do not modify.
// source: google/rpc/code.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 canonical error codes for Google APIs.
///
///
/// Sometimes multiple error codes may apply. Services should return
/// the most specific error code that applies. For example, prefer
/// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
/// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
class Code extends $pb.ProtobufEnum {
static const Code OK = Code._(0, _omitEnumNames ? '' : 'OK');
static const Code CANCELLED = Code._(1, _omitEnumNames ? '' : 'CANCELLED');
static const Code UNKNOWN = Code._(2, _omitEnumNames ? '' : 'UNKNOWN');
static const Code INVALID_ARGUMENT = Code._(3, _omitEnumNames ? '' : 'INVALID_ARGUMENT');
static const Code DEADLINE_EXCEEDED = Code._(4, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED');
static const Code NOT_FOUND = Code._(5, _omitEnumNames ? '' : 'NOT_FOUND');
static const Code ALREADY_EXISTS = Code._(6, _omitEnumNames ? '' : 'ALREADY_EXISTS');
static const Code PERMISSION_DENIED = Code._(7, _omitEnumNames ? '' : 'PERMISSION_DENIED');
static const Code UNAUTHENTICATED = Code._(16, _omitEnumNames ? '' : 'UNAUTHENTICATED');
static const Code RESOURCE_EXHAUSTED = Code._(8, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED');
static const Code FAILED_PRECONDITION = Code._(9, _omitEnumNames ? '' : 'FAILED_PRECONDITION');
static const Code ABORTED = Code._(10, _omitEnumNames ? '' : 'ABORTED');
static const Code OUT_OF_RANGE = Code._(11, _omitEnumNames ? '' : 'OUT_OF_RANGE');
static const Code UNIMPLEMENTED = Code._(12, _omitEnumNames ? '' : 'UNIMPLEMENTED');
static const Code INTERNAL = Code._(13, _omitEnumNames ? '' : 'INTERNAL');
static const Code UNAVAILABLE = Code._(14, _omitEnumNames ? '' : 'UNAVAILABLE');
static const Code DATA_LOSS = Code._(15, _omitEnumNames ? '' : 'DATA_LOSS');
static const $core.List<Code> values = <Code> [
OK,
CANCELLED,
UNKNOWN,
INVALID_ARGUMENT,
DEADLINE_EXCEEDED,
NOT_FOUND,
ALREADY_EXISTS,
PERMISSION_DENIED,
UNAUTHENTICATED,
RESOURCE_EXHAUSTED,
FAILED_PRECONDITION,
ABORTED,
OUT_OF_RANGE,
UNIMPLEMENTED,
INTERNAL,
UNAVAILABLE,
DATA_LOSS,
];
static final $core.Map<$core.int, Code> _byValue = $pb.ProtobufEnum.initByValue(values);
static Code? valueOf($core.int value) => _byValue[value];
const Code._($core.int v, $core.String n) : super(v, n);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -0,0 +1,48 @@
//
// Generated code. Do not modify.
// source: google/rpc/code.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 codeDescriptor instead')
const Code$json = {
'1': 'Code',
'2': [
{'1': 'OK', '2': 0},
{'1': 'CANCELLED', '2': 1},
{'1': 'UNKNOWN', '2': 2},
{'1': 'INVALID_ARGUMENT', '2': 3},
{'1': 'DEADLINE_EXCEEDED', '2': 4},
{'1': 'NOT_FOUND', '2': 5},
{'1': 'ALREADY_EXISTS', '2': 6},
{'1': 'PERMISSION_DENIED', '2': 7},
{'1': 'UNAUTHENTICATED', '2': 16},
{'1': 'RESOURCE_EXHAUSTED', '2': 8},
{'1': 'FAILED_PRECONDITION', '2': 9},
{'1': 'ABORTED', '2': 10},
{'1': 'OUT_OF_RANGE', '2': 11},
{'1': 'UNIMPLEMENTED', '2': 12},
{'1': 'INTERNAL', '2': 13},
{'1': 'UNAVAILABLE', '2': 14},
{'1': 'DATA_LOSS', '2': 15},
],
};
/// Descriptor for `Code`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List codeDescriptor = $convert.base64Decode(
'CgRDb2RlEgYKAk9LEAASDQoJQ0FOQ0VMTEVEEAESCwoHVU5LTk9XThACEhQKEElOVkFMSURfQV'
'JHVU1FTlQQAxIVChFERUFETElORV9FWENFRURFRBAEEg0KCU5PVF9GT1VORBAFEhIKDkFMUkVB'
'RFlfRVhJU1RTEAYSFQoRUEVSTUlTU0lPTl9ERU5JRUQQBxITCg9VTkFVVEhFTlRJQ0FURUQQEB'
'IWChJSRVNPVVJDRV9FWEhBVVNURUQQCBIXChNGQUlMRURfUFJFQ09ORElUSU9OEAkSCwoHQUJP'
'UlRFRBAKEhAKDE9VVF9PRl9SQU5HRRALEhEKDVVOSU1QTEVNRU5URUQQDBIMCghJTlRFUk5BTB'
'ANEg8KC1VOQVZBSUxBQkxFEA4SDQoJREFUQV9MT1NTEA8=');

View File

@@ -0,0 +1,896 @@
//
// Generated code. Do not modify.
// source: google/rpc/error_details.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/duration.pb.dart' as $63;
/// 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.
///
/// It's always recommended that clients should use exponential backoff when
/// retrying.
///
/// Clients should wait until `retry_delay` amount of time has passed since
/// receiving the error response before retrying. If retrying requests also
/// fail, clients should use an exponential backoff scheme to gradually increase
/// the delay between retries based on `retry_delay`, until either a maximum
/// number of retires have been reached or a maximum retry delay cap has been
/// reached.
class RetryInfo extends $pb.GeneratedMessage {
factory RetryInfo({
$63.Duration? retryDelay,
}) {
final $result = create();
if (retryDelay != null) {
$result.retryDelay = retryDelay;
}
return $result;
}
RetryInfo._() : super();
factory RetryInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory RetryInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RetryInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOM<$63.Duration>(1, _omitFieldNames ? '' : 'retryDelay', subBuilder: $63.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')
RetryInfo clone() => RetryInfo()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RetryInfo copyWith(void Function(RetryInfo) updates) => super.copyWith((message) => updates(message as RetryInfo)) as RetryInfo;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RetryInfo create() => RetryInfo._();
RetryInfo createEmptyInstance() => create();
static $pb.PbList<RetryInfo> createRepeated() => $pb.PbList<RetryInfo>();
@$core.pragma('dart2js:noInline')
static RetryInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RetryInfo>(create);
static RetryInfo? _defaultInstance;
/// Clients should wait at least this long between retrying the same request.
@$pb.TagNumber(1)
$63.Duration get retryDelay => $_getN(0);
@$pb.TagNumber(1)
set retryDelay($63.Duration v) { setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasRetryDelay() => $_has(0);
@$pb.TagNumber(1)
void clearRetryDelay() => clearField(1);
@$pb.TagNumber(1)
$63.Duration ensureRetryDelay() => $_ensure(0);
}
/// Describes additional debugging info.
class DebugInfo extends $pb.GeneratedMessage {
factory DebugInfo({
$core.Iterable<$core.String>? stackEntries,
$core.String? detail,
}) {
final $result = create();
if (stackEntries != null) {
$result.stackEntries.addAll(stackEntries);
}
if (detail != null) {
$result.detail = detail;
}
return $result;
}
DebugInfo._() : super();
factory DebugInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory DebugInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DebugInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..pPS(1, _omitFieldNames ? '' : 'stackEntries')
..aOS(2, _omitFieldNames ? '' : 'detail')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
DebugInfo clone() => DebugInfo()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
DebugInfo copyWith(void Function(DebugInfo) updates) => super.copyWith((message) => updates(message as DebugInfo)) as DebugInfo;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static DebugInfo create() => DebugInfo._();
DebugInfo createEmptyInstance() => create();
static $pb.PbList<DebugInfo> createRepeated() => $pb.PbList<DebugInfo>();
@$core.pragma('dart2js:noInline')
static DebugInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DebugInfo>(create);
static DebugInfo? _defaultInstance;
/// The stack trace entries indicating where the error occurred.
@$pb.TagNumber(1)
$core.List<$core.String> get stackEntries => $_getList(0);
/// Additional debugging information provided by the server.
@$pb.TagNumber(2)
$core.String get detail => $_getSZ(1);
@$pb.TagNumber(2)
set detail($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasDetail() => $_has(1);
@$pb.TagNumber(2)
void clearDetail() => clearField(2);
}
/// A message type used to describe a single quota violation. For example, a
/// daily quota or a custom quota that was exceeded.
class QuotaFailure_Violation extends $pb.GeneratedMessage {
factory QuotaFailure_Violation({
$core.String? subject,
$core.String? description,
}) {
final $result = create();
if (subject != null) {
$result.subject = subject;
}
if (description != null) {
$result.description = description;
}
return $result;
}
QuotaFailure_Violation._() : super();
factory QuotaFailure_Violation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory QuotaFailure_Violation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'QuotaFailure.Violation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'subject')
..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')
QuotaFailure_Violation clone() => QuotaFailure_Violation()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
QuotaFailure_Violation copyWith(void Function(QuotaFailure_Violation) updates) => super.copyWith((message) => updates(message as QuotaFailure_Violation)) as QuotaFailure_Violation;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static QuotaFailure_Violation create() => QuotaFailure_Violation._();
QuotaFailure_Violation createEmptyInstance() => create();
static $pb.PbList<QuotaFailure_Violation> createRepeated() => $pb.PbList<QuotaFailure_Violation>();
@$core.pragma('dart2js:noInline')
static QuotaFailure_Violation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<QuotaFailure_Violation>(create);
static QuotaFailure_Violation? _defaultInstance;
/// The subject on which the quota check failed.
/// For example, "clientip:<ip address of client>" or "project:<Google
/// developer project id>".
@$pb.TagNumber(1)
$core.String get subject => $_getSZ(0);
@$pb.TagNumber(1)
set subject($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasSubject() => $_has(0);
@$pb.TagNumber(1)
void clearSubject() => clearField(1);
/// A description of how the quota check failed. Clients can use this
/// description to find more about the quota configuration in the service's
/// public documentation, or find the relevant quota limit to adjust through
/// developer console.
///
/// For example: "Service disabled" or "Daily Limit for read operations
/// exceeded".
@$pb.TagNumber(2)
$core.String get description => $_getSZ(1);
@$pb.TagNumber(2)
set description($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasDescription() => $_has(1);
@$pb.TagNumber(2)
void clearDescription() => clearField(2);
}
/// Describes how a quota check failed.
///
/// For example if a daily limit was exceeded for the calling project,
/// a service could respond with a QuotaFailure detail containing the project
/// id and the description of the quota limit that was exceeded. If the
/// calling project hasn't enabled the service in the developer console, then
/// a service could respond with the project id and set `service_disabled`
/// to true.
///
/// Also see RetryDetail and Help types for other details about handling a
/// quota failure.
class QuotaFailure extends $pb.GeneratedMessage {
factory QuotaFailure({
$core.Iterable<QuotaFailure_Violation>? violations,
}) {
final $result = create();
if (violations != null) {
$result.violations.addAll(violations);
}
return $result;
}
QuotaFailure._() : super();
factory QuotaFailure.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory QuotaFailure.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'QuotaFailure', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..pc<QuotaFailure_Violation>(1, _omitFieldNames ? '' : 'violations', $pb.PbFieldType.PM, subBuilder: QuotaFailure_Violation.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
QuotaFailure clone() => QuotaFailure()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
QuotaFailure copyWith(void Function(QuotaFailure) updates) => super.copyWith((message) => updates(message as QuotaFailure)) as QuotaFailure;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static QuotaFailure create() => QuotaFailure._();
QuotaFailure createEmptyInstance() => create();
static $pb.PbList<QuotaFailure> createRepeated() => $pb.PbList<QuotaFailure>();
@$core.pragma('dart2js:noInline')
static QuotaFailure getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<QuotaFailure>(create);
static QuotaFailure? _defaultInstance;
/// Describes all quota violations.
@$pb.TagNumber(1)
$core.List<QuotaFailure_Violation> get violations => $_getList(0);
}
/// A message type used to describe a single precondition failure.
class PreconditionFailure_Violation extends $pb.GeneratedMessage {
factory PreconditionFailure_Violation({
$core.String? type,
$core.String? subject,
$core.String? description,
}) {
final $result = create();
if (type != null) {
$result.type = type;
}
if (subject != null) {
$result.subject = subject;
}
if (description != null) {
$result.description = description;
}
return $result;
}
PreconditionFailure_Violation._() : super();
factory PreconditionFailure_Violation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory PreconditionFailure_Violation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PreconditionFailure.Violation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'type')
..aOS(2, _omitFieldNames ? '' : 'subject')
..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')
PreconditionFailure_Violation clone() => PreconditionFailure_Violation()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PreconditionFailure_Violation copyWith(void Function(PreconditionFailure_Violation) updates) => super.copyWith((message) => updates(message as PreconditionFailure_Violation)) as PreconditionFailure_Violation;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PreconditionFailure_Violation create() => PreconditionFailure_Violation._();
PreconditionFailure_Violation createEmptyInstance() => create();
static $pb.PbList<PreconditionFailure_Violation> createRepeated() => $pb.PbList<PreconditionFailure_Violation>();
@$core.pragma('dart2js:noInline')
static PreconditionFailure_Violation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PreconditionFailure_Violation>(create);
static PreconditionFailure_Violation? _defaultInstance;
/// The type of PreconditionFailure. We recommend using a service-specific
/// enum type to define the supported precondition violation types. For
/// example, "TOS" for "Terms of Service violation".
@$pb.TagNumber(1)
$core.String get type => $_getSZ(0);
@$pb.TagNumber(1)
set type($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasType() => $_has(0);
@$pb.TagNumber(1)
void clearType() => clearField(1);
/// The subject, relative to the type, that failed.
/// For example, "google.com/cloud" relative to the "TOS" type would
/// indicate which terms of service is being referenced.
@$pb.TagNumber(2)
$core.String get subject => $_getSZ(1);
@$pb.TagNumber(2)
set subject($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasSubject() => $_has(1);
@$pb.TagNumber(2)
void clearSubject() => clearField(2);
/// A description of how the precondition failed. Developers can use this
/// description to understand how to fix the failure.
///
/// For example: "Terms of service not accepted".
@$pb.TagNumber(3)
$core.String get description => $_getSZ(2);
@$pb.TagNumber(3)
set description($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasDescription() => $_has(2);
@$pb.TagNumber(3)
void clearDescription() => clearField(3);
}
/// Describes what preconditions have failed.
///
/// For example, if an RPC failed because it required the Terms of Service to be
/// acknowledged, it could list the terms of service violation in the
/// PreconditionFailure message.
class PreconditionFailure extends $pb.GeneratedMessage {
factory PreconditionFailure({
$core.Iterable<PreconditionFailure_Violation>? violations,
}) {
final $result = create();
if (violations != null) {
$result.violations.addAll(violations);
}
return $result;
}
PreconditionFailure._() : super();
factory PreconditionFailure.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory PreconditionFailure.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PreconditionFailure', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..pc<PreconditionFailure_Violation>(1, _omitFieldNames ? '' : 'violations', $pb.PbFieldType.PM, subBuilder: PreconditionFailure_Violation.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
PreconditionFailure clone() => PreconditionFailure()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
PreconditionFailure copyWith(void Function(PreconditionFailure) updates) => super.copyWith((message) => updates(message as PreconditionFailure)) as PreconditionFailure;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static PreconditionFailure create() => PreconditionFailure._();
PreconditionFailure createEmptyInstance() => create();
static $pb.PbList<PreconditionFailure> createRepeated() => $pb.PbList<PreconditionFailure>();
@$core.pragma('dart2js:noInline')
static PreconditionFailure getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PreconditionFailure>(create);
static PreconditionFailure? _defaultInstance;
/// Describes all precondition violations.
@$pb.TagNumber(1)
$core.List<PreconditionFailure_Violation> get violations => $_getList(0);
}
/// A message type used to describe a single bad request field.
class BadRequest_FieldViolation extends $pb.GeneratedMessage {
factory BadRequest_FieldViolation({
$core.String? field_1,
$core.String? description,
}) {
final $result = create();
if (field_1 != null) {
$result.field_1 = field_1;
}
if (description != null) {
$result.description = description;
}
return $result;
}
BadRequest_FieldViolation._() : super();
factory BadRequest_FieldViolation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory BadRequest_FieldViolation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BadRequest.FieldViolation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'field')
..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')
BadRequest_FieldViolation clone() => BadRequest_FieldViolation()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BadRequest_FieldViolation copyWith(void Function(BadRequest_FieldViolation) updates) => super.copyWith((message) => updates(message as BadRequest_FieldViolation)) as BadRequest_FieldViolation;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BadRequest_FieldViolation create() => BadRequest_FieldViolation._();
BadRequest_FieldViolation createEmptyInstance() => create();
static $pb.PbList<BadRequest_FieldViolation> createRepeated() => $pb.PbList<BadRequest_FieldViolation>();
@$core.pragma('dart2js:noInline')
static BadRequest_FieldViolation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BadRequest_FieldViolation>(create);
static BadRequest_FieldViolation? _defaultInstance;
/// A path leading 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.
@$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 description of why the request element is bad.
@$pb.TagNumber(2)
$core.String get description => $_getSZ(1);
@$pb.TagNumber(2)
set description($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasDescription() => $_has(1);
@$pb.TagNumber(2)
void clearDescription() => clearField(2);
}
/// Describes violations in a client request. This error type focuses on the
/// syntactic aspects of the request.
class BadRequest extends $pb.GeneratedMessage {
factory BadRequest({
$core.Iterable<BadRequest_FieldViolation>? fieldViolations,
}) {
final $result = create();
if (fieldViolations != null) {
$result.fieldViolations.addAll(fieldViolations);
}
return $result;
}
BadRequest._() : super();
factory BadRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory BadRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BadRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..pc<BadRequest_FieldViolation>(1, _omitFieldNames ? '' : 'fieldViolations', $pb.PbFieldType.PM, subBuilder: BadRequest_FieldViolation.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
BadRequest clone() => BadRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BadRequest copyWith(void Function(BadRequest) updates) => super.copyWith((message) => updates(message as BadRequest)) as BadRequest;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BadRequest create() => BadRequest._();
BadRequest createEmptyInstance() => create();
static $pb.PbList<BadRequest> createRepeated() => $pb.PbList<BadRequest>();
@$core.pragma('dart2js:noInline')
static BadRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BadRequest>(create);
static BadRequest? _defaultInstance;
/// Describes all violations in a client request.
@$pb.TagNumber(1)
$core.List<BadRequest_FieldViolation> get fieldViolations => $_getList(0);
}
/// Contains metadata about the request that clients can attach when filing a bug
/// or providing other forms of feedback.
class RequestInfo extends $pb.GeneratedMessage {
factory RequestInfo({
$core.String? requestId,
$core.String? servingData,
}) {
final $result = create();
if (requestId != null) {
$result.requestId = requestId;
}
if (servingData != null) {
$result.servingData = servingData;
}
return $result;
}
RequestInfo._() : super();
factory RequestInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory RequestInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RequestInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'requestId')
..aOS(2, _omitFieldNames ? '' : 'servingData')
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
RequestInfo clone() => RequestInfo()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
RequestInfo copyWith(void Function(RequestInfo) updates) => super.copyWith((message) => updates(message as RequestInfo)) as RequestInfo;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RequestInfo create() => RequestInfo._();
RequestInfo createEmptyInstance() => create();
static $pb.PbList<RequestInfo> createRepeated() => $pb.PbList<RequestInfo>();
@$core.pragma('dart2js:noInline')
static RequestInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<RequestInfo>(create);
static RequestInfo? _defaultInstance;
/// An opaque string that should only be interpreted by the service generating
/// it. For example, it can be used to identify requests in the service's logs.
@$pb.TagNumber(1)
$core.String get requestId => $_getSZ(0);
@$pb.TagNumber(1)
set requestId($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasRequestId() => $_has(0);
@$pb.TagNumber(1)
void clearRequestId() => clearField(1);
/// Any data that was used to serve this request. For example, an encrypted
/// stack trace that can be sent back to the service provider for debugging.
@$pb.TagNumber(2)
$core.String get servingData => $_getSZ(1);
@$pb.TagNumber(2)
set servingData($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasServingData() => $_has(1);
@$pb.TagNumber(2)
void clearServingData() => clearField(2);
}
/// Describes the resource that is being accessed.
class ResourceInfo extends $pb.GeneratedMessage {
factory ResourceInfo({
$core.String? resourceType,
$core.String? resourceName,
$core.String? owner,
$core.String? description,
}) {
final $result = create();
if (resourceType != null) {
$result.resourceType = resourceType;
}
if (resourceName != null) {
$result.resourceName = resourceName;
}
if (owner != null) {
$result.owner = owner;
}
if (description != null) {
$result.description = description;
}
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.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'resourceType')
..aOS(2, _omitFieldNames ? '' : 'resourceName')
..aOS(3, _omitFieldNames ? '' : 'owner')
..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')
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<ResourceInfo> createRepeated() => $pb.PbList<ResourceInfo>();
@$core.pragma('dart2js:noInline')
static ResourceInfo getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ResourceInfo>(create);
static ResourceInfo? _defaultInstance;
/// A name for the type of resource being accessed, e.g. "sql table",
/// "cloud storage bucket", "file", "Google calendar"; or the type URL
/// of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
@$pb.TagNumber(1)
$core.String get resourceType => $_getSZ(0);
@$pb.TagNumber(1)
set resourceType($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasResourceType() => $_has(0);
@$pb.TagNumber(1)
void clearResourceType() => clearField(1);
/// 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].
@$pb.TagNumber(2)
$core.String get resourceName => $_getSZ(1);
@$pb.TagNumber(2)
set resourceName($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasResourceName() => $_has(1);
@$pb.TagNumber(2)
void clearResourceName() => clearField(2);
/// The owner of the resource (optional).
/// For example, "user:<owner email>" or "project:<Google developer project
/// id>".
@$pb.TagNumber(3)
$core.String get owner => $_getSZ(2);
@$pb.TagNumber(3)
set owner($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasOwner() => $_has(2);
@$pb.TagNumber(3)
void clearOwner() => clearField(3);
/// Describes what error is encountered when accessing this resource.
/// For example, updating a cloud project may require the `writer` permission
/// on the developer console project.
@$pb.TagNumber(4)
$core.String get description => $_getSZ(3);
@$pb.TagNumber(4)
set description($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasDescription() => $_has(3);
@$pb.TagNumber(4)
void clearDescription() => clearField(4);
}
/// Describes a URL link.
class Help_Link extends $pb.GeneratedMessage {
factory Help_Link({
$core.String? description,
$core.String? url,
}) {
final $result = create();
if (description != null) {
$result.description = description;
}
if (url != null) {
$result.url = url;
}
return $result;
}
Help_Link._() : super();
factory Help_Link.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Help_Link.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Help.Link', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'description')
..aOS(2, _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')
Help_Link clone() => Help_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')
Help_Link copyWith(void Function(Help_Link) updates) => super.copyWith((message) => updates(message as Help_Link)) as Help_Link;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Help_Link create() => Help_Link._();
Help_Link createEmptyInstance() => create();
static $pb.PbList<Help_Link> createRepeated() => $pb.PbList<Help_Link>();
@$core.pragma('dart2js:noInline')
static Help_Link getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Help_Link>(create);
static Help_Link? _defaultInstance;
/// Describes what the link offers.
@$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);
/// The URL of the link.
@$pb.TagNumber(2)
$core.String get url => $_getSZ(1);
@$pb.TagNumber(2)
set url($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasUrl() => $_has(1);
@$pb.TagNumber(2)
void clearUrl() => clearField(2);
}
/// Provides links to documentation or for performing an out of band action.
///
/// For example, if a quota check failed with an error indicating the calling
/// project hasn't enabled the accessed service, this can contain a URL pointing
/// directly to the right place in the developer console to flip the bit.
class Help extends $pb.GeneratedMessage {
factory Help({
$core.Iterable<Help_Link>? links,
}) {
final $result = create();
if (links != null) {
$result.links.addAll(links);
}
return $result;
}
Help._() : super();
factory Help.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Help.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Help', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..pc<Help_Link>(1, _omitFieldNames ? '' : 'links', $pb.PbFieldType.PM, subBuilder: Help_Link.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Help clone() => Help()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Help copyWith(void Function(Help) updates) => super.copyWith((message) => updates(message as Help)) as Help;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Help create() => Help._();
Help createEmptyInstance() => create();
static $pb.PbList<Help> createRepeated() => $pb.PbList<Help>();
@$core.pragma('dart2js:noInline')
static Help getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Help>(create);
static Help? _defaultInstance;
/// URL(s) pointing to additional information on handling the current error.
@$pb.TagNumber(1)
$core.List<Help_Link> get links => $_getList(0);
}
/// Provides a localized error message that is safe to return to the user
/// which can be attached to an RPC error.
class LocalizedMessage extends $pb.GeneratedMessage {
factory LocalizedMessage({
$core.String? locale,
$core.String? message,
}) {
final $result = create();
if (locale != null) {
$result.locale = locale;
}
if (message != null) {
$result.message = message;
}
return $result;
}
LocalizedMessage._() : super();
factory LocalizedMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory LocalizedMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LocalizedMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'locale')
..aOS(2, _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')
LocalizedMessage clone() => LocalizedMessage()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
LocalizedMessage copyWith(void Function(LocalizedMessage) updates) => super.copyWith((message) => updates(message as LocalizedMessage)) as LocalizedMessage;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static LocalizedMessage create() => LocalizedMessage._();
LocalizedMessage createEmptyInstance() => create();
static $pb.PbList<LocalizedMessage> createRepeated() => $pb.PbList<LocalizedMessage>();
@$core.pragma('dart2js:noInline')
static LocalizedMessage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<LocalizedMessage>(create);
static LocalizedMessage? _defaultInstance;
/// The locale used following the specification defined at
/// http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
/// Examples are: "en-US", "fr-CH", "es-MX"
@$pb.TagNumber(1)
$core.String get locale => $_getSZ(0);
@$pb.TagNumber(1)
set locale($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasLocale() => $_has(0);
@$pb.TagNumber(1)
void clearLocale() => clearField(1);
/// The localized error message in the above locale.
@$pb.TagNumber(2)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(2)
set message($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(2)
void clearMessage() => clearField(2);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/rpc/error_details.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

View File

@@ -0,0 +1,185 @@
//
// Generated code. Do not modify.
// source: google/rpc/error_details.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 retryInfoDescriptor instead')
const RetryInfo$json = {
'1': 'RetryInfo',
'2': [
{'1': 'retry_delay', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Duration', '10': 'retryDelay'},
],
};
/// Descriptor for `RetryInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List retryInfoDescriptor = $convert.base64Decode(
'CglSZXRyeUluZm8SOgoLcmV0cnlfZGVsYXkYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYX'
'Rpb25SCnJldHJ5RGVsYXk=');
@$core.Deprecated('Use debugInfoDescriptor instead')
const DebugInfo$json = {
'1': 'DebugInfo',
'2': [
{'1': 'stack_entries', '3': 1, '4': 3, '5': 9, '10': 'stackEntries'},
{'1': 'detail', '3': 2, '4': 1, '5': 9, '10': 'detail'},
],
};
/// Descriptor for `DebugInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List debugInfoDescriptor = $convert.base64Decode(
'CglEZWJ1Z0luZm8SIwoNc3RhY2tfZW50cmllcxgBIAMoCVIMc3RhY2tFbnRyaWVzEhYKBmRldG'
'FpbBgCIAEoCVIGZGV0YWls');
@$core.Deprecated('Use quotaFailureDescriptor instead')
const QuotaFailure$json = {
'1': 'QuotaFailure',
'2': [
{'1': 'violations', '3': 1, '4': 3, '5': 11, '6': '.google.rpc.QuotaFailure.Violation', '10': 'violations'},
],
'3': [QuotaFailure_Violation$json],
};
@$core.Deprecated('Use quotaFailureDescriptor instead')
const QuotaFailure_Violation$json = {
'1': 'Violation',
'2': [
{'1': 'subject', '3': 1, '4': 1, '5': 9, '10': 'subject'},
{'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'},
],
};
/// Descriptor for `QuotaFailure`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List quotaFailureDescriptor = $convert.base64Decode(
'CgxRdW90YUZhaWx1cmUSQgoKdmlvbGF0aW9ucxgBIAMoCzIiLmdvb2dsZS5ycGMuUXVvdGFGYW'
'lsdXJlLlZpb2xhdGlvblIKdmlvbGF0aW9ucxpHCglWaW9sYXRpb24SGAoHc3ViamVjdBgBIAEo'
'CVIHc3ViamVjdBIgCgtkZXNjcmlwdGlvbhgCIAEoCVILZGVzY3JpcHRpb24=');
@$core.Deprecated('Use preconditionFailureDescriptor instead')
const PreconditionFailure$json = {
'1': 'PreconditionFailure',
'2': [
{'1': 'violations', '3': 1, '4': 3, '5': 11, '6': '.google.rpc.PreconditionFailure.Violation', '10': 'violations'},
],
'3': [PreconditionFailure_Violation$json],
};
@$core.Deprecated('Use preconditionFailureDescriptor instead')
const PreconditionFailure_Violation$json = {
'1': 'Violation',
'2': [
{'1': 'type', '3': 1, '4': 1, '5': 9, '10': 'type'},
{'1': 'subject', '3': 2, '4': 1, '5': 9, '10': 'subject'},
{'1': 'description', '3': 3, '4': 1, '5': 9, '10': 'description'},
],
};
/// Descriptor for `PreconditionFailure`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List preconditionFailureDescriptor = $convert.base64Decode(
'ChNQcmVjb25kaXRpb25GYWlsdXJlEkkKCnZpb2xhdGlvbnMYASADKAsyKS5nb29nbGUucnBjLl'
'ByZWNvbmRpdGlvbkZhaWx1cmUuVmlvbGF0aW9uUgp2aW9sYXRpb25zGlsKCVZpb2xhdGlvbhIS'
'CgR0eXBlGAEgASgJUgR0eXBlEhgKB3N1YmplY3QYAiABKAlSB3N1YmplY3QSIAoLZGVzY3JpcH'
'Rpb24YAyABKAlSC2Rlc2NyaXB0aW9u');
@$core.Deprecated('Use badRequestDescriptor instead')
const BadRequest$json = {
'1': 'BadRequest',
'2': [
{'1': 'field_violations', '3': 1, '4': 3, '5': 11, '6': '.google.rpc.BadRequest.FieldViolation', '10': 'fieldViolations'},
],
'3': [BadRequest_FieldViolation$json],
};
@$core.Deprecated('Use badRequestDescriptor instead')
const BadRequest_FieldViolation$json = {
'1': 'FieldViolation',
'2': [
{'1': 'field', '3': 1, '4': 1, '5': 9, '10': 'field'},
{'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'},
],
};
/// Descriptor for `BadRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List badRequestDescriptor = $convert.base64Decode(
'CgpCYWRSZXF1ZXN0ElAKEGZpZWxkX3Zpb2xhdGlvbnMYASADKAsyJS5nb29nbGUucnBjLkJhZF'
'JlcXVlc3QuRmllbGRWaW9sYXRpb25SD2ZpZWxkVmlvbGF0aW9ucxpICg5GaWVsZFZpb2xhdGlv'
'bhIUCgVmaWVsZBgBIAEoCVIFZmllbGQSIAoLZGVzY3JpcHRpb24YAiABKAlSC2Rlc2NyaXB0aW'
'9u');
@$core.Deprecated('Use requestInfoDescriptor instead')
const RequestInfo$json = {
'1': 'RequestInfo',
'2': [
{'1': 'request_id', '3': 1, '4': 1, '5': 9, '10': 'requestId'},
{'1': 'serving_data', '3': 2, '4': 1, '5': 9, '10': 'servingData'},
],
};
/// Descriptor for `RequestInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List requestInfoDescriptor = $convert.base64Decode(
'CgtSZXF1ZXN0SW5mbxIdCgpyZXF1ZXN0X2lkGAEgASgJUglyZXF1ZXN0SWQSIQoMc2VydmluZ1'
'9kYXRhGAIgASgJUgtzZXJ2aW5nRGF0YQ==');
@$core.Deprecated('Use resourceInfoDescriptor instead')
const ResourceInfo$json = {
'1': 'ResourceInfo',
'2': [
{'1': 'resource_type', '3': 1, '4': 1, '5': 9, '10': 'resourceType'},
{'1': 'resource_name', '3': 2, '4': 1, '5': 9, '10': 'resourceName'},
{'1': 'owner', '3': 3, '4': 1, '5': 9, '10': 'owner'},
{'1': 'description', '3': 4, '4': 1, '5': 9, '10': 'description'},
],
};
/// Descriptor for `ResourceInfo`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List resourceInfoDescriptor = $convert.base64Decode(
'CgxSZXNvdXJjZUluZm8SIwoNcmVzb3VyY2VfdHlwZRgBIAEoCVIMcmVzb3VyY2VUeXBlEiMKDX'
'Jlc291cmNlX25hbWUYAiABKAlSDHJlc291cmNlTmFtZRIUCgVvd25lchgDIAEoCVIFb3duZXIS'
'IAoLZGVzY3JpcHRpb24YBCABKAlSC2Rlc2NyaXB0aW9u');
@$core.Deprecated('Use helpDescriptor instead')
const Help$json = {
'1': 'Help',
'2': [
{'1': 'links', '3': 1, '4': 3, '5': 11, '6': '.google.rpc.Help.Link', '10': 'links'},
],
'3': [Help_Link$json],
};
@$core.Deprecated('Use helpDescriptor instead')
const Help_Link$json = {
'1': 'Link',
'2': [
{'1': 'description', '3': 1, '4': 1, '5': 9, '10': 'description'},
{'1': 'url', '3': 2, '4': 1, '5': 9, '10': 'url'},
],
};
/// Descriptor for `Help`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List helpDescriptor = $convert.base64Decode(
'CgRIZWxwEisKBWxpbmtzGAEgAygLMhUuZ29vZ2xlLnJwYy5IZWxwLkxpbmtSBWxpbmtzGjoKBE'
'xpbmsSIAoLZGVzY3JpcHRpb24YASABKAlSC2Rlc2NyaXB0aW9uEhAKA3VybBgCIAEoCVIDdXJs');
@$core.Deprecated('Use localizedMessageDescriptor instead')
const LocalizedMessage$json = {
'1': 'LocalizedMessage',
'2': [
{'1': 'locale', '3': 1, '4': 1, '5': 9, '10': 'locale'},
{'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'},
],
};
/// Descriptor for `LocalizedMessage`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List localizedMessageDescriptor = $convert.base64Decode(
'ChBMb2NhbGl6ZWRNZXNzYWdlEhYKBmxvY2FsZRgBIAEoCVIGbG9jYWxlEhgKB21lc3NhZ2UYAi'
'ABKAlSB21lc3NhZ2U=');

View File

@@ -0,0 +1,150 @@
//
// Generated code. Do not modify.
// source: google/rpc/status.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/any.pb.dart' as $89;
/// The `Status` type defines a logical error model that is suitable for different
/// programming environments, including REST APIs and RPC APIs. It is used by
/// [gRPC](https://github.com/grpc). The error model is designed to be:
///
/// - Simple to use and understand for most users
/// - Flexible enough to meet unexpected needs
///
/// # Overview
///
/// The `Status` message contains three pieces of data: error code, error message,
/// and error details. The error code should be an enum value of
/// [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The
/// error message should be a developer-facing English message that helps
/// developers *understand* and *resolve* the error. If a localized user-facing
/// error message is needed, put the localized message in the error details or
/// localize it in the client. The optional error details may contain arbitrary
/// information about the error. There is a predefined set of error detail types
/// in the package `google.rpc` that can be used for common error conditions.
///
/// # Language mapping
///
/// The `Status` message is the logical representation of the error model, but it
/// is not necessarily the actual wire format. When the `Status` message is
/// exposed in different client libraries and different wire protocols, it can be
/// mapped differently. For example, it will likely be mapped to some exceptions
/// in Java, but more likely mapped to some error codes in C.
///
/// # Other uses
///
/// The error model and the `Status` message can be used in a variety of
/// environments, either with or without APIs, to provide a
/// consistent developer experience across different environments.
///
/// Example uses of this error model include:
///
/// - Partial errors. If a service needs to return partial errors to the client,
/// it may embed the `Status` in the normal response to indicate the partial
/// errors.
///
/// - Workflow errors. A typical workflow has multiple steps. Each step may
/// have a `Status` message for error reporting.
///
/// - Batch operations. If a client uses batch request and batch response, the
/// `Status` message should be used directly inside batch response, one for
/// each error sub-response.
///
/// - Asynchronous operations. If an API call embeds asynchronous operation
/// results in its response, the status of those operations should be
/// represented directly using the `Status` message.
///
/// - Logging. If some API errors are stored in logs, the message `Status` could
/// be used directly after any stripping needed for security/privacy reasons.
class Status extends $pb.GeneratedMessage {
factory Status({
$core.int? code,
$core.String? message,
$core.Iterable<$89.Any>? details,
}) {
final $result = create();
if (code != null) {
$result.code = code;
}
if (message != null) {
$result.message = message;
}
if (details != null) {
$result.details.addAll(details);
}
return $result;
}
Status._() : super();
factory Status.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Status.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Status', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3)
..aOS(2, _omitFieldNames ? '' : 'message')
..pc<$89.Any>(3, _omitFieldNames ? '' : 'details', $pb.PbFieldType.PM, subBuilder: $89.Any.create)
..hasRequiredFields = false
;
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
Status clone() => Status()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
Status copyWith(void Function(Status) updates) => super.copyWith((message) => updates(message as Status)) as Status;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Status create() => Status._();
Status createEmptyInstance() => create();
static $pb.PbList<Status> createRepeated() => $pb.PbList<Status>();
@$core.pragma('dart2js:noInline')
static Status getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Status>(create);
static Status? _defaultInstance;
/// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
@$pb.TagNumber(1)
$core.int get code => $_getIZ(0);
@$pb.TagNumber(1)
set code($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasCode() => $_has(0);
@$pb.TagNumber(1)
void clearCode() => clearField(1);
/// 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.
@$pb.TagNumber(2)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(2)
set message($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(2)
void clearMessage() => clearField(2);
/// A list of messages that carry the error details. There is a common set of
/// message types for APIs to use.
@$pb.TagNumber(3)
$core.List<$89.Any> get details => $_getList(2);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -0,0 +1,11 @@
//
// Generated code. Do not modify.
// source: google/rpc/status.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

View File

@@ -0,0 +1,30 @@
//
// Generated code. Do not modify.
// source: google/rpc/status.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 statusDescriptor instead')
const Status$json = {
'1': 'Status',
'2': [
{'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'},
{'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'},
{'1': 'details', '3': 3, '4': 3, '5': 11, '6': '.google.protobuf.Any', '10': 'details'},
],
};
/// Descriptor for `Status`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List statusDescriptor = $convert.base64Decode(
'CgZTdGF0dXMSEgoEY29kZRgBIAEoBVIEY29kZRIYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlEi'
'4KB2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55UgdkZXRhaWxz');