Skip to content

Commit

Permalink
Regenerate RPC protobuf code
Browse files Browse the repository at this point in the history
  • Loading branch information
fum36205 committed Feb 8, 2024
1 parent 7a15607 commit 5a7dc5f
Show file tree
Hide file tree
Showing 44 changed files with 5,872 additions and 3,781 deletions.
90 changes: 90 additions & 0 deletions lib/generated/google/firestore/v1/aggregation_result.pb.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
//
// Generated code. Do not modify.
// source: google/firestore/v1/aggregation_result.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

import 'document.pb.dart' as $0;

/// The result of a single bucket from a Firestore aggregation query.
///
/// The keys of `aggregate_fields` are the same for all results in an aggregation
/// query, unlike document queries which can have different fields present for
/// each result.
class AggregationResult extends $pb.GeneratedMessage {
factory AggregationResult({
$core.Map<$core.String, $0.Value>? aggregateFields,
}) {
final $result = create();
if (aggregateFields != null) {
$result.aggregateFields.addAll(aggregateFields);
}
return $result;
}
AggregationResult._() : super();
factory AggregationResult.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory AggregationResult.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'AggregationResult',
package:
const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'),
createEmptyInstance: create)
..m<$core.String, $0.Value>(2, _omitFieldNames ? '' : 'aggregateFields',
entryClassName: 'AggregationResult.AggregateFieldsEntry',
keyFieldType: $pb.PbFieldType.OS,
valueFieldType: $pb.PbFieldType.OM,
valueCreator: $0.Value.create,
valueDefaultOrMaker: $0.Value.getDefault,
packageName: const $pb.PackageName('google.firestore.v1'))
..hasRequiredFields = false;

@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
AggregationResult clone() => AggregationResult()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
AggregationResult copyWith(void Function(AggregationResult) updates) =>
super.copyWith((message) => updates(message as AggregationResult))
as AggregationResult;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static AggregationResult create() => AggregationResult._();
AggregationResult createEmptyInstance() => create();
static $pb.PbList<AggregationResult> createRepeated() =>
$pb.PbList<AggregationResult>();
@$core.pragma('dart2js:noInline')
static AggregationResult getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<AggregationResult>(create);
static AggregationResult? _defaultInstance;

/// The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
///
/// The key is the
/// [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
/// assigned to the aggregation function on input and the size of this map
/// equals the number of aggregation functions in the query.
@$pb.TagNumber(2)
$core.Map<$core.String, $0.Value> get aggregateFields => $_getMap(0);
}

const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');
10 changes: 10 additions & 0 deletions lib/generated/google/firestore/v1/aggregation_result.pbenum.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Generated code. Do not modify.
// source: google/firestore/v1/aggregation_result.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
54 changes: 54 additions & 0 deletions lib/generated/google/firestore/v1/aggregation_result.pbjson.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//
// Generated code. Do not modify.
// source: google/firestore/v1/aggregation_result.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;

@$core.Deprecated('Use aggregationResultDescriptor instead')
const AggregationResult$json = {
'1': 'AggregationResult',
'2': [
{
'1': 'aggregate_fields',
'3': 2,
'4': 3,
'5': 11,
'6': '.google.firestore.v1.AggregationResult.AggregateFieldsEntry',
'10': 'aggregateFields'
},
],
'3': [AggregationResult_AggregateFieldsEntry$json],
};

@$core.Deprecated('Use aggregationResultDescriptor instead')
const AggregationResult_AggregateFieldsEntry$json = {
'1': 'AggregateFieldsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{
'1': 'value',
'3': 2,
'4': 1,
'5': 11,
'6': '.google.firestore.v1.Value',
'10': 'value'
},
],
'7': {'7': true},
};

/// Descriptor for `AggregationResult`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List aggregationResultDescriptor = $convert.base64Decode(
'ChFBZ2dyZWdhdGlvblJlc3VsdBJmChBhZ2dyZWdhdGVfZmllbGRzGAIgAygLMjsuZ29vZ2xlLm'
'ZpcmVzdG9yZS52MS5BZ2dyZWdhdGlvblJlc3VsdC5BZ2dyZWdhdGVGaWVsZHNFbnRyeVIPYWdn'
'cmVnYXRlRmllbGRzGl4KFEFnZ3JlZ2F0ZUZpZWxkc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5Ej'
'AKBXZhbHVlGAIgASgLMhouZ29vZ2xlLmZpcmVzdG9yZS52MS5WYWx1ZVIFdmFsdWU6AjgB');
213 changes: 213 additions & 0 deletions lib/generated/google/firestore/v1/bloom_filter.pb.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
//
// Generated code. Do not modify.
// source: google/firestore/v1/bloom_filter.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

