You've already forked dart-viz-sdk
Latest generation
This commit is contained in:
@@ -5,25 +5,26 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'http.pb.dart' as $17;
|
||||
import 'http.pb.dart' as $15;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class Annotations {
|
||||
static final http = $pb.Extension<$17.HttpRule>(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'http', 72295728, $pb.PbFieldType.OM, defaultOrMaker: $17.HttpRule.getDefault, subBuilder: $17.HttpRule.create);
|
||||
static final http = $pb.Extension<$15.HttpRule>(_omitMessageNames ? '' : 'google.protobuf.MethodOptions', _omitFieldNames ? '' : 'http', 72295728, $pb.PbFieldType.OM, defaultOrMaker: $15.HttpRule.getDefault, subBuilder: $15.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');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/api/annotations.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -27,5 +28,5 @@ class Field_behavior {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -5,20 +5,21 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
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.
|
||||
/// 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.
|
||||
/// Note: This enum **may** receive new values in the future.
|
||||
class FieldBehavior extends $pb.ProtobufEnum {
|
||||
/// Conventional default for enums. Do not use this.
|
||||
static const FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED = FieldBehavior._(0, _omitEnumNames ? '' : 'FIELD_BEHAVIOR_UNSPECIFIED');
|
||||
@@ -53,11 +54,11 @@ class FieldBehavior extends $pb.ProtobufEnum {
|
||||
IMMUTABLE,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FieldBehavior> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FieldBehavior? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<FieldBehavior?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 5);
|
||||
static FieldBehavior? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const FieldBehavior._(super.v, super.n);
|
||||
const FieldBehavior._(super.value, super.name);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -23,18 +24,16 @@ class Http extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
Http._();
|
||||
|
||||
factory Http.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Http.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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)
|
||||
@@ -42,43 +41,39 @@ class Http extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Http copyWith(void Function(Http) updates) => super.copyWith((message) => updates(message as Http)) as Http;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Http create() => Http._();
|
||||
@$core.override
|
||||
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.
|
||||
/// A list of HTTP configuration rules that apply to individual API methods.
|
||||
///
|
||||
/// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
/// **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
@$pb.TagNumber(1)
|
||||
$pb.PbList<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.
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set fullyDecodeReservedExpansion($core.bool value) => $_setBool(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasFullyDecodeReservedExpansion() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -95,275 +90,275 @@ enum HttpRule_Pattern {
|
||||
notSet
|
||||
}
|
||||
|
||||
/// # gRPC Transcoding
|
||||
/// # 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.
|
||||
/// 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.
|
||||
/// `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.
|
||||
/// 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:
|
||||
/// 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.
|
||||
/// }
|
||||
/// 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:
|
||||
/// This enables an HTTP REST to gRPC mapping as below:
|
||||
///
|
||||
/// HTTP | gRPC
|
||||
/// -----|-----
|
||||
/// `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
||||
/// 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:
|
||||
/// 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`.
|
||||
/// }
|
||||
/// 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:
|
||||
/// 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"))`
|
||||
/// 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¶m=B`. In the case of a message type, each field of the
|
||||
/// message is mapped to a separate parameter, such as
|
||||
/// `...?foo.a=A&foo.b=B&foo.c=C`.
|
||||
/// Note that fields which are mapped to URL query parameters must have a
|
||||
/// primitive type or a repeated primitive type or a non-repeated message type.
|
||||
/// In the case of a repeated type, the parameter can be repeated in the URL
|
||||
/// as `...?param=A¶m=B`. In the case of a message type, each field of the
|
||||
/// message is mapped to a separate parameter, such as
|
||||
/// `...?foo.a=A&foo.b=B&foo.c=C`.
|
||||
///
|
||||
/// For HTTP methods that allow a request body, the `body` field
|
||||
/// specifies the mapping. Consider a REST update method on the
|
||||
/// message resource collection:
|
||||
/// 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
|
||||
/// }
|
||||
/// 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:
|
||||
/// 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!" })`
|
||||
/// 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:
|
||||
/// 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;
|
||||
/// }
|
||||
/// 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:
|
||||
/// The following HTTP JSON to RPC mapping is enabled:
|
||||
///
|
||||
/// HTTP | gRPC
|
||||
/// -----|-----
|
||||
/// `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
||||
/// "123456" text: "Hi!")`
|
||||
/// 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.
|
||||
/// 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:
|
||||
/// 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;
|
||||
/// }
|
||||
/// 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:
|
||||
/// 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")`
|
||||
/// 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
|
||||
/// ## 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.
|
||||
/// 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
|
||||
/// ### Path template syntax
|
||||
///
|
||||
/// Template = "/" Segments [ Verb ] ;
|
||||
/// Segments = Segment { "/" Segment } ;
|
||||
/// Segment = "*" | "**" | LITERAL | Variable ;
|
||||
/// Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
||||
/// FieldPath = IDENT { "." IDENT } ;
|
||||
/// Verb = ":" LITERAL ;
|
||||
/// 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 `*` 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 `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.
|
||||
/// 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 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}`.
|
||||
/// 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
|
||||
/// ## 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.
|
||||
/// 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.
|
||||
/// 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:
|
||||
/// Example:
|
||||
///
|
||||
/// http:
|
||||
/// rules:
|
||||
/// # Selects a gRPC method and applies HttpRule to it.
|
||||
/// - selector: example.v1.Messaging.GetMessage
|
||||
/// get: /v1/messages/{message_id}/{sub.subfield}
|
||||
/// 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
|
||||
/// ## 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).
|
||||
/// 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.
|
||||
/// 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** 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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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,
|
||||
@@ -377,42 +372,24 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
HttpRule._();
|
||||
|
||||
factory HttpRule.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory HttpRule.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, HttpRule_Pattern> _HttpRule_PatternByTag = {
|
||||
2 : HttpRule_Pattern.get,
|
||||
@@ -438,21 +415,17 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
HttpRule copyWith(void Function(HttpRule) updates) => super.copyWith((message) => updates(message as HttpRule)) as HttpRule;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static HttpRule create() => HttpRule._();
|
||||
@$core.override
|
||||
HttpRule createEmptyInstance() => create();
|
||||
static $pb.PbList<HttpRule> createRepeated() => $pb.PbList<HttpRule>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -462,13 +435,13 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
HttpRule_Pattern whichPattern() => _HttpRule_PatternByTag[$_whichOneof(0)]!;
|
||||
void clearPattern() => $_clearField($_whichOneof(0));
|
||||
|
||||
/// Selects a method to which this rule applies.
|
||||
/// Selects a method to which this rule applies.
|
||||
///
|
||||
/// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
/// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get selector => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set selector($core.String v) { $_setString(0, v); }
|
||||
set selector($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSelector() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -479,7 +452,7 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get get => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set get($core.String v) { $_setString(1, v); }
|
||||
set get($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasGet() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -489,7 +462,7 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get put => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set put($core.String v) { $_setString(2, v); }
|
||||
set put($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasPut() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -499,7 +472,7 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get post => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set post($core.String v) { $_setString(3, v); }
|
||||
set post($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasPost() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -509,7 +482,7 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(5)
|
||||
$core.String get delete => $_getSZ(4);
|
||||
@$pb.TagNumber(5)
|
||||
set delete($core.String v) { $_setString(4, v); }
|
||||
set delete($core.String value) => $_setString(4, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasDelete() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
@@ -519,22 +492,22 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(6)
|
||||
$core.String get patch => $_getSZ(5);
|
||||
@$pb.TagNumber(6)
|
||||
set patch($core.String v) { $_setString(5, v); }
|
||||
set patch($core.String value) => $_setString(5, value);
|
||||
@$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.
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set body($core.String value) => $_setString(6, value);
|
||||
@$pb.TagNumber(7)
|
||||
$core.bool hasBody() => $_has(6);
|
||||
@$pb.TagNumber(7)
|
||||
@@ -547,7 +520,7 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(8)
|
||||
CustomHttpPattern get custom => $_getN(7);
|
||||
@$pb.TagNumber(8)
|
||||
set custom(CustomHttpPattern v) { $_setField(8, v); }
|
||||
set custom(CustomHttpPattern value) => $_setField(8, value);
|
||||
@$pb.TagNumber(8)
|
||||
$core.bool hasCustom() => $_has(7);
|
||||
@$pb.TagNumber(8)
|
||||
@@ -561,16 +534,16 @@ class HttpRule extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(11)
|
||||
$pb.PbList<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.
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set responseBody($core.String value) => $_setString(9, value);
|
||||
@$pb.TagNumber(12)
|
||||
$core.bool hasResponseBody() => $_has(9);
|
||||
@$pb.TagNumber(12)
|
||||
@@ -583,18 +556,16 @@ class CustomHttpPattern extends $pb.GeneratedMessage {
|
||||
$core.String? kind,
|
||||
$core.String? path,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (kind != null) {
|
||||
$result.kind = kind;
|
||||
}
|
||||
if (path != null) {
|
||||
$result.path = path;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
CustomHttpPattern._();
|
||||
|
||||
factory CustomHttpPattern.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory CustomHttpPattern.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CustomHttpPattern', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'kind')
|
||||
@@ -602,21 +573,17 @@ class CustomHttpPattern extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
CustomHttpPattern copyWith(void Function(CustomHttpPattern) updates) => super.copyWith((message) => updates(message as CustomHttpPattern)) as CustomHttpPattern;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static CustomHttpPattern create() => CustomHttpPattern._();
|
||||
@$core.override
|
||||
CustomHttpPattern createEmptyInstance() => create();
|
||||
static $pb.PbList<CustomHttpPattern> createRepeated() => $pb.PbList<CustomHttpPattern>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -627,7 +594,7 @@ class CustomHttpPattern extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get kind => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set kind($core.String v) { $_setString(0, v); }
|
||||
set kind($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasKind() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -637,7 +604,7 @@ class CustomHttpPattern extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get path => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set path($core.String v) { $_setString(1, v); }
|
||||
set path($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasPath() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -645,5 +612,5 @@ class CustomHttpPattern extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/api/http.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,101 +5,94 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../protobuf/any.pb.dart' as $18;
|
||||
import '../protobuf/any.pb.dart' as $16;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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:
|
||||
/// Example:
|
||||
///
|
||||
/// message GetResourceRequest {
|
||||
/// // A unique request id.
|
||||
/// string request_id = 1;
|
||||
/// 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;
|
||||
/// }
|
||||
/// // 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);
|
||||
/// }
|
||||
/// service ResourceService {
|
||||
/// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
||||
/// rpc UpdateResource(google.api.HttpBody) returns
|
||||
/// (google.protobuf.Empty);
|
||||
/// }
|
||||
///
|
||||
/// Example with streaming methods:
|
||||
/// 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);
|
||||
/// }
|
||||
/// 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.
|
||||
/// 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<$18.Any>? extensions,
|
||||
$core.Iterable<$16.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;
|
||||
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);
|
||||
|
||||
HttpBody._();
|
||||
|
||||
factory HttpBody.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory HttpBody.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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<$18.Any>(3, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, subBuilder: $18.Any.create)
|
||||
..pc<$16.Any>(3, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, subBuilder: $16.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
HttpBody copyWith(void Function(HttpBody) updates) => super.copyWith((message) => updates(message as HttpBody)) as HttpBody;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static HttpBody create() => HttpBody._();
|
||||
@$core.override
|
||||
HttpBody createEmptyInstance() => create();
|
||||
static $pb.PbList<HttpBody> createRepeated() => $pb.PbList<HttpBody>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -110,7 +103,7 @@ class HttpBody extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get contentType => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set contentType($core.String v) { $_setString(0, v); }
|
||||
set contentType($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasContentType() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -120,7 +113,7 @@ class HttpBody extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get data => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set data($core.List<$core.int> v) { $_setBytes(1, v); }
|
||||
set data($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasData() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -129,9 +122,9 @@ class HttpBody extends $pb.GeneratedMessage {
|
||||
/// Application specific response metadata. Must be set in the first response
|
||||
/// for streaming APIs.
|
||||
@$pb.TagNumber(3)
|
||||
$pb.PbList<$18.Any> get extensions => $_getList(2);
|
||||
$pb.PbList<$16.Any> get extensions => $_getList(2);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/api/httpbody.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -16,102 +18,100 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// `Any` contains an arbitrary serialized protocol buffer message along with a
|
||||
/// URL that describes the type of the serialized message.
|
||||
/// `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.
|
||||
/// 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++.
|
||||
/// 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 foo = ...;
|
||||
/// Any any;
|
||||
/// any.PackFrom(foo);
|
||||
/// ...
|
||||
/// if (any.UnpackTo(&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".
|
||||
/// 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);
|
||||
/// }
|
||||
///
|
||||
/// 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:
|
||||
/// Example 3: Pack and unpack a message in Python.
|
||||
///
|
||||
/// package google.profile;
|
||||
/// message Person {
|
||||
/// string first_name = 1;
|
||||
/// string last_name = 2;
|
||||
/// 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 {
|
||||
/// ...
|
||||
/// }
|
||||
///
|
||||
/// {
|
||||
/// "@type": "type.googleapis.com/google.profile.Person",
|
||||
/// "firstName": <string>,
|
||||
/// "lastName": <string>
|
||||
/// }
|
||||
/// 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".
|
||||
///
|
||||
/// 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"
|
||||
/// }
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Any._();
|
||||
|
||||
factory Any.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Any.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@@ -119,58 +119,54 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Any copyWith(void Function(Any) updates) => super.copyWith((message) => updates(message as Any)) as Any;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Any create() => Any._();
|
||||
@$core.override
|
||||
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).
|
||||
/// 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:
|
||||
/// 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.)
|
||||
/// * 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.
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set typeUrl($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTypeUrl() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -180,7 +176,7 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get value => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set value($core.List<$core.int> v) { $_setBytes(1, v); }
|
||||
set value($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasValue() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -199,5 +195,5 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/any.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,93 +5,77 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'source_context.pb.dart' as $19;
|
||||
import 'type.pb.dart' as $21;
|
||||
import 'type.pbenum.dart' as $21;
|
||||
import 'source_context.pb.dart' as $18;
|
||||
import 'type.pb.dart' as $17;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// Api is a light-weight descriptor for an API Interface.
|
||||
/// 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.
|
||||
/// 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<$21.Option>? options,
|
||||
$core.Iterable<$17.Option>? options,
|
||||
$core.String? version,
|
||||
$19.SourceContext? sourceContext,
|
||||
$18.SourceContext? sourceContext,
|
||||
$core.Iterable<Mixin>? mixins,
|
||||
$21.Syntax? syntax,
|
||||
$17.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;
|
||||
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);
|
||||
|
||||
Api._();
|
||||
|
||||
factory Api.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Api.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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<$21.Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $21.Option.create)
|
||||
..pc<$17.Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $17.Option.create)
|
||||
..aOS(4, _omitFieldNames ? '' : 'version')
|
||||
..aOM<$19.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $19.SourceContext.create)
|
||||
..aOM<$18.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $18.SourceContext.create)
|
||||
..pc<Mixin>(6, _omitFieldNames ? '' : 'mixins', $pb.PbFieldType.PM, subBuilder: Mixin.create)
|
||||
..e<$21.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $21.Syntax.SYNTAX_PROTO2, valueOf: $21.Syntax.valueOf, enumValues: $21.Syntax.values)
|
||||
..e<$17.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $17.Syntax.SYNTAX_PROTO2, valueOf: $17.Syntax.valueOf, enumValues: $17.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Api copyWith(void Function(Api) updates) => super.copyWith((message) => updates(message as Api)) as Api;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Api create() => Api._();
|
||||
@$core.override
|
||||
Api createEmptyInstance() => create();
|
||||
static $pb.PbList<Api> createRepeated() => $pb.PbList<Api>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -103,7 +87,7 @@ class Api extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -115,31 +99,31 @@ class Api extends $pb.GeneratedMessage {
|
||||
|
||||
/// Any metadata attached to the interface.
|
||||
@$pb.TagNumber(3)
|
||||
$pb.PbList<$21.Option> get options => $_getList(2);
|
||||
$pb.PbList<$17.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.
|
||||
/// 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 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.
|
||||
/// 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); }
|
||||
set version($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasVersion() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -148,15 +132,15 @@ class Api extends $pb.GeneratedMessage {
|
||||
/// Source context for the protocol buffer service represented by this
|
||||
/// message.
|
||||
@$pb.TagNumber(5)
|
||||
$19.SourceContext get sourceContext => $_getN(4);
|
||||
$18.SourceContext get sourceContext => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set sourceContext($19.SourceContext v) { $_setField(5, v); }
|
||||
set sourceContext($18.SourceContext value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasSourceContext() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearSourceContext() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$19.SourceContext ensureSourceContext() => $_ensure(4);
|
||||
$18.SourceContext ensureSourceContext() => $_ensure(4);
|
||||
|
||||
/// Included interfaces. See [Mixin][].
|
||||
@$pb.TagNumber(6)
|
||||
@@ -164,9 +148,9 @@ class Api extends $pb.GeneratedMessage {
|
||||
|
||||
/// The source syntax of the service.
|
||||
@$pb.TagNumber(7)
|
||||
$21.Syntax get syntax => $_getN(6);
|
||||
$17.Syntax get syntax => $_getN(6);
|
||||
@$pb.TagNumber(7)
|
||||
set syntax($21.Syntax v) { $_setField(7, v); }
|
||||
set syntax($17.Syntax value) => $_setField(7, value);
|
||||
@$pb.TagNumber(7)
|
||||
$core.bool hasSyntax() => $_has(6);
|
||||
@$pb.TagNumber(7)
|
||||
@@ -181,36 +165,24 @@ class Method extends $pb.GeneratedMessage {
|
||||
$core.bool? requestStreaming,
|
||||
$core.String? responseTypeUrl,
|
||||
$core.bool? responseStreaming,
|
||||
$core.Iterable<$21.Option>? options,
|
||||
$21.Syntax? syntax,
|
||||
$core.Iterable<$17.Option>? options,
|
||||
$17.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;
|
||||
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);
|
||||
|
||||
Method._();
|
||||
|
||||
factory Method.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Method.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Method', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
@@ -218,26 +190,22 @@ class Method extends $pb.GeneratedMessage {
|
||||
..aOB(3, _omitFieldNames ? '' : 'requestStreaming')
|
||||
..aOS(4, _omitFieldNames ? '' : 'responseTypeUrl')
|
||||
..aOB(5, _omitFieldNames ? '' : 'responseStreaming')
|
||||
..pc<$21.Option>(6, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $21.Option.create)
|
||||
..e<$21.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $21.Syntax.SYNTAX_PROTO2, valueOf: $21.Syntax.valueOf, enumValues: $21.Syntax.values)
|
||||
..pc<$17.Option>(6, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $17.Option.create)
|
||||
..e<$17.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $17.Syntax.SYNTAX_PROTO2, valueOf: $17.Syntax.valueOf, enumValues: $17.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Method copyWith(void Function(Method) updates) => super.copyWith((message) => updates(message as Method)) as Method;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Method create() => Method._();
|
||||
@$core.override
|
||||
Method createEmptyInstance() => create();
|
||||
static $pb.PbList<Method> createRepeated() => $pb.PbList<Method>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -248,7 +216,7 @@ class Method extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -258,7 +226,7 @@ class Method extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get requestTypeUrl => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set requestTypeUrl($core.String v) { $_setString(1, v); }
|
||||
set requestTypeUrl($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRequestTypeUrl() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -268,7 +236,7 @@ class Method extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool get requestStreaming => $_getBF(2);
|
||||
@$pb.TagNumber(3)
|
||||
set requestStreaming($core.bool v) { $_setBool(2, v); }
|
||||
set requestStreaming($core.bool value) => $_setBool(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasRequestStreaming() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -278,7 +246,7 @@ class Method extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get responseTypeUrl => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set responseTypeUrl($core.String v) { $_setString(3, v); }
|
||||
set responseTypeUrl($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasResponseTypeUrl() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -288,7 +256,7 @@ class Method extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool get responseStreaming => $_getBF(4);
|
||||
@$pb.TagNumber(5)
|
||||
set responseStreaming($core.bool v) { $_setBool(4, v); }
|
||||
set responseStreaming($core.bool value) => $_setBool(4, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasResponseStreaming() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
@@ -296,114 +264,112 @@ class Method extends $pb.GeneratedMessage {
|
||||
|
||||
/// Any metadata attached to the method.
|
||||
@$pb.TagNumber(6)
|
||||
$pb.PbList<$21.Option> get options => $_getList(5);
|
||||
$pb.PbList<$17.Option> get options => $_getList(5);
|
||||
|
||||
/// The source syntax of this method.
|
||||
@$pb.TagNumber(7)
|
||||
$21.Syntax get syntax => $_getN(6);
|
||||
$17.Syntax get syntax => $_getN(6);
|
||||
@$pb.TagNumber(7)
|
||||
set syntax($21.Syntax v) { $_setField(7, v); }
|
||||
set syntax($17.Syntax value) => $_setField(7, value);
|
||||
@$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:
|
||||
/// 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.
|
||||
/// - 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.
|
||||
/// - 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.
|
||||
/// - 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:
|
||||
/// 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.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);
|
||||
/// 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=**}";
|
||||
/// }
|
||||
/// }
|
||||
/// // Get a data record.
|
||||
/// rpc GetData(GetDataRequest) returns (Data) {
|
||||
/// option (google.api.http).get = "/v2/{resource=**}";
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// Example of a mixin configuration:
|
||||
/// Example of a mixin configuration:
|
||||
///
|
||||
/// apis:
|
||||
/// - name: google.storage.v2.Storage
|
||||
/// mixins:
|
||||
/// - name: google.acl.v1.AccessControl
|
||||
/// 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:
|
||||
/// 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";
|
||||
/// }
|
||||
/// ...
|
||||
/// }
|
||||
/// 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`.
|
||||
/// 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:
|
||||
/// 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
|
||||
/// apis:
|
||||
/// - name: google.storage.v2.Storage
|
||||
/// mixins:
|
||||
/// - name: google.acl.v1.AccessControl
|
||||
/// root: acls
|
||||
///
|
||||
/// This implies the following inherited HTTP annotation:
|
||||
/// 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";
|
||||
/// }
|
||||
/// ...
|
||||
/// }
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Mixin._();
|
||||
|
||||
factory Mixin.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Mixin.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Mixin', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
@@ -411,21 +377,17 @@ class Mixin extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Mixin copyWith(void Function(Mixin) updates) => super.copyWith((message) => updates(message as Mixin)) as Mixin;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Mixin create() => Mixin._();
|
||||
@$core.override
|
||||
Mixin createEmptyInstance() => create();
|
||||
static $pb.PbList<Mixin> createRepeated() => $pb.PbList<Mixin>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -436,7 +398,7 @@ class Mixin extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -447,7 +409,7 @@ class Mixin extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get root => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set root($core.String v) { $_setString(1, v); }
|
||||
set root($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRoot() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -455,5 +417,5 @@ class Mixin extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/api.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,15 +5,16 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../descriptor.pb.dart' as $20;
|
||||
import '../descriptor.pb.dart' as $19;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
@@ -25,24 +26,18 @@ class Version extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
Version._();
|
||||
|
||||
factory Version.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Version.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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)
|
||||
@@ -52,21 +47,17 @@ class Version extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Version copyWith(void Function(Version) updates) => super.copyWith((message) => updates(message as Version)) as Version;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Version create() => Version._();
|
||||
@$core.override
|
||||
Version createEmptyInstance() => create();
|
||||
static $pb.PbList<Version> createRepeated() => $pb.PbList<Version>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -76,7 +67,7 @@ class Version extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get major => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set major($core.int v) { $_setSignedInt32(0, v); }
|
||||
set major($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasMajor() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -85,7 +76,7 @@ class Version extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.int get minor => $_getIZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set minor($core.int v) { $_setSignedInt32(1, v); }
|
||||
set minor($core.int value) => $_setSignedInt32(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasMinor() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -94,7 +85,7 @@ class Version extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
$core.int get patch => $_getIZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set patch($core.int v) { $_setSignedInt32(2, v); }
|
||||
set patch($core.int value) => $_setSignedInt32(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasPatch() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -105,7 +96,7 @@ class Version extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get suffix => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set suffix($core.String v) { $_setString(3, v); }
|
||||
set suffix($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasSuffix() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -118,49 +109,39 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
$core.Iterable<$core.String>? fileToGenerate,
|
||||
$core.String? parameter,
|
||||
Version? compilerVersion,
|
||||
$core.Iterable<$20.FileDescriptorProto>? protoFile,
|
||||
$core.Iterable<$19.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;
|
||||
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);
|
||||
|
||||
CodeGeneratorRequest._();
|
||||
|
||||
factory CodeGeneratorRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory CodeGeneratorRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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<$20.FileDescriptorProto>(15, _omitFieldNames ? '' : 'protoFile', $pb.PbFieldType.PM, subBuilder: $20.FileDescriptorProto.create)
|
||||
..pc<$19.FileDescriptorProto>(15, _omitFieldNames ? '' : 'protoFile', $pb.PbFieldType.PM, subBuilder: $19.FileDescriptorProto.create)
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
CodeGeneratorRequest copyWith(void Function(CodeGeneratorRequest) updates) => super.copyWith((message) => updates(message as CodeGeneratorRequest)) as CodeGeneratorRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static CodeGeneratorRequest create() => CodeGeneratorRequest._();
|
||||
@$core.override
|
||||
CodeGeneratorRequest createEmptyInstance() => create();
|
||||
static $pb.PbList<CodeGeneratorRequest> createRepeated() => $pb.PbList<CodeGeneratorRequest>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -177,7 +158,7 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get parameter => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set parameter($core.String v) { $_setString(1, v); }
|
||||
set parameter($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasParameter() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -187,7 +168,7 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
Version get compilerVersion => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set compilerVersion(Version v) { $_setField(3, v); }
|
||||
set compilerVersion(Version value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasCompilerVersion() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -195,22 +176,22 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
@$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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// Type names of fields and extensions in the FileDescriptorProto are always
|
||||
/// fully qualified.
|
||||
@$pb.TagNumber(15)
|
||||
$pb.PbList<$20.FileDescriptorProto> get protoFile => $_getList(3);
|
||||
$pb.PbList<$19.FileDescriptorProto> get protoFile => $_getList(3);
|
||||
}
|
||||
|
||||
/// Represents a single generated file.
|
||||
@@ -220,21 +201,17 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
CodeGeneratorResponse_File._();
|
||||
|
||||
factory CodeGeneratorResponse_File.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory CodeGeneratorResponse_File.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CodeGeneratorResponse.File', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
@@ -243,88 +220,84 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
CodeGeneratorResponse_File copyWith(void Function(CodeGeneratorResponse_File) updates) => super.copyWith((message) => updates(message as CodeGeneratorResponse_File)) as CodeGeneratorResponse_File;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static CodeGeneratorResponse_File create() => CodeGeneratorResponse_File._();
|
||||
@$core.override
|
||||
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 "\".
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set insertionPoint($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasInsertionPoint() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -334,7 +307,7 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(15)
|
||||
$core.String get content => $_getSZ(2);
|
||||
@$pb.TagNumber(15)
|
||||
set content($core.String v) { $_setString(2, v); }
|
||||
set content($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(15)
|
||||
$core.bool hasContent() => $_has(2);
|
||||
@$pb.TagNumber(15)
|
||||
@@ -347,18 +320,16 @@ class CodeGeneratorResponse extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
CodeGeneratorResponse._();
|
||||
|
||||
factory CodeGeneratorResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory CodeGeneratorResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CodeGeneratorResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'error')
|
||||
@@ -366,39 +337,35 @@ class CodeGeneratorResponse extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
CodeGeneratorResponse copyWith(void Function(CodeGeneratorResponse) updates) => super.copyWith((message) => updates(message as CodeGeneratorResponse)) as CodeGeneratorResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static CodeGeneratorResponse create() => CodeGeneratorResponse._();
|
||||
@$core.override
|
||||
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.
|
||||
/// 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.
|
||||
/// 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); }
|
||||
set error($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasError() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -409,5 +376,5 @@ class CodeGeneratorResponse extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/compiler/plugin.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -65,10 +66,10 @@ class FieldDescriptorProto_Type extends $pb.ProtobufEnum {
|
||||
TYPE_SINT64,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FieldDescriptorProto_Type> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FieldDescriptorProto_Type? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<FieldDescriptorProto_Type?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 18);
|
||||
static FieldDescriptorProto_Type? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const FieldDescriptorProto_Type._(super.v, super.n);
|
||||
const FieldDescriptorProto_Type._(super.value, super.name);
|
||||
}
|
||||
|
||||
class FieldDescriptorProto_Label extends $pb.ProtobufEnum {
|
||||
@@ -83,10 +84,10 @@ class FieldDescriptorProto_Label extends $pb.ProtobufEnum {
|
||||
LABEL_REPEATED,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FieldDescriptorProto_Label> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FieldDescriptorProto_Label? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<FieldDescriptorProto_Label?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static FieldDescriptorProto_Label? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const FieldDescriptorProto_Label._(super.v, super.n);
|
||||
const FieldDescriptorProto_Label._(super.value, super.name);
|
||||
}
|
||||
|
||||
/// Generated classes can be optimized for speed or code size.
|
||||
@@ -102,10 +103,10 @@ class FileOptions_OptimizeMode extends $pb.ProtobufEnum {
|
||||
LITE_RUNTIME,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FileOptions_OptimizeMode> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FileOptions_OptimizeMode? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<FileOptions_OptimizeMode?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static FileOptions_OptimizeMode? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const FileOptions_OptimizeMode._(super.v, super.n);
|
||||
const FileOptions_OptimizeMode._(super.value, super.name);
|
||||
}
|
||||
|
||||
class FieldOptions_CType extends $pb.ProtobufEnum {
|
||||
@@ -120,10 +121,10 @@ class FieldOptions_CType extends $pb.ProtobufEnum {
|
||||
STRING_PIECE,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FieldOptions_CType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FieldOptions_CType? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<FieldOptions_CType?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2);
|
||||
static FieldOptions_CType? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const FieldOptions_CType._(super.v, super.n);
|
||||
const FieldOptions_CType._(super.value, super.name);
|
||||
}
|
||||
|
||||
class FieldOptions_JSType extends $pb.ProtobufEnum {
|
||||
@@ -140,10 +141,10 @@ class FieldOptions_JSType extends $pb.ProtobufEnum {
|
||||
JS_NUMBER,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, FieldOptions_JSType> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static FieldOptions_JSType? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<FieldOptions_JSType?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2);
|
||||
static FieldOptions_JSType? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const FieldOptions_JSType._(super.v, super.n);
|
||||
const FieldOptions_JSType._(super.value, super.name);
|
||||
}
|
||||
|
||||
/// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
|
||||
@@ -160,11 +161,11 @@ class MethodOptions_IdempotencyLevel extends $pb.ProtobufEnum {
|
||||
IDEMPOTENT,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, MethodOptions_IdempotencyLevel> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static MethodOptions_IdempotencyLevel? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<MethodOptions_IdempotencyLevel?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2);
|
||||
static MethodOptions_IdempotencyLevel? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const MethodOptions_IdempotencyLevel._(super.v, super.n);
|
||||
const MethodOptions_IdempotencyLevel._(super.value, super.name);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -17,81 +19,79 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// 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.
|
||||
/// 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
|
||||
/// # Examples
|
||||
///
|
||||
/// Example 1: Compute Duration from two Timestamps in pseudo code.
|
||||
/// Example 1: Compute Duration from two Timestamps in pseudo code.
|
||||
///
|
||||
/// Timestamp start = ...;
|
||||
/// Timestamp end = ...;
|
||||
/// Duration duration = ...;
|
||||
/// Timestamp start = ...;
|
||||
/// Timestamp end = ...;
|
||||
/// Duration duration = ...;
|
||||
///
|
||||
/// duration.seconds = end.seconds - start.seconds;
|
||||
/// duration.nanos = end.nanos - start.nanos;
|
||||
/// 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;
|
||||
/// }
|
||||
/// 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.
|
||||
/// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
||||
///
|
||||
/// Timestamp start = ...;
|
||||
/// Duration duration = ...;
|
||||
/// Timestamp end = ...;
|
||||
/// Timestamp start = ...;
|
||||
/// Duration duration = ...;
|
||||
/// Timestamp end = ...;
|
||||
///
|
||||
/// end.seconds = start.seconds + duration.seconds;
|
||||
/// end.nanos = start.nanos + duration.nanos;
|
||||
/// 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;
|
||||
/// }
|
||||
/// 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.
|
||||
/// Example 3: Compute Duration from datetime.timedelta in Python.
|
||||
///
|
||||
/// td = datetime.timedelta(days=3, minutes=10)
|
||||
/// duration = Duration()
|
||||
/// duration.FromTimedelta(td)
|
||||
/// td = datetime.timedelta(days=3, minutes=10)
|
||||
/// duration = Duration()
|
||||
/// duration.FromTimedelta(td)
|
||||
///
|
||||
/// # JSON Mapping
|
||||
/// # 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".
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Duration._();
|
||||
|
||||
factory Duration.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Duration.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@@ -99,21 +99,17 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Duration copyWith(void Function(Duration) updates) => super.copyWith((message) => updates(message as Duration)) as Duration;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Duration create() => Duration._();
|
||||
@$core.override
|
||||
Duration createEmptyInstance() => create();
|
||||
static $pb.PbList<Duration> createRepeated() => $pb.PbList<Duration>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -126,7 +122,7 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get seconds => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set seconds($fixnum.Int64 v) { $_setInt64(0, v); }
|
||||
set seconds($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSeconds() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -141,13 +137,28 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin {
|
||||
@$pb.TagNumber(2)
|
||||
$core.int get nanos => $_getIZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set nanos($core.int v) { $_setSignedInt32(1, v); }
|
||||
set nanos($core.int value) => $_setSignedInt32(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasNanos() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearNanos() => $_clearField(2);
|
||||
/// Converts the [Duration] to [$core.Duration].
|
||||
///
|
||||
/// This is a lossy conversion, as [$core.Duration] is limited to [int]
|
||||
/// microseconds and also does not support nanosecond precision.
|
||||
$core.Duration toDart() =>
|
||||
$core.Duration(
|
||||
seconds: seconds.toInt(),
|
||||
microseconds: nanos ~/ 1000,
|
||||
);
|
||||
|
||||
/// Creates a new instance from [$core.Duration].
|
||||
static Duration fromDart($core.Duration duration) => Duration()
|
||||
..seconds = $fixnum.Int64(duration.inSeconds)
|
||||
..nanos = (duration.inMicroseconds % $core.Duration.microsecondsPerSecond) * 1000;
|
||||
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/duration.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -15,40 +16,38 @@ import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// 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:
|
||||
/// 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);
|
||||
/// }
|
||||
/// service Foo {
|
||||
/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
/// }
|
||||
///
|
||||
/// The JSON representation for `Empty` is empty JSON object `{}`.
|
||||
/// 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);
|
||||
|
||||
Empty._();
|
||||
|
||||
factory Empty.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Empty.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Empty create() => Empty._();
|
||||
@$core.override
|
||||
Empty createEmptyInstance() => create();
|
||||
static $pb.PbList<Empty> createRepeated() => $pb.PbList<Empty>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -57,4 +56,4 @@ class Empty extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/empty.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -16,239 +18,235 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// `FieldMask` represents a set of symbolic field paths, for example:
|
||||
/// `FieldMask` represents a set of symbolic field paths, for example:
|
||||
///
|
||||
/// paths: "f.a"
|
||||
/// paths: "f.b.d"
|
||||
/// 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`.
|
||||
/// 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 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
|
||||
/// # 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:
|
||||
/// 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
|
||||
/// 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):
|
||||
/// 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
|
||||
/// }
|
||||
/// }
|
||||
/// f {
|
||||
/// a : 22
|
||||
/// b {
|
||||
/// d : 1
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// A repeated field is not allowed except at the last position of a
|
||||
/// paths string.
|
||||
/// 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).
|
||||
/// 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.
|
||||
/// 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
|
||||
/// # 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.
|
||||
/// 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 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.
|
||||
/// 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:
|
||||
/// For example, given the target message:
|
||||
///
|
||||
/// f {
|
||||
/// b {
|
||||
/// d: 1
|
||||
/// x: 2
|
||||
/// }
|
||||
/// c: [1]
|
||||
/// }
|
||||
/// f {
|
||||
/// b {
|
||||
/// d: 1
|
||||
/// x: 2
|
||||
/// }
|
||||
/// c: [1]
|
||||
/// }
|
||||
///
|
||||
/// And an update message:
|
||||
/// And an update message:
|
||||
///
|
||||
/// f {
|
||||
/// b {
|
||||
/// d: 10
|
||||
/// }
|
||||
/// c: [2]
|
||||
/// }
|
||||
/// f {
|
||||
/// b {
|
||||
/// d: 10
|
||||
/// }
|
||||
/// c: [2]
|
||||
/// }
|
||||
///
|
||||
/// then if the field mask is:
|
||||
/// then if the field mask is:
|
||||
///
|
||||
/// paths: ["f.b", "f.c"]
|
||||
/// paths: ["f.b", "f.c"]
|
||||
///
|
||||
/// then the result will be:
|
||||
/// then the result will be:
|
||||
///
|
||||
/// f {
|
||||
/// b {
|
||||
/// d: 10
|
||||
/// x: 2
|
||||
/// }
|
||||
/// c: [1, 2]
|
||||
/// }
|
||||
/// f {
|
||||
/// b {
|
||||
/// d: 10
|
||||
/// x: 2
|
||||
/// }
|
||||
/// c: [1, 2]
|
||||
/// }
|
||||
///
|
||||
/// An implementation may provide options to override this default behavior for
|
||||
/// repeated and message fields.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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
|
||||
/// ## 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).
|
||||
/// 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
|
||||
/// # 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.
|
||||
/// 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:
|
||||
/// 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;
|
||||
/// }
|
||||
/// 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:
|
||||
/// In proto a field mask for `Profile` may look as such:
|
||||
///
|
||||
/// mask {
|
||||
/// paths: "user.display_name"
|
||||
/// paths: "photo"
|
||||
/// }
|
||||
/// mask {
|
||||
/// paths: "user.display_name"
|
||||
/// paths: "photo"
|
||||
/// }
|
||||
///
|
||||
/// In JSON, the same mask is represented as below:
|
||||
/// In JSON, the same mask is represented as below:
|
||||
///
|
||||
/// {
|
||||
/// mask: "user.displayName,photo"
|
||||
/// }
|
||||
/// {
|
||||
/// mask: "user.displayName,photo"
|
||||
/// }
|
||||
///
|
||||
/// # Field Masks and Oneof Fields
|
||||
/// # Field Masks and Oneof Fields
|
||||
///
|
||||
/// Field masks treat fields in oneofs just as regular fields. Consider the
|
||||
/// following message:
|
||||
/// 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;
|
||||
/// }
|
||||
/// }
|
||||
/// message SampleMessage {
|
||||
/// oneof test_oneof {
|
||||
/// string name = 4;
|
||||
/// SubMessage sub_message = 9;
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// The field mask can be:
|
||||
/// The field mask can be:
|
||||
///
|
||||
/// mask {
|
||||
/// paths: "name"
|
||||
/// }
|
||||
/// mask {
|
||||
/// paths: "name"
|
||||
/// }
|
||||
///
|
||||
/// Or:
|
||||
/// Or:
|
||||
///
|
||||
/// mask {
|
||||
/// paths: "sub_message"
|
||||
/// }
|
||||
/// mask {
|
||||
/// paths: "sub_message"
|
||||
/// }
|
||||
///
|
||||
/// Note that oneof type names ("test_oneof" in this case) cannot be used in
|
||||
/// paths.
|
||||
/// Note that oneof type names ("test_oneof" in this case) cannot be used in
|
||||
/// paths.
|
||||
///
|
||||
/// ## Field Mask Verification
|
||||
/// ## 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.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
FieldMask._();
|
||||
|
||||
factory FieldMask.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory FieldMask.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FieldMask copyWith(void Function(FieldMask) updates) => super.copyWith((message) => updates(message as FieldMask)) as FieldMask;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FieldMask create() => FieldMask._();
|
||||
@$core.override
|
||||
FieldMask createEmptyInstance() => create();
|
||||
static $pb.PbList<FieldMask> createRepeated() => $pb.PbList<FieldMask>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -261,5 +259,5 @@ class FieldMask extends $pb.GeneratedMessage with $mixin.FieldMaskMixin {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/field_mask.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -21,36 +22,32 @@ class SourceContext extends $pb.GeneratedMessage {
|
||||
factory SourceContext({
|
||||
$core.String? fileName,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (fileName != null) {
|
||||
$result.fileName = fileName;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
SourceContext._();
|
||||
|
||||
factory SourceContext.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory SourceContext.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SourceContext copyWith(void Function(SourceContext) updates) => super.copyWith((message) => updates(message as SourceContext)) as SourceContext;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SourceContext create() => SourceContext._();
|
||||
@$core.override
|
||||
SourceContext createEmptyInstance() => create();
|
||||
static $pb.PbList<SourceContext> createRepeated() => $pb.PbList<SourceContext>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -62,7 +59,7 @@ class SourceContext extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get fileName => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set fileName($core.String v) { $_setString(0, v); }
|
||||
set fileName($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasFileName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -70,5 +67,5 @@ class SourceContext extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/source_context.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -20,48 +22,44 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
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.
|
||||
/// `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.
|
||||
/// The JSON representation for `Struct` is JSON object.
|
||||
class Struct extends $pb.GeneratedMessage with $mixin.StructMixin {
|
||||
factory Struct({
|
||||
$pb.PbMap<$core.String, Value>? fields,
|
||||
$core.Iterable<$core.MapEntry<$core.String, Value>>? fields,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (fields != null) {
|
||||
$result.fields.addAll(fields);
|
||||
}
|
||||
return $result;
|
||||
final result = create();
|
||||
if (fields != null) result.fields.addEntries(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);
|
||||
|
||||
Struct._();
|
||||
|
||||
factory Struct.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Struct.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Struct copyWith(void Function(Struct) updates) => super.copyWith((message) => updates(message as Struct)) as Struct;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Struct create() => Struct._();
|
||||
@$core.override
|
||||
Struct createEmptyInstance() => create();
|
||||
static $pb.PbList<Struct> createRepeated() => $pb.PbList<Struct>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -83,12 +81,12 @@ enum Value_Kind {
|
||||
notSet
|
||||
}
|
||||
|
||||
/// `Value` represents a dynamically typed value which can be either
|
||||
/// null, a number, a string, a boolean, a recursive struct value, or a
|
||||
/// list of values. A producer of value is expected to set one of that
|
||||
/// variants, absence of any variant indicates an error.
|
||||
/// `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.
|
||||
/// The JSON representation for `Value` is JSON value.
|
||||
class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
factory Value({
|
||||
NullValue? nullValue,
|
||||
@@ -98,30 +96,20 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
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;
|
||||
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);
|
||||
|
||||
Value._();
|
||||
|
||||
factory Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = {
|
||||
1 : Value_Kind.nullValue,
|
||||
@@ -143,21 +131,17 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Value copyWith(void Function(Value) updates) => super.copyWith((message) => updates(message as Value)) as Value;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Value create() => Value._();
|
||||
@$core.override
|
||||
Value createEmptyInstance() => create();
|
||||
static $pb.PbList<Value> createRepeated() => $pb.PbList<Value>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -171,7 +155,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
NullValue get nullValue => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nullValue(NullValue v) { $_setField(1, v); }
|
||||
set nullValue(NullValue value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNullValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -181,7 +165,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
@$pb.TagNumber(2)
|
||||
$core.double get numberValue => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set numberValue($core.double v) { $_setDouble(1, v); }
|
||||
set numberValue($core.double value) => $_setDouble(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasNumberValue() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -191,7 +175,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get stringValue => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set stringValue($core.String v) { $_setString(2, v); }
|
||||
set stringValue($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasStringValue() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -201,7 +185,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool get boolValue => $_getBF(3);
|
||||
@$pb.TagNumber(4)
|
||||
set boolValue($core.bool v) { $_setBool(3, v); }
|
||||
set boolValue($core.bool value) => $_setBool(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasBoolValue() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -211,7 +195,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
@$pb.TagNumber(5)
|
||||
Struct get structValue => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set structValue(Struct v) { $_setField(5, v); }
|
||||
set structValue(Struct value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasStructValue() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
@@ -223,7 +207,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
@$pb.TagNumber(6)
|
||||
ListValue get listValue => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set listValue(ListValue v) { $_setField(6, v); }
|
||||
set listValue(ListValue value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasListValue() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
@@ -232,43 +216,39 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
|
||||
ListValue ensureListValue() => $_ensure(5);
|
||||
}
|
||||
|
||||
/// `ListValue` is a wrapper around a repeated field of values.
|
||||
/// `ListValue` is a wrapper around a repeated field of values.
|
||||
///
|
||||
/// The JSON representation for `ListValue` is JSON array.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
ListValue._();
|
||||
|
||||
factory ListValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory ListValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ListValue copyWith(void Function(ListValue) updates) => super.copyWith((message) => updates(message as ListValue)) as ListValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ListValue create() => ListValue._();
|
||||
@$core.override
|
||||
ListValue createEmptyInstance() => create();
|
||||
static $pb.PbList<ListValue> createRepeated() => $pb.PbList<ListValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -281,5 +261,5 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -5,18 +5,19 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
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.
|
||||
/// `NullValue` is a singleton enumeration to represent the null value for the
|
||||
/// `Value` type union.
|
||||
///
|
||||
/// The JSON representation for `NullValue` is JSON `null`.
|
||||
/// The JSON representation for `NullValue` is JSON `null`.
|
||||
class NullValue extends $pb.ProtobufEnum {
|
||||
/// Null value.
|
||||
static const NullValue NULL_VALUE = NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE');
|
||||
@@ -25,11 +26,11 @@ class NullValue extends $pb.ProtobufEnum {
|
||||
NULL_VALUE,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, NullValue> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static NullValue? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<NullValue?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 0);
|
||||
static NullValue? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const NullValue._(super.v, super.n);
|
||||
const NullValue._(super.value, super.name);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -17,105 +19,103 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// 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.
|
||||
/// 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).
|
||||
/// 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.
|
||||
/// 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
|
||||
/// # Examples
|
||||
///
|
||||
/// Example 1: Compute Timestamp from POSIX `time()`.
|
||||
/// Example 1: Compute Timestamp from POSIX `time()`.
|
||||
///
|
||||
/// Timestamp timestamp;
|
||||
/// timestamp.set_seconds(time(NULL));
|
||||
/// timestamp.set_nanos(0);
|
||||
/// Timestamp timestamp;
|
||||
/// timestamp.set_seconds(time(NULL));
|
||||
/// timestamp.set_nanos(0);
|
||||
///
|
||||
/// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
||||
/// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
||||
///
|
||||
/// struct timeval tv;
|
||||
/// gettimeofday(&tv, NULL);
|
||||
/// struct timeval tv;
|
||||
/// gettimeofday(&tv, NULL);
|
||||
///
|
||||
/// Timestamp timestamp;
|
||||
/// timestamp.set_seconds(tv.tv_sec);
|
||||
/// timestamp.set_nanos(tv.tv_usec * 1000);
|
||||
/// Timestamp timestamp;
|
||||
/// timestamp.set_seconds(tv.tv_sec);
|
||||
/// timestamp.set_nanos(tv.tv_usec * 1000);
|
||||
///
|
||||
/// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
||||
/// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
||||
///
|
||||
/// FILETIME ft;
|
||||
/// GetSystemTimeAsFileTime(&ft);
|
||||
/// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
||||
/// 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));
|
||||
/// // 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()`.
|
||||
/// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
||||
///
|
||||
/// long millis = System.currentTimeMillis();
|
||||
/// long millis = System.currentTimeMillis();
|
||||
///
|
||||
/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||
/// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||
/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||
/// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||
///
|
||||
///
|
||||
/// Example 5: Compute Timestamp from current time in Python.
|
||||
/// Example 5: Compute Timestamp from current time in Python.
|
||||
///
|
||||
/// timestamp = Timestamp()
|
||||
/// timestamp.GetCurrentTime()
|
||||
/// timestamp = Timestamp()
|
||||
/// timestamp.GetCurrentTime()
|
||||
///
|
||||
/// # JSON Mapping
|
||||
/// # 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).
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Timestamp._();
|
||||
|
||||
factory Timestamp.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Timestamp.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@@ -123,21 +123,17 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Timestamp copyWith(void Function(Timestamp) updates) => super.copyWith((message) => updates(message as Timestamp)) as Timestamp;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Timestamp create() => Timestamp._();
|
||||
@$core.override
|
||||
Timestamp createEmptyInstance() => create();
|
||||
static $pb.PbList<Timestamp> createRepeated() => $pb.PbList<Timestamp>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -150,7 +146,7 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get seconds => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set seconds($fixnum.Int64 v) { $_setInt64(0, v); }
|
||||
set seconds($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSeconds() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -163,7 +159,7 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
|
||||
@$pb.TagNumber(2)
|
||||
$core.int get nanos => $_getIZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set nanos($core.int v) { $_setSignedInt32(1, v); }
|
||||
set nanos($core.int value) => $_setSignedInt32(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasNanos() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -179,5 +175,5 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/timestamp.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,16 +5,17 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'any.pb.dart' as $18;
|
||||
import 'source_context.pb.dart' as $19;
|
||||
import 'any.pb.dart' as $16;
|
||||
import 'source_context.pb.dart' as $18;
|
||||
import 'type.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
@@ -28,59 +29,45 @@ class Type extends $pb.GeneratedMessage {
|
||||
$core.Iterable<Field>? fields,
|
||||
$core.Iterable<$core.String>? oneofs,
|
||||
$core.Iterable<Option>? options,
|
||||
$19.SourceContext? sourceContext,
|
||||
$18.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;
|
||||
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);
|
||||
|
||||
Type._();
|
||||
|
||||
factory Type.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Type.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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<$19.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $19.SourceContext.create)
|
||||
..aOM<$18.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $18.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Type copyWith(void Function(Type) updates) => super.copyWith((message) => updates(message as Type)) as Type;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Type create() => Type._();
|
||||
@$core.override
|
||||
Type createEmptyInstance() => create();
|
||||
static $pb.PbList<Type> createRepeated() => $pb.PbList<Type>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -91,7 +78,7 @@ class Type extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -111,21 +98,21 @@ class Type extends $pb.GeneratedMessage {
|
||||
|
||||
/// The source context.
|
||||
@$pb.TagNumber(5)
|
||||
$19.SourceContext get sourceContext => $_getN(4);
|
||||
$18.SourceContext get sourceContext => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set sourceContext($19.SourceContext v) { $_setField(5, v); }
|
||||
set sourceContext($18.SourceContext value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasSourceContext() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearSourceContext() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$19.SourceContext ensureSourceContext() => $_ensure(4);
|
||||
$18.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); }
|
||||
set syntax(Syntax value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSyntax() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
@@ -146,42 +133,24 @@ class Field extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
Field._();
|
||||
|
||||
factory Field.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Field.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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)
|
||||
@@ -197,21 +166,17 @@ class Field extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Field copyWith(void Function(Field) updates) => super.copyWith((message) => updates(message as Field)) as Field;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Field create() => Field._();
|
||||
@$core.override
|
||||
Field createEmptyInstance() => create();
|
||||
static $pb.PbList<Field> createRepeated() => $pb.PbList<Field>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -222,7 +187,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
Field_Kind get kind => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set kind(Field_Kind v) { $_setField(1, v); }
|
||||
set kind(Field_Kind value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasKind() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -232,7 +197,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
Field_Cardinality get cardinality => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set cardinality(Field_Cardinality v) { $_setField(2, v); }
|
||||
set cardinality(Field_Cardinality value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCardinality() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -242,7 +207,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
$core.int get number => $_getIZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set number($core.int v) { $_setSignedInt32(2, v); }
|
||||
set number($core.int value) => $_setSignedInt32(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasNumber() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -252,7 +217,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get name => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set name($core.String v) { $_setString(3, v); }
|
||||
set name($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasName() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -263,7 +228,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(6)
|
||||
$core.String get typeUrl => $_getSZ(4);
|
||||
@$pb.TagNumber(6)
|
||||
set typeUrl($core.String v) { $_setString(4, v); }
|
||||
set typeUrl($core.String value) => $_setString(4, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasTypeUrl() => $_has(4);
|
||||
@$pb.TagNumber(6)
|
||||
@@ -274,7 +239,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(7)
|
||||
$core.int get oneofIndex => $_getIZ(5);
|
||||
@$pb.TagNumber(7)
|
||||
set oneofIndex($core.int v) { $_setSignedInt32(5, v); }
|
||||
set oneofIndex($core.int value) => $_setSignedInt32(5, value);
|
||||
@$pb.TagNumber(7)
|
||||
$core.bool hasOneofIndex() => $_has(5);
|
||||
@$pb.TagNumber(7)
|
||||
@@ -284,7 +249,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(8)
|
||||
$core.bool get packed => $_getBF(6);
|
||||
@$pb.TagNumber(8)
|
||||
set packed($core.bool v) { $_setBool(6, v); }
|
||||
set packed($core.bool value) => $_setBool(6, value);
|
||||
@$pb.TagNumber(8)
|
||||
$core.bool hasPacked() => $_has(6);
|
||||
@$pb.TagNumber(8)
|
||||
@@ -298,7 +263,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(10)
|
||||
$core.String get jsonName => $_getSZ(8);
|
||||
@$pb.TagNumber(10)
|
||||
set jsonName($core.String v) { $_setString(8, v); }
|
||||
set jsonName($core.String value) => $_setString(8, value);
|
||||
@$pb.TagNumber(10)
|
||||
$core.bool hasJsonName() => $_has(8);
|
||||
@$pb.TagNumber(10)
|
||||
@@ -308,7 +273,7 @@ class Field extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(11)
|
||||
$core.String get defaultValue => $_getSZ(9);
|
||||
@$pb.TagNumber(11)
|
||||
set defaultValue($core.String v) { $_setString(9, v); }
|
||||
set defaultValue($core.String value) => $_setString(9, value);
|
||||
@$pb.TagNumber(11)
|
||||
$core.bool hasDefaultValue() => $_has(9);
|
||||
@$pb.TagNumber(11)
|
||||
@@ -321,55 +286,43 @@ class Enum extends $pb.GeneratedMessage {
|
||||
$core.String? name,
|
||||
$core.Iterable<EnumValue>? enumvalue,
|
||||
$core.Iterable<Option>? options,
|
||||
$19.SourceContext? sourceContext,
|
||||
$18.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;
|
||||
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);
|
||||
|
||||
Enum._();
|
||||
|
||||
factory Enum.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Enum.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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<$19.SourceContext>(4, _omitFieldNames ? '' : 'sourceContext', subBuilder: $19.SourceContext.create)
|
||||
..aOM<$18.SourceContext>(4, _omitFieldNames ? '' : 'sourceContext', subBuilder: $18.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Enum copyWith(void Function(Enum) updates) => super.copyWith((message) => updates(message as Enum)) as Enum;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Enum create() => Enum._();
|
||||
@$core.override
|
||||
Enum createEmptyInstance() => create();
|
||||
static $pb.PbList<Enum> createRepeated() => $pb.PbList<Enum>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -380,7 +333,7 @@ class Enum extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -396,21 +349,21 @@ class Enum extends $pb.GeneratedMessage {
|
||||
|
||||
/// The source context.
|
||||
@$pb.TagNumber(4)
|
||||
$19.SourceContext get sourceContext => $_getN(3);
|
||||
$18.SourceContext get sourceContext => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set sourceContext($19.SourceContext v) { $_setField(4, v); }
|
||||
set sourceContext($18.SourceContext value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasSourceContext() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearSourceContext() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$19.SourceContext ensureSourceContext() => $_ensure(3);
|
||||
$18.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); }
|
||||
set syntax(Syntax value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasSyntax() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
@@ -424,21 +377,17 @@ class EnumValue extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
EnumValue._();
|
||||
|
||||
factory EnumValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory EnumValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EnumValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
@@ -447,21 +396,17 @@ class EnumValue extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
EnumValue copyWith(void Function(EnumValue) updates) => super.copyWith((message) => updates(message as EnumValue)) as EnumValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static EnumValue create() => EnumValue._();
|
||||
@$core.override
|
||||
EnumValue createEmptyInstance() => create();
|
||||
static $pb.PbList<EnumValue> createRepeated() => $pb.PbList<EnumValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -472,7 +417,7 @@ class EnumValue extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -482,7 +427,7 @@ class EnumValue extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.int get number => $_getIZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set number($core.int v) { $_setSignedInt32(1, v); }
|
||||
set number($core.int value) => $_setSignedInt32(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasNumber() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -498,42 +443,36 @@ class EnumValue extends $pb.GeneratedMessage {
|
||||
class Option extends $pb.GeneratedMessage {
|
||||
factory Option({
|
||||
$core.String? name,
|
||||
$18.Any? value,
|
||||
$16.Any? value,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (name != null) {
|
||||
$result.name = name;
|
||||
}
|
||||
if (value != null) {
|
||||
$result.value = value;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
Option._();
|
||||
|
||||
factory Option.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Option.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Option', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
..aOM<$18.Any>(2, _omitFieldNames ? '' : 'value', subBuilder: $18.Any.create)
|
||||
..aOM<$16.Any>(2, _omitFieldNames ? '' : 'value', subBuilder: $16.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Option copyWith(void Function(Option) updates) => super.copyWith((message) => updates(message as Option)) as Option;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Option create() => Option._();
|
||||
@$core.override
|
||||
Option createEmptyInstance() => create();
|
||||
static $pb.PbList<Option> createRepeated() => $pb.PbList<Option>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -547,7 +486,7 @@ class Option extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -558,17 +497,17 @@ class Option extends $pb.GeneratedMessage {
|
||||
/// 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)
|
||||
$18.Any get value => $_getN(1);
|
||||
$16.Any get value => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set value($18.Any v) { $_setField(2, v); }
|
||||
set value($16.Any value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasValue() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearValue() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$18.Any ensureValue() => $_ensure(1);
|
||||
$16.Any ensureValue() => $_ensure(1);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -25,10 +26,10 @@ class Syntax extends $pb.ProtobufEnum {
|
||||
SYNTAX_PROTO3,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, Syntax> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static Syntax? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<Syntax?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 1);
|
||||
static Syntax? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Syntax._(super.v, super.n);
|
||||
const Syntax._(super.value, super.name);
|
||||
}
|
||||
|
||||
/// Basic field types.
|
||||
@@ -94,10 +95,10 @@ class Field_Kind extends $pb.ProtobufEnum {
|
||||
TYPE_SINT64,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, Field_Kind> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static Field_Kind? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<Field_Kind?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 18);
|
||||
static Field_Kind? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Field_Kind._(super.v, super.n);
|
||||
const Field_Kind._(super.value, super.name);
|
||||
}
|
||||
|
||||
/// Whether a field is optional, required, or repeated.
|
||||
@@ -118,11 +119,11 @@ class Field_Cardinality extends $pb.ProtobufEnum {
|
||||
CARDINALITY_REPEATED,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, Field_Cardinality> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static Field_Cardinality? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<Field_Cardinality?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static Field_Cardinality? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Field_Cardinality._(super.v, super.n);
|
||||
const Field_Cardinality._(super.value, super.name);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -17,43 +19,39 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// Wrapper message for `double`.
|
||||
/// Wrapper message for `double`.
|
||||
///
|
||||
/// The JSON representation for `DoubleValue` is JSON number.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
DoubleValue._();
|
||||
|
||||
factory DoubleValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory DoubleValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
DoubleValue copyWith(void Function(DoubleValue) updates) => super.copyWith((message) => updates(message as DoubleValue)) as DoubleValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DoubleValue create() => DoubleValue._();
|
||||
@$core.override
|
||||
DoubleValue createEmptyInstance() => create();
|
||||
static $pb.PbList<DoubleValue> createRepeated() => $pb.PbList<DoubleValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -64,50 +62,46 @@ class DoubleValue extends $pb.GeneratedMessage with $mixin.DoubleValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.double get value => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.double v) { $_setDouble(0, v); }
|
||||
set value($core.double value) => $_setDouble(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `float`.
|
||||
/// Wrapper message for `float`.
|
||||
///
|
||||
/// The JSON representation for `FloatValue` is JSON number.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
FloatValue._();
|
||||
|
||||
factory FloatValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory FloatValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FloatValue copyWith(void Function(FloatValue) updates) => super.copyWith((message) => updates(message as FloatValue)) as FloatValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FloatValue create() => FloatValue._();
|
||||
@$core.override
|
||||
FloatValue createEmptyInstance() => create();
|
||||
static $pb.PbList<FloatValue> createRepeated() => $pb.PbList<FloatValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -118,50 +112,46 @@ class FloatValue extends $pb.GeneratedMessage with $mixin.FloatValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.double get value => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.double v) { $_setFloat(0, v); }
|
||||
set value($core.double value) => $_setFloat(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `int64`.
|
||||
/// Wrapper message for `int64`.
|
||||
///
|
||||
/// The JSON representation for `Int64Value` is JSON string.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Int64Value._();
|
||||
|
||||
factory Int64Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Int64Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Int64Value copyWith(void Function(Int64Value) updates) => super.copyWith((message) => updates(message as Int64Value)) as Int64Value;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Int64Value create() => Int64Value._();
|
||||
@$core.override
|
||||
Int64Value createEmptyInstance() => create();
|
||||
static $pb.PbList<Int64Value> createRepeated() => $pb.PbList<Int64Value>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -172,50 +162,46 @@ class Int64Value extends $pb.GeneratedMessage with $mixin.Int64ValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get value => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($fixnum.Int64 v) { $_setInt64(0, v); }
|
||||
set value($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `uint64`.
|
||||
/// Wrapper message for `uint64`.
|
||||
///
|
||||
/// The JSON representation for `UInt64Value` is JSON string.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
UInt64Value._();
|
||||
|
||||
factory UInt64Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory UInt64Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UInt64Value copyWith(void Function(UInt64Value) updates) => super.copyWith((message) => updates(message as UInt64Value)) as UInt64Value;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UInt64Value create() => UInt64Value._();
|
||||
@$core.override
|
||||
UInt64Value createEmptyInstance() => create();
|
||||
static $pb.PbList<UInt64Value> createRepeated() => $pb.PbList<UInt64Value>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -226,50 +212,46 @@ class UInt64Value extends $pb.GeneratedMessage with $mixin.UInt64ValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get value => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($fixnum.Int64 v) { $_setInt64(0, v); }
|
||||
set value($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `int32`.
|
||||
/// Wrapper message for `int32`.
|
||||
///
|
||||
/// The JSON representation for `Int32Value` is JSON number.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Int32Value._();
|
||||
|
||||
factory Int32Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Int32Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)) as Int32Value;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Int32Value create() => Int32Value._();
|
||||
@$core.override
|
||||
Int32Value createEmptyInstance() => create();
|
||||
static $pb.PbList<Int32Value> createRepeated() => $pb.PbList<Int32Value>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -280,50 +262,46 @@ class Int32Value extends $pb.GeneratedMessage with $mixin.Int32ValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get value => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.int v) { $_setSignedInt32(0, v); }
|
||||
set value($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `uint32`.
|
||||
/// Wrapper message for `uint32`.
|
||||
///
|
||||
/// The JSON representation for `UInt32Value` is JSON number.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
UInt32Value._();
|
||||
|
||||
factory UInt32Value.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory UInt32Value.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UInt32Value copyWith(void Function(UInt32Value) updates) => super.copyWith((message) => updates(message as UInt32Value)) as UInt32Value;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UInt32Value create() => UInt32Value._();
|
||||
@$core.override
|
||||
UInt32Value createEmptyInstance() => create();
|
||||
static $pb.PbList<UInt32Value> createRepeated() => $pb.PbList<UInt32Value>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -334,50 +312,46 @@ class UInt32Value extends $pb.GeneratedMessage with $mixin.UInt32ValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get value => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
set value($core.int value) => $_setUnsignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `bool`.
|
||||
/// Wrapper message for `bool`.
|
||||
///
|
||||
/// The JSON representation for `BoolValue` is JSON `true` and `false`.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
BoolValue._();
|
||||
|
||||
factory BoolValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory BoolValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BoolValue copyWith(void Function(BoolValue) updates) => super.copyWith((message) => updates(message as BoolValue)) as BoolValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BoolValue create() => BoolValue._();
|
||||
@$core.override
|
||||
BoolValue createEmptyInstance() => create();
|
||||
static $pb.PbList<BoolValue> createRepeated() => $pb.PbList<BoolValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -388,50 +362,46 @@ class BoolValue extends $pb.GeneratedMessage with $mixin.BoolValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool get value => $_getBF(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.bool v) { $_setBool(0, v); }
|
||||
set value($core.bool value) => $_setBool(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `string`.
|
||||
/// Wrapper message for `string`.
|
||||
///
|
||||
/// The JSON representation for `StringValue` is JSON 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;
|
||||
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);
|
||||
|
||||
StringValue._();
|
||||
|
||||
factory StringValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory StringValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
StringValue copyWith(void Function(StringValue) updates) => super.copyWith((message) => updates(message as StringValue)) as StringValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static StringValue create() => StringValue._();
|
||||
@$core.override
|
||||
StringValue createEmptyInstance() => create();
|
||||
static $pb.PbList<StringValue> createRepeated() => $pb.PbList<StringValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -442,50 +412,46 @@ class StringValue extends $pb.GeneratedMessage with $mixin.StringValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get value => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.String v) { $_setString(0, v); }
|
||||
set value($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearValue() => $_clearField(1);
|
||||
}
|
||||
|
||||
/// Wrapper message for `bytes`.
|
||||
/// Wrapper message for `bytes`.
|
||||
///
|
||||
/// The JSON representation for `BytesValue` is JSON string.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
BytesValue._();
|
||||
|
||||
factory BytesValue.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory BytesValue.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BytesValue copyWith(void Function(BytesValue) updates) => super.copyWith((message) => updates(message as BytesValue)) as BytesValue;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BytesValue create() => BytesValue._();
|
||||
@$core.override
|
||||
BytesValue createEmptyInstance() => create();
|
||||
static $pb.PbList<BytesValue> createRepeated() => $pb.PbList<BytesValue>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -496,7 +462,7 @@ class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin {
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get value => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set value($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
set value($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasValue() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -504,5 +470,5 @@ class BytesValue extends $pb.GeneratedMessage with $mixin.BytesValueMixin {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/protobuf/wrappers.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
|
||||
@@ -5,157 +5,158 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
/// The canonical error codes for Google APIs.
|
||||
/// 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`.
|
||||
/// 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 {
|
||||
/// Not an error; returned on success
|
||||
/// Not an error; returned on success
|
||||
///
|
||||
/// HTTP Mapping: 200 OK
|
||||
/// HTTP Mapping: 200 OK
|
||||
static const Code OK = Code._(0, _omitEnumNames ? '' : 'OK');
|
||||
/// The operation was cancelled, typically by the caller.
|
||||
/// The operation was cancelled, typically by the caller.
|
||||
///
|
||||
/// HTTP Mapping: 499 Client Closed Request
|
||||
/// HTTP Mapping: 499 Client Closed Request
|
||||
static const Code CANCELLED = Code._(1, _omitEnumNames ? '' : 'CANCELLED');
|
||||
/// Unknown error. For example, this error may be returned when
|
||||
/// a `Status` value received from another address space belongs to
|
||||
/// an error space that is not known in this address space. Also
|
||||
/// errors raised by APIs that do not return enough error information
|
||||
/// may be converted to this error.
|
||||
/// Unknown error. For example, this error may be returned when
|
||||
/// a `Status` value received from another address space belongs to
|
||||
/// an error space that is not known in this address space. Also
|
||||
/// errors raised by APIs that do not return enough error information
|
||||
/// may be converted to this error.
|
||||
///
|
||||
/// HTTP Mapping: 500 Internal Server Error
|
||||
/// HTTP Mapping: 500 Internal Server Error
|
||||
static const Code UNKNOWN = Code._(2, _omitEnumNames ? '' : 'UNKNOWN');
|
||||
/// The client specified an invalid argument. Note that this differs
|
||||
/// from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
|
||||
/// that are problematic regardless of the state of the system
|
||||
/// (e.g., a malformed file name).
|
||||
/// The client specified an invalid argument. Note that this differs
|
||||
/// from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
|
||||
/// that are problematic regardless of the state of the system
|
||||
/// (e.g., a malformed file name).
|
||||
///
|
||||
/// HTTP Mapping: 400 Bad Request
|
||||
/// HTTP Mapping: 400 Bad Request
|
||||
static const Code INVALID_ARGUMENT = Code._(3, _omitEnumNames ? '' : 'INVALID_ARGUMENT');
|
||||
/// The deadline expired before the operation could complete. For operations
|
||||
/// that change the state of the system, this error may be returned
|
||||
/// even if the operation has completed successfully. For example, a
|
||||
/// successful response from a server could have been delayed long
|
||||
/// enough for the deadline to expire.
|
||||
/// The deadline expired before the operation could complete. For operations
|
||||
/// that change the state of the system, this error may be returned
|
||||
/// even if the operation has completed successfully. For example, a
|
||||
/// successful response from a server could have been delayed long
|
||||
/// enough for the deadline to expire.
|
||||
///
|
||||
/// HTTP Mapping: 504 Gateway Timeout
|
||||
/// HTTP Mapping: 504 Gateway Timeout
|
||||
static const Code DEADLINE_EXCEEDED = Code._(4, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED');
|
||||
/// Some requested entity (e.g., file or directory) was not found.
|
||||
/// Some requested entity (e.g., file or directory) was not found.
|
||||
///
|
||||
/// Note to server developers: if a request is denied for an entire class
|
||||
/// of users, such as gradual feature rollout or undocumented whitelist,
|
||||
/// `NOT_FOUND` may be used. If a request is denied for some users within
|
||||
/// a class of users, such as user-based access control, `PERMISSION_DENIED`
|
||||
/// must be used.
|
||||
/// Note to server developers: if a request is denied for an entire class
|
||||
/// of users, such as gradual feature rollout or undocumented whitelist,
|
||||
/// `NOT_FOUND` may be used. If a request is denied for some users within
|
||||
/// a class of users, such as user-based access control, `PERMISSION_DENIED`
|
||||
/// must be used.
|
||||
///
|
||||
/// HTTP Mapping: 404 Not Found
|
||||
/// HTTP Mapping: 404 Not Found
|
||||
static const Code NOT_FOUND = Code._(5, _omitEnumNames ? '' : 'NOT_FOUND');
|
||||
/// The entity that a client attempted to create (e.g., file or directory)
|
||||
/// already exists.
|
||||
/// The entity that a client attempted to create (e.g., file or directory)
|
||||
/// already exists.
|
||||
///
|
||||
/// HTTP Mapping: 409 Conflict
|
||||
/// HTTP Mapping: 409 Conflict
|
||||
static const Code ALREADY_EXISTS = Code._(6, _omitEnumNames ? '' : 'ALREADY_EXISTS');
|
||||
/// The caller does not have permission to execute the specified
|
||||
/// operation. `PERMISSION_DENIED` must not be used for rejections
|
||||
/// caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
|
||||
/// instead for those errors). `PERMISSION_DENIED` must not be
|
||||
/// used if the caller can not be identified (use `UNAUTHENTICATED`
|
||||
/// instead for those errors). This error code does not imply the
|
||||
/// request is valid or the requested entity exists or satisfies
|
||||
/// other pre-conditions.
|
||||
/// The caller does not have permission to execute the specified
|
||||
/// operation. `PERMISSION_DENIED` must not be used for rejections
|
||||
/// caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
|
||||
/// instead for those errors). `PERMISSION_DENIED` must not be
|
||||
/// used if the caller can not be identified (use `UNAUTHENTICATED`
|
||||
/// instead for those errors). This error code does not imply the
|
||||
/// request is valid or the requested entity exists or satisfies
|
||||
/// other pre-conditions.
|
||||
///
|
||||
/// HTTP Mapping: 403 Forbidden
|
||||
/// HTTP Mapping: 403 Forbidden
|
||||
static const Code PERMISSION_DENIED = Code._(7, _omitEnumNames ? '' : 'PERMISSION_DENIED');
|
||||
/// The request does not have valid authentication credentials for the
|
||||
/// operation.
|
||||
/// The request does not have valid authentication credentials for the
|
||||
/// operation.
|
||||
///
|
||||
/// HTTP Mapping: 401 Unauthorized
|
||||
/// HTTP Mapping: 401 Unauthorized
|
||||
static const Code UNAUTHENTICATED = Code._(16, _omitEnumNames ? '' : 'UNAUTHENTICATED');
|
||||
/// Some resource has been exhausted, perhaps a per-user quota, or
|
||||
/// perhaps the entire file system is out of space.
|
||||
/// Some resource has been exhausted, perhaps a per-user quota, or
|
||||
/// perhaps the entire file system is out of space.
|
||||
///
|
||||
/// HTTP Mapping: 429 Too Many Requests
|
||||
/// HTTP Mapping: 429 Too Many Requests
|
||||
static const Code RESOURCE_EXHAUSTED = Code._(8, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED');
|
||||
/// The operation was rejected because the system is not in a state
|
||||
/// required for the operation's execution. For example, the directory
|
||||
/// to be deleted is non-empty, an rmdir operation is applied to
|
||||
/// a non-directory, etc.
|
||||
/// The operation was rejected because the system is not in a state
|
||||
/// required for the operation's execution. For example, the directory
|
||||
/// to be deleted is non-empty, an rmdir operation is applied to
|
||||
/// a non-directory, etc.
|
||||
///
|
||||
/// Service implementors can use the following guidelines to decide
|
||||
/// between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
|
||||
/// (a) Use `UNAVAILABLE` if the client can retry just the failing call.
|
||||
/// (b) Use `ABORTED` if the client should retry at a higher level
|
||||
/// (e.g., when a client-specified test-and-set fails, indicating the
|
||||
/// client should restart a read-modify-write sequence).
|
||||
/// (c) Use `FAILED_PRECONDITION` if the client should not retry until
|
||||
/// the system state has been explicitly fixed. E.g., if an "rmdir"
|
||||
/// fails because the directory is non-empty, `FAILED_PRECONDITION`
|
||||
/// should be returned since the client should not retry unless
|
||||
/// the files are deleted from the directory.
|
||||
/// Service implementors can use the following guidelines to decide
|
||||
/// between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
|
||||
/// (a) Use `UNAVAILABLE` if the client can retry just the failing call.
|
||||
/// (b) Use `ABORTED` if the client should retry at a higher level
|
||||
/// (e.g., when a client-specified test-and-set fails, indicating the
|
||||
/// client should restart a read-modify-write sequence).
|
||||
/// (c) Use `FAILED_PRECONDITION` if the client should not retry until
|
||||
/// the system state has been explicitly fixed. E.g., if an "rmdir"
|
||||
/// fails because the directory is non-empty, `FAILED_PRECONDITION`
|
||||
/// should be returned since the client should not retry unless
|
||||
/// the files are deleted from the directory.
|
||||
///
|
||||
/// HTTP Mapping: 400 Bad Request
|
||||
/// HTTP Mapping: 400 Bad Request
|
||||
static const Code FAILED_PRECONDITION = Code._(9, _omitEnumNames ? '' : 'FAILED_PRECONDITION');
|
||||
/// The operation was aborted, typically due to a concurrency issue such as
|
||||
/// a sequencer check failure or transaction abort.
|
||||
/// The operation was aborted, typically due to a concurrency issue such as
|
||||
/// a sequencer check failure or transaction abort.
|
||||
///
|
||||
/// See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
||||
/// `ABORTED`, and `UNAVAILABLE`.
|
||||
/// See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
||||
/// `ABORTED`, and `UNAVAILABLE`.
|
||||
///
|
||||
/// HTTP Mapping: 409 Conflict
|
||||
/// HTTP Mapping: 409 Conflict
|
||||
static const Code ABORTED = Code._(10, _omitEnumNames ? '' : 'ABORTED');
|
||||
/// The operation was attempted past the valid range. E.g., seeking or
|
||||
/// reading past end-of-file.
|
||||
/// The operation was attempted past the valid range. E.g., seeking or
|
||||
/// reading past end-of-file.
|
||||
///
|
||||
/// Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
|
||||
/// be fixed if the system state changes. For example, a 32-bit file
|
||||
/// system will generate `INVALID_ARGUMENT` if asked to read at an
|
||||
/// offset that is not in the range [0,2^32-1], but it will generate
|
||||
/// `OUT_OF_RANGE` if asked to read from an offset past the current
|
||||
/// file size.
|
||||
/// Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
|
||||
/// be fixed if the system state changes. For example, a 32-bit file
|
||||
/// system will generate `INVALID_ARGUMENT` if asked to read at an
|
||||
/// offset that is not in the range [0,2^32-1], but it will generate
|
||||
/// `OUT_OF_RANGE` if asked to read from an offset past the current
|
||||
/// file size.
|
||||
///
|
||||
/// There is a fair bit of overlap between `FAILED_PRECONDITION` and
|
||||
/// `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
|
||||
/// error) when it applies so that callers who are iterating through
|
||||
/// a space can easily look for an `OUT_OF_RANGE` error to detect when
|
||||
/// they are done.
|
||||
/// There is a fair bit of overlap between `FAILED_PRECONDITION` and
|
||||
/// `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
|
||||
/// error) when it applies so that callers who are iterating through
|
||||
/// a space can easily look for an `OUT_OF_RANGE` error to detect when
|
||||
/// they are done.
|
||||
///
|
||||
/// HTTP Mapping: 400 Bad Request
|
||||
/// HTTP Mapping: 400 Bad Request
|
||||
static const Code OUT_OF_RANGE = Code._(11, _omitEnumNames ? '' : 'OUT_OF_RANGE');
|
||||
/// The operation is not implemented or is not supported/enabled in this
|
||||
/// service.
|
||||
/// The operation is not implemented or is not supported/enabled in this
|
||||
/// service.
|
||||
///
|
||||
/// HTTP Mapping: 501 Not Implemented
|
||||
/// HTTP Mapping: 501 Not Implemented
|
||||
static const Code UNIMPLEMENTED = Code._(12, _omitEnumNames ? '' : 'UNIMPLEMENTED');
|
||||
/// Internal errors. This means that some invariants expected by the
|
||||
/// underlying system have been broken. This error code is reserved
|
||||
/// for serious errors.
|
||||
/// Internal errors. This means that some invariants expected by the
|
||||
/// underlying system have been broken. This error code is reserved
|
||||
/// for serious errors.
|
||||
///
|
||||
/// HTTP Mapping: 500 Internal Server Error
|
||||
/// HTTP Mapping: 500 Internal Server Error
|
||||
static const Code INTERNAL = Code._(13, _omitEnumNames ? '' : 'INTERNAL');
|
||||
/// The service is currently unavailable. This is most likely a
|
||||
/// transient condition, which can be corrected by retrying with
|
||||
/// a backoff.
|
||||
/// The service is currently unavailable. This is most likely a
|
||||
/// transient condition, which can be corrected by retrying with
|
||||
/// a backoff.
|
||||
///
|
||||
/// See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
||||
/// `ABORTED`, and `UNAVAILABLE`.
|
||||
/// See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
||||
/// `ABORTED`, and `UNAVAILABLE`.
|
||||
///
|
||||
/// HTTP Mapping: 503 Service Unavailable
|
||||
/// HTTP Mapping: 503 Service Unavailable
|
||||
static const Code UNAVAILABLE = Code._(14, _omitEnumNames ? '' : 'UNAVAILABLE');
|
||||
/// Unrecoverable data loss or corruption.
|
||||
/// Unrecoverable data loss or corruption.
|
||||
///
|
||||
/// HTTP Mapping: 500 Internal Server Error
|
||||
/// HTTP Mapping: 500 Internal Server Error
|
||||
static const Code DATA_LOSS = Code._(15, _omitEnumNames ? '' : 'DATA_LOSS');
|
||||
|
||||
static const $core.List<Code> values = <Code> [
|
||||
@@ -178,11 +179,11 @@ class Code extends $pb.ProtobufEnum {
|
||||
DATA_LOSS,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, Code> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static Code? valueOf($core.int value) => _byValue[value];
|
||||
static final $core.List<Code?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 16);
|
||||
static Code? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Code._(super.v, super.n);
|
||||
const Code._(super.value, super.name);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,65 +5,62 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../protobuf/duration.pb.dart' as $13;
|
||||
import '../protobuf/duration.pb.dart' as $20;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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({
|
||||
$13.Duration? retryDelay,
|
||||
$20.Duration? retryDelay,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (retryDelay != null) {
|
||||
$result.retryDelay = retryDelay;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
RetryInfo._();
|
||||
|
||||
factory RetryInfo.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory RetryInfo.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RetryInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOM<$13.Duration>(1, _omitFieldNames ? '' : 'retryDelay', subBuilder: $13.Duration.create)
|
||||
..aOM<$20.Duration>(1, _omitFieldNames ? '' : 'retryDelay', subBuilder: $20.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
RetryInfo copyWith(void Function(RetryInfo) updates) => super.copyWith((message) => updates(message as RetryInfo)) as RetryInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static RetryInfo create() => RetryInfo._();
|
||||
@$core.override
|
||||
RetryInfo createEmptyInstance() => create();
|
||||
static $pb.PbList<RetryInfo> createRepeated() => $pb.PbList<RetryInfo>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -72,15 +69,15 @@ class RetryInfo extends $pb.GeneratedMessage {
|
||||
|
||||
/// Clients should wait at least this long between retrying the same request.
|
||||
@$pb.TagNumber(1)
|
||||
$13.Duration get retryDelay => $_getN(0);
|
||||
$20.Duration get retryDelay => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set retryDelay($13.Duration v) { $_setField(1, v); }
|
||||
set retryDelay($20.Duration value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasRetryDelay() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearRetryDelay() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$13.Duration ensureRetryDelay() => $_ensure(0);
|
||||
$20.Duration ensureRetryDelay() => $_ensure(0);
|
||||
}
|
||||
|
||||
/// Describes additional debugging info.
|
||||
@@ -89,18 +86,16 @@ class DebugInfo extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
DebugInfo._();
|
||||
|
||||
factory DebugInfo.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory DebugInfo.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DebugInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..pPS(1, _omitFieldNames ? '' : 'stackEntries')
|
||||
@@ -108,21 +103,17 @@ class DebugInfo extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
DebugInfo copyWith(void Function(DebugInfo) updates) => super.copyWith((message) => updates(message as DebugInfo)) as DebugInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DebugInfo create() => DebugInfo._();
|
||||
@$core.override
|
||||
DebugInfo createEmptyInstance() => create();
|
||||
static $pb.PbList<DebugInfo> createRepeated() => $pb.PbList<DebugInfo>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -137,7 +128,7 @@ class DebugInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get detail => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set detail($core.String v) { $_setString(1, v); }
|
||||
set detail($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasDetail() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -151,18 +142,16 @@ class QuotaFailure_Violation extends $pb.GeneratedMessage {
|
||||
$core.String? subject,
|
||||
$core.String? description,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (subject != null) {
|
||||
$result.subject = subject;
|
||||
}
|
||||
if (description != null) {
|
||||
$result.description = description;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
QuotaFailure_Violation._();
|
||||
|
||||
factory QuotaFailure_Violation.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory QuotaFailure_Violation.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'QuotaFailure.Violation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'subject')
|
||||
@@ -170,21 +159,17 @@ class QuotaFailure_Violation extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
QuotaFailure_Violation copyWith(void Function(QuotaFailure_Violation) updates) => super.copyWith((message) => updates(message as QuotaFailure_Violation)) as QuotaFailure_Violation;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static QuotaFailure_Violation create() => QuotaFailure_Violation._();
|
||||
@$core.override
|
||||
QuotaFailure_Violation createEmptyInstance() => create();
|
||||
static $pb.PbList<QuotaFailure_Violation> createRepeated() => $pb.PbList<QuotaFailure_Violation>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -197,74 +182,70 @@ class QuotaFailure_Violation extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get subject => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set subject($core.String v) { $_setString(0, v); }
|
||||
set subject($core.String value) => $_setString(0, value);
|
||||
@$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.
|
||||
/// 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".
|
||||
/// 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); }
|
||||
set description($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasDescription() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearDescription() => $_clearField(2);
|
||||
}
|
||||
|
||||
/// Describes how a quota check failed.
|
||||
/// 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.
|
||||
/// 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.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
QuotaFailure._();
|
||||
|
||||
factory QuotaFailure.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory QuotaFailure.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
QuotaFailure copyWith(void Function(QuotaFailure) updates) => super.copyWith((message) => updates(message as QuotaFailure)) as QuotaFailure;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static QuotaFailure create() => QuotaFailure._();
|
||||
@$core.override
|
||||
QuotaFailure createEmptyInstance() => create();
|
||||
static $pb.PbList<QuotaFailure> createRepeated() => $pb.PbList<QuotaFailure>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -283,21 +264,17 @@ class PreconditionFailure_Violation extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
PreconditionFailure_Violation._();
|
||||
|
||||
factory PreconditionFailure_Violation.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory PreconditionFailure_Violation.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PreconditionFailure.Violation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'type')
|
||||
@@ -306,21 +283,17 @@ class PreconditionFailure_Violation extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
PreconditionFailure_Violation copyWith(void Function(PreconditionFailure_Violation) updates) => super.copyWith((message) => updates(message as PreconditionFailure_Violation)) as PreconditionFailure_Violation;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static PreconditionFailure_Violation create() => PreconditionFailure_Violation._();
|
||||
@$core.override
|
||||
PreconditionFailure_Violation createEmptyInstance() => create();
|
||||
static $pb.PbList<PreconditionFailure_Violation> createRepeated() => $pb.PbList<PreconditionFailure_Violation>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -333,7 +306,7 @@ class PreconditionFailure_Violation extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get type => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set type($core.String v) { $_setString(0, v); }
|
||||
set type($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasType() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -345,65 +318,61 @@ class PreconditionFailure_Violation extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get subject => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set subject($core.String v) { $_setString(1, v); }
|
||||
set subject($core.String value) => $_setString(1, value);
|
||||
@$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.
|
||||
/// 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".
|
||||
/// 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); }
|
||||
set description($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasDescription() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearDescription() => $_clearField(3);
|
||||
}
|
||||
|
||||
/// Describes what preconditions have failed.
|
||||
/// 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.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
PreconditionFailure._();
|
||||
|
||||
factory PreconditionFailure.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory PreconditionFailure.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
PreconditionFailure copyWith(void Function(PreconditionFailure) updates) => super.copyWith((message) => updates(message as PreconditionFailure)) as PreconditionFailure;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static PreconditionFailure create() => PreconditionFailure._();
|
||||
@$core.override
|
||||
PreconditionFailure createEmptyInstance() => create();
|
||||
static $pb.PbList<PreconditionFailure> createRepeated() => $pb.PbList<PreconditionFailure>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -421,18 +390,16 @@ class BadRequest_FieldViolation extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
BadRequest_FieldViolation._();
|
||||
|
||||
factory BadRequest_FieldViolation.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory BadRequest_FieldViolation.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BadRequest.FieldViolation', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'field')
|
||||
@@ -440,21 +407,17 @@ class BadRequest_FieldViolation extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BadRequest_FieldViolation copyWith(void Function(BadRequest_FieldViolation) updates) => super.copyWith((message) => updates(message as BadRequest_FieldViolation)) as BadRequest_FieldViolation;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BadRequest_FieldViolation create() => BadRequest_FieldViolation._();
|
||||
@$core.override
|
||||
BadRequest_FieldViolation createEmptyInstance() => create();
|
||||
static $pb.PbList<BadRequest_FieldViolation> createRepeated() => $pb.PbList<BadRequest_FieldViolation>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -467,7 +430,7 @@ class BadRequest_FieldViolation extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get field_1 => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set field_1($core.String v) { $_setString(0, v); }
|
||||
set field_1($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasField_1() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -477,7 +440,7 @@ class BadRequest_FieldViolation extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get description => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set description($core.String v) { $_setString(1, v); }
|
||||
set description($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasDescription() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -490,36 +453,32 @@ class BadRequest extends $pb.GeneratedMessage {
|
||||
factory BadRequest({
|
||||
$core.Iterable<BadRequest_FieldViolation>? fieldViolations,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (fieldViolations != null) {
|
||||
$result.fieldViolations.addAll(fieldViolations);
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
BadRequest._();
|
||||
|
||||
factory BadRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory BadRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BadRequest copyWith(void Function(BadRequest) updates) => super.copyWith((message) => updates(message as BadRequest)) as BadRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BadRequest create() => BadRequest._();
|
||||
@$core.override
|
||||
BadRequest createEmptyInstance() => create();
|
||||
static $pb.PbList<BadRequest> createRepeated() => $pb.PbList<BadRequest>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -538,18 +497,16 @@ class RequestInfo extends $pb.GeneratedMessage {
|
||||
$core.String? requestId,
|
||||
$core.String? servingData,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (requestId != null) {
|
||||
$result.requestId = requestId;
|
||||
}
|
||||
if (servingData != null) {
|
||||
$result.servingData = servingData;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
RequestInfo._();
|
||||
|
||||
factory RequestInfo.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory RequestInfo.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RequestInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'requestId')
|
||||
@@ -557,21 +514,17 @@ class RequestInfo extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
RequestInfo copyWith(void Function(RequestInfo) updates) => super.copyWith((message) => updates(message as RequestInfo)) as RequestInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static RequestInfo create() => RequestInfo._();
|
||||
@$core.override
|
||||
RequestInfo createEmptyInstance() => create();
|
||||
static $pb.PbList<RequestInfo> createRepeated() => $pb.PbList<RequestInfo>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -583,7 +536,7 @@ class RequestInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get requestId => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set requestId($core.String v) { $_setString(0, v); }
|
||||
set requestId($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasRequestId() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -594,7 +547,7 @@ class RequestInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get servingData => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set servingData($core.String v) { $_setString(1, v); }
|
||||
set servingData($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasServingData() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -609,24 +562,18 @@ class ResourceInfo extends $pb.GeneratedMessage {
|
||||
$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;
|
||||
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);
|
||||
|
||||
ResourceInfo._();
|
||||
|
||||
factory ResourceInfo.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory ResourceInfo.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ResourceInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'resourceType')
|
||||
@@ -636,21 +583,17 @@ class ResourceInfo extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ResourceInfo copyWith(void Function(ResourceInfo) updates) => super.copyWith((message) => updates(message as ResourceInfo)) as ResourceInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ResourceInfo create() => ResourceInfo._();
|
||||
@$core.override
|
||||
ResourceInfo createEmptyInstance() => create();
|
||||
static $pb.PbList<ResourceInfo> createRepeated() => $pb.PbList<ResourceInfo>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -663,7 +606,7 @@ class ResourceInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get resourceType => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set resourceType($core.String v) { $_setString(0, v); }
|
||||
set resourceType($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasResourceType() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -675,7 +618,7 @@ class ResourceInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get resourceName => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set resourceName($core.String v) { $_setString(1, v); }
|
||||
set resourceName($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResourceName() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -687,7 +630,7 @@ class ResourceInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get owner => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set owner($core.String v) { $_setString(2, v); }
|
||||
set owner($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasOwner() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
@@ -699,7 +642,7 @@ class ResourceInfo extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get description => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set description($core.String v) { $_setString(3, v); }
|
||||
set description($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasDescription() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
@@ -712,18 +655,16 @@ class Help_Link extends $pb.GeneratedMessage {
|
||||
$core.String? description,
|
||||
$core.String? url,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (description != null) {
|
||||
$result.description = description;
|
||||
}
|
||||
if (url != null) {
|
||||
$result.url = url;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
Help_Link._();
|
||||
|
||||
factory Help_Link.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Help_Link.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Help.Link', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'description')
|
||||
@@ -731,21 +672,17 @@ class Help_Link extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Help_Link copyWith(void Function(Help_Link) updates) => super.copyWith((message) => updates(message as Help_Link)) as Help_Link;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Help_Link create() => Help_Link._();
|
||||
@$core.override
|
||||
Help_Link createEmptyInstance() => create();
|
||||
static $pb.PbList<Help_Link> createRepeated() => $pb.PbList<Help_Link>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -756,7 +693,7 @@ class Help_Link extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get description => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set description($core.String v) { $_setString(0, v); }
|
||||
set description($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasDescription() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -766,52 +703,48 @@ class Help_Link extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get url => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set url($core.String v) { $_setString(1, v); }
|
||||
set url($core.String value) => $_setString(1, value);
|
||||
@$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.
|
||||
/// 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.
|
||||
/// 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;
|
||||
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);
|
||||
|
||||
Help._();
|
||||
|
||||
factory Help.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Help.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Help copyWith(void Function(Help) updates) => super.copyWith((message) => updates(message as Help)) as Help;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Help create() => Help._();
|
||||
@$core.override
|
||||
Help createEmptyInstance() => create();
|
||||
static $pb.PbList<Help> createRepeated() => $pb.PbList<Help>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -830,18 +763,16 @@ class LocalizedMessage extends $pb.GeneratedMessage {
|
||||
$core.String? locale,
|
||||
$core.String? message,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (locale != null) {
|
||||
$result.locale = locale;
|
||||
}
|
||||
if (message != null) {
|
||||
$result.message = message;
|
||||
}
|
||||
return $result;
|
||||
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);
|
||||
|
||||
LocalizedMessage._();
|
||||
|
||||
factory LocalizedMessage.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory LocalizedMessage.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LocalizedMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.rpc'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'locale')
|
||||
@@ -849,21 +780,17 @@ class LocalizedMessage extends $pb.GeneratedMessage {
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
LocalizedMessage copyWith(void Function(LocalizedMessage) updates) => super.copyWith((message) => updates(message as LocalizedMessage)) as LocalizedMessage;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static LocalizedMessage create() => LocalizedMessage._();
|
||||
@$core.override
|
||||
LocalizedMessage createEmptyInstance() => create();
|
||||
static $pb.PbList<LocalizedMessage> createRepeated() => $pb.PbList<LocalizedMessage>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -876,7 +803,7 @@ class LocalizedMessage extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get locale => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set locale($core.String v) { $_setString(0, v); }
|
||||
set locale($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasLocale() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -886,7 +813,7 @@ class LocalizedMessage extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get message => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set message($core.String v) { $_setString(1, v); }
|
||||
set message($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasMessage() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -894,5 +821,5 @@ class LocalizedMessage extends $pb.GeneratedMessage {
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/rpc/error_details.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
@@ -5,114 +5,107 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../protobuf/any.pb.dart' as $18;
|
||||
import '../protobuf/any.pb.dart' as $16;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
/// 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:
|
||||
/// 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
|
||||
/// - Simple to use and understand for most users
|
||||
/// - Flexible enough to meet unexpected needs
|
||||
///
|
||||
/// # Overview
|
||||
/// # 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.
|
||||
/// 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
|
||||
/// # 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.
|
||||
/// 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
|
||||
/// # 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.
|
||||
/// 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:
|
||||
/// 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.
|
||||
/// - 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.
|
||||
/// - 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.
|
||||
/// - 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.
|
||||
/// - 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.
|
||||
/// - 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<$18.Any>? details,
|
||||
$core.Iterable<$16.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;
|
||||
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);
|
||||
|
||||
Status._();
|
||||
|
||||
factory Status.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory Status.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
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<$18.Any>(3, _omitFieldNames ? '' : 'details', $pb.PbFieldType.PM, subBuilder: $18.Any.create)
|
||||
..pc<$16.Any>(3, _omitFieldNames ? '' : 'details', $pb.PbFieldType.PM, subBuilder: $16.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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
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')
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Status copyWith(void Function(Status) updates) => super.copyWith((message) => updates(message as Status)) as Status;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Status create() => Status._();
|
||||
@$core.override
|
||||
Status createEmptyInstance() => create();
|
||||
static $pb.PbList<Status> createRepeated() => $pb.PbList<Status>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
@@ -123,7 +116,7 @@ class Status extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get code => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set code($core.int v) { $_setSignedInt32(0, v); }
|
||||
set code($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasCode() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
@@ -135,7 +128,7 @@ class Status extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get message => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set message($core.String v) { $_setString(1, v); }
|
||||
set message($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasMessage() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
@@ -144,9 +137,9 @@ class Status extends $pb.GeneratedMessage {
|
||||
/// A list of messages that carry the error details. There is a common set of
|
||||
/// message types for APIs to use.
|
||||
@$pb.TagNumber(3)
|
||||
$pb.PbList<$18.Any> get details => $_getList(2);
|
||||
$pb.PbList<$16.Any> get details => $_getList(2);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: google/rpc/status.proto
|
||||
//
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
Reference in New Issue
Block a user