/// A sequence of bits, encoded in a byte array.
///
/// Each byte in the `bitmap` byte array stores 8 bits of the sequence. The only
/// exception is the last byte, which may store 8 _or fewer_ bits. The `padding`
/// defines the number of bits of the last byte to be ignored as "padding". The
/// values of these "padding" bits are unspecified and must be ignored.
///
/// To retrieve the first bit, bit 0, calculate: `(bitmap[0] & 0x01) != 0`.
/// To retrieve the second bit, bit 1, calculate: `(bitmap[0] & 0x02) != 0`.
/// To retrieve the third bit, bit 2, calculate: `(bitmap[0] & 0x04) != 0`.
/// To retrieve the fourth bit, bit 3, calculate: `(bitmap[0] & 0x08) != 0`.
/// To retrieve bit n, calculate: `(bitmap[n / 8] & (0x01 << (n % 8))) != 0`.
///
/// The "size" of a `BitSequence` (the number of bits it contains) is calculated
/// by this formula: `(bitmap.length * 8) - padding`.
class BitSequence extends $pb.GeneratedMessage {
factory BitSequence({
$core.List<$core.int>? bitmap,
$core.int? padding,
}) {
final $result = create();
if (bitmap != null) {
$result.bitmap = bitmap;
}
if (padding != null) {
$result.padding = padding;
}
return $result;
}
BitSequence._() : super();
factory BitSequence.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory BitSequence.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'BitSequence',
package:
const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'),
createEmptyInstance: create)
..a<$core.List<$core.int>>(
1, _omitFieldNames ? '' : 'bitmap', $pb.PbFieldType.OY)
..a<$core.int>(2, _omitFieldNames ? '' : 'padding', $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')
BitSequence clone() => BitSequence()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BitSequence copyWith(void Function(BitSequence) updates) =>
super.copyWith((message) => updates(message as BitSequence))
as BitSequence;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static BitSequence create() => BitSequence._();
BitSequence createEmptyInstance() => create();
static $pb.PbList<BitSequence> createRepeated() => $pb.PbList<BitSequence>();
@$core.pragma('dart2js:noInline')
static BitSequence getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<BitSequence>(create);
static BitSequence? _defaultInstance;

/// The bytes that encode the bit sequence.
/// May have a length of zero.
@$pb.TagNumber(1)
$core.List<$core.int> get bitmap => $_getN(0);
@$pb.TagNumber(1)
set bitmap($core.List<$core.int> v) {
$_setBytes(0, v);
}

@$pb.TagNumber(1)
$core.bool hasBitmap() => $_has(0);
@$pb.TagNumber(1)
void clearBitmap() => clearField(1);

/// The number of bits of the last byte in `bitmap` to ignore as "padding".
/// If the length of `bitmap` is zero, then this value must be `0`.
/// Otherwise, this value must be between 0 and 7, inclusive.
@$pb.TagNumber(2)
$core.int get padding => $_getIZ(1);
@$pb.TagNumber(2)
set padding($core.int v) {
$_setSignedInt32(1, v);
}

@$pb.TagNumber(2)
$core.bool hasPadding() => $_has(1);
@$pb.TagNumber(2)
void clearPadding() => clearField(2);
}

/// A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter).
///
/// The bloom filter hashes the entries with MD5 and treats the resulting 128-bit
/// hash as 2 distinct 64-bit hash values, interpreted as unsigned integers
/// using 2's complement encoding.
///
/// These two hash values, named `h1` and `h2`, are then used to compute the
/// `hash_count` hash values using the formula, starting at `i=0`:
///
/// h(i) = h1 + (i * h2)
///
/// These resulting values are then taken modulo the number of bits in the bloom
/// filter to get the bits of the bloom filter to test for the given entry.
class BloomFilter extends $pb.GeneratedMessage {
factory BloomFilter({
BitSequence? bits,
$core.int? hashCount,
}) {
final $result = create();
if (bits != null) {
$result.bits = bits;
}
if (hashCount != null) {
$result.hashCount = hashCount;
}
return $result;
}
BloomFilter._() : super();
factory BloomFilter.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory BloomFilter.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'BloomFilter',
package:
const $pb.PackageName(_omitMessageNames ? '' : 'google.firestore.v1'),
createEmptyInstance: create)
..aOM<BitSequence>(1, _omitFieldNames ? '' : 'bits',
subBuilder: BitSequence.create)
..a<$core.int>(2, _omitFieldNames ? '' : 'hashCount', $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')
BloomFilter clone() => BloomFilter()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
BloomFilter copyWith(void Function(BloomFilter) updates) =>
super.copyWith((message) => updates(message as BloomFilter))
as BloomFilter;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static BloomFilter create() => BloomFilter._();
BloomFilter createEmptyInstance() => create();
static $pb.PbList<BloomFilter> createRepeated() => $pb.PbList<BloomFilter>();
@$core.pragma('dart2js:noInline')
static BloomFilter getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<BloomFilter>(create);
static BloomFilter? _defaultInstance;

/// The bloom filter data.
@$pb.TagNumber(1)
BitSequence get bits => $_getN(0);
@$pb.TagNumber(1)
set bits(BitSequence v) {
setField(1, v);
}

@$pb.TagNumber(1)
$core.bool hasBits() => $_has(0);
@$pb.TagNumber(1)
void clearBits() => clearField(1);
@$pb.TagNumber(1)
BitSequence ensureBits() => $_ensure(0);

/// The number of hashes used by the algorithm.
@$pb.TagNumber(2)
$core.int get hashCount => $_getIZ(1);
@$pb.TagNumber(2)
set hashCount($core.int v) {
$_setSignedInt32(1, v);
}

@$pb.TagNumber(2)
$core.bool hasHashCount() => $_has(1);
@$pb.TagNumber(2)
void clearHashCount() => clearField(2);
}

const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');
10 changes: 10 additions & 0 deletions lib/generated/google/firestore/v1/bloom_filter.pbenum.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Generated code. Do not modify.
// source: google/firestore/v1/bloom_filter.proto
//
// @dart = 2.12

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
Loading

0 comments on commit 5a7dc5f

Please sign in to comment.