Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Update Protobuf dependency #447

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 34 additions & 17 deletions angular_components/lib/material_datepicker/proto/date.pb.dart
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,61 +1,78 @@
///
// Generated code. Do not modify.
// source: date.proto
///
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name
//
// @dart = 2.3
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type

import 'dart:core' as $core
show bool, Deprecated, double, int, List, Map, override, String;
import 'dart:core' as $core;

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

class Date extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Date',
package: const $pb.PackageName(
'angular_components.lib.material_datepicker.proto'))
'angular_components.lib.material_datepicker.proto'),
createEmptyInstance: create)
..a<$core.int>(1, 'year', $pb.PbFieldType.O3)
..a<$core.int>(2, 'month', $pb.PbFieldType.O3)
..a<$core.int>(3, 'day', $pb.PbFieldType.O3)
..hasRequiredFields = false;

Date() : super();
Date.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
: super.fromBuffer(i, r);
Date.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
: super.fromJson(i, r);
Date._() : super();
factory Date() => create();
factory Date.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory Date.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
Date clone() => Date()..mergeFromMessage(this);
Date copyWith(void Function(Date) updates) =>
super.copyWith((message) => updates(message as Date));
$pb.BuilderInfo get info_ => _i;
static Date create() => Date();
@$core.pragma('dart2js:noInline')
static Date create() => Date._();
Date createEmptyInstance() => create();
static $pb.PbList<Date> createRepeated() => $pb.PbList<Date>();
static Date getDefault() => _defaultInstance ??= create()..freeze();
@$core.pragma('dart2js:noInline')
static Date getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Date>(create);
static Date _defaultInstance;

$core.int get year => $_get(0, 0);
@$pb.TagNumber(1)
$core.int get year => $_getIZ(0);
@$pb.TagNumber(1)
set year($core.int v) {
$_setSignedInt32(0, v);
}

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

$core.int get month => $_get(1, 0);
@$pb.TagNumber(2)
$core.int get month => $_getIZ(1);
@$pb.TagNumber(2)
set month($core.int v) {
$_setSignedInt32(1, v);
}

@$pb.TagNumber(2)
$core.bool hasMonth() => $_has(1);
@$pb.TagNumber(2)
void clearMonth() => clearField(2);

$core.int get day => $_get(2, 0);
@$pb.TagNumber(3)
$core.int get day => $_getIZ(2);
@$pb.TagNumber(3)
set day($core.int v) {
$_setSignedInt32(2, v);
}

@$pb.TagNumber(3)
$core.bool hasDay() => $_has(2);
@$pb.TagNumber(3)
void clearDay() => clearField(3);
}
154 changes: 111 additions & 43 deletions angular_components/lib/material_datepicker/proto/date_range.pb.dart
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
///
// Generated code. Do not modify.
// source: date_range.proto
///
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name
//
// @dart = 2.3
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type

import 'dart:core' as $core
show bool, Deprecated, double, int, List, Map, override, String;
import 'dart:core' as $core;

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

Expand Down Expand Up @@ -42,9 +42,10 @@ class DatepickerDateRange extends $pb.GeneratedMessage {
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo('DatepickerDateRange',
package: const $pb.PackageName(
'angular_components.lib.material_datepicker.proto'))
..a<DateRange>(1, 'dateRange', $pb.PbFieldType.OM, DateRange.getDefault,
DateRange.create)
'angular_components.lib.material_datepicker.proto'),
createEmptyInstance: create)
..oo(0, [2, 3, 4, 5, 6, 7, 8, 9, 10, 12])
..aOM<DateRange>(1, 'dateRange', subBuilder: DateRange.create)
..a<$core.int>(2, 'daysAgo', $pb.PbFieldType.O3)
..a<$core.int>(3, 'weeksAgo', $pb.PbFieldType.O3)
..a<$core.int>(4, 'monthsAgo', $pb.PbFieldType.O3)
Expand All @@ -56,169 +57,236 @@ class DatepickerDateRange extends $pb.GeneratedMessage {
..a<$core.int>(10, 'quartersAgo', $pb.PbFieldType.O3)
..a<$core.int>(11, 'startWeekday', $pb.PbFieldType.O3)
..a<$core.int>(12, 'nextNDaysFromToday', $pb.PbFieldType.O3)
..oo(0, [2, 3, 4, 5, 6, 7, 8, 9, 10, 12])
..hasRequiredFields = false;

DatepickerDateRange() : super();
DatepickerDateRange.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
: super.fromBuffer(i, r);
DatepickerDateRange.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
: super.fromJson(i, r);
DatepickerDateRange._() : super();
factory DatepickerDateRange() => create();
factory DatepickerDateRange.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory DatepickerDateRange.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
DatepickerDateRange clone() => DatepickerDateRange()..mergeFromMessage(this);
DatepickerDateRange copyWith(void Function(DatepickerDateRange) updates) =>
super.copyWith((message) => updates(message as DatepickerDateRange));
$pb.BuilderInfo get info_ => _i;
static DatepickerDateRange create() => DatepickerDateRange();
@$core.pragma('dart2js:noInline')
static DatepickerDateRange create() => DatepickerDateRange._();
DatepickerDateRange createEmptyInstance() => create();
static $pb.PbList<DatepickerDateRange> createRepeated() =>
$pb.PbList<DatepickerDateRange>();
static DatepickerDateRange getDefault() =>
_defaultInstance ??= create()..freeze();
@$core.pragma('dart2js:noInline')
static DatepickerDateRange getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<DatepickerDateRange>(create);
static DatepickerDateRange _defaultInstance;

DatepickerDateRange_RelativePreset whichRelativePreset() =>
_DatepickerDateRange_RelativePresetByTag[$_whichOneof(0)];
void clearRelativePreset() => clearField($_whichOneof(0));

@$pb.TagNumber(1)
DateRange get dateRange => $_getN(0);
@$pb.TagNumber(1)
set dateRange(DateRange v) {
setField(1, v);
}

@$pb.TagNumber(1)
$core.bool hasDateRange() => $_has(0);
@$pb.TagNumber(1)
void clearDateRange() => clearField(1);
@$pb.TagNumber(1)
DateRange ensureDateRange() => $_ensure(0);

$core.int get daysAgo => $_get(1, 0);
@$pb.TagNumber(2)
$core.int get daysAgo => $_getIZ(1);
@$pb.TagNumber(2)
set daysAgo($core.int v) {
$_setSignedInt32(1, v);
}

@$pb.TagNumber(2)
$core.bool hasDaysAgo() => $_has(1);
@$pb.TagNumber(2)
void clearDaysAgo() => clearField(2);

$core.int get weeksAgo => $_get(2, 0);
@$pb.TagNumber(3)
$core.int get weeksAgo => $_getIZ(2);
@$pb.TagNumber(3)
set weeksAgo($core.int v) {
$_setSignedInt32(2, v);
}

@$pb.TagNumber(3)
$core.bool hasWeeksAgo() => $_has(2);
@$pb.TagNumber(3)
void clearWeeksAgo() => clearField(3);

$core.int get monthsAgo => $_get(3, 0);
@$pb.TagNumber(4)
$core.int get monthsAgo => $_getIZ(3);
@$pb.TagNumber(4)
set monthsAgo($core.int v) {
$_setSignedInt32(3, v);
}

@$pb.TagNumber(4)
$core.bool hasMonthsAgo() => $_has(3);
@$pb.TagNumber(4)
void clearMonthsAgo() => clearField(4);

$core.int get yearsAgo => $_get(4, 0);
@$pb.TagNumber(5)
$core.int get yearsAgo => $_getIZ(4);
@$pb.TagNumber(5)
set yearsAgo($core.int v) {
$_setSignedInt32(4, v);
}

@$pb.TagNumber(5)
$core.bool hasYearsAgo() => $_has(4);
@$pb.TagNumber(5)
void clearYearsAgo() => clearField(5);

$core.int get lastNDays => $_get(5, 0);
@$pb.TagNumber(6)
$core.int get lastNDays => $_getIZ(5);
@$pb.TagNumber(6)
set lastNDays($core.int v) {
$_setSignedInt32(5, v);
}

@$pb.TagNumber(6)
$core.bool hasLastNDays() => $_has(5);
@$pb.TagNumber(6)
void clearLastNDays() => clearField(6);

$core.bool get allTimeRange => $_get(6, false);
@$pb.TagNumber(7)
$core.bool get allTimeRange => $_getBF(6);
@$pb.TagNumber(7)
set allTimeRange($core.bool v) {
$_setBool(6, v);
}

@$pb.TagNumber(7)
$core.bool hasAllTimeRange() => $_has(6);
@$pb.TagNumber(7)
void clearAllTimeRange() => clearField(7);

$core.int get broadcastMonthsAgo => $_get(7, 0);
@$pb.TagNumber(8)
$core.int get broadcastMonthsAgo => $_getIZ(7);
@$pb.TagNumber(8)
set broadcastMonthsAgo($core.int v) {
$_setSignedInt32(7, v);
}

@$pb.TagNumber(8)
$core.bool hasBroadcastMonthsAgo() => $_has(7);
@$pb.TagNumber(8)
void clearBroadcastMonthsAgo() => clearField(8);

$core.int get lastNDaysToToday => $_get(8, 0);
@$pb.TagNumber(9)
$core.int get lastNDaysToToday => $_getIZ(8);
@$pb.TagNumber(9)
set lastNDaysToToday($core.int v) {
$_setSignedInt32(8, v);
}

@$pb.TagNumber(9)
$core.bool hasLastNDaysToToday() => $_has(8);
@$pb.TagNumber(9)
void clearLastNDaysToToday() => clearField(9);

$core.int get quartersAgo => $_get(9, 0);
@$pb.TagNumber(10)
$core.int get quartersAgo => $_getIZ(9);
@$pb.TagNumber(10)
set quartersAgo($core.int v) {
$_setSignedInt32(9, v);
}

@$pb.TagNumber(10)
$core.bool hasQuartersAgo() => $_has(9);
@$pb.TagNumber(10)
void clearQuartersAgo() => clearField(10);

$core.int get startWeekday => $_get(10, 0);
@$pb.TagNumber(11)
$core.int get startWeekday => $_getIZ(10);
@$pb.TagNumber(11)
set startWeekday($core.int v) {
$_setSignedInt32(10, v);
}

@$pb.TagNumber(11)
$core.bool hasStartWeekday() => $_has(10);
@$pb.TagNumber(11)
void clearStartWeekday() => clearField(11);

$core.int get nextNDaysFromToday => $_get(11, 0);
@$pb.TagNumber(12)
$core.int get nextNDaysFromToday => $_getIZ(11);
@$pb.TagNumber(12)
set nextNDaysFromToday($core.int v) {
$_setSignedInt32(11, v);
}

@$pb.TagNumber(12)
$core.bool hasNextNDaysFromToday() => $_has(11);
@$pb.TagNumber(12)
void clearNextNDaysFromToday() => clearField(12);
}

class DateRange extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo('DateRange',
package: const $pb.PackageName(
'angular_components.lib.material_datepicker.proto'))
..a<$0.Date>(
1, 'start', $pb.PbFieldType.OM, $0.Date.getDefault, $0.Date.create)
..a<$0.Date>(
2, 'end', $pb.PbFieldType.OM, $0.Date.getDefault, $0.Date.create)
'angular_components.lib.material_datepicker.proto'),
createEmptyInstance: create)
..aOM<$0.Date>(1, 'start', subBuilder: $0.Date.create)
..aOM<$0.Date>(2, 'end', subBuilder: $0.Date.create)
..hasRequiredFields = false;

DateRange() : super();
DateRange.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
: super.fromBuffer(i, r);
DateRange.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
: super.fromJson(i, r);
DateRange._() : super();
factory DateRange() => create();
factory DateRange.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory DateRange.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
DateRange clone() => DateRange()..mergeFromMessage(this);
DateRange copyWith(void Function(DateRange) updates) =>
super.copyWith((message) => updates(message as DateRange));
$pb.BuilderInfo get info_ => _i;
static DateRange create() => DateRange();
@$core.pragma('dart2js:noInline')
static DateRange create() => DateRange._();
DateRange createEmptyInstance() => create();
static $pb.PbList<DateRange> createRepeated() => $pb.PbList<DateRange>();
static DateRange getDefault() => _defaultInstance ??= create()..freeze();
@$core.pragma('dart2js:noInline')
static DateRange getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DateRange>(create);
static DateRange _defaultInstance;

@$pb.TagNumber(1)
$0.Date get start => $_getN(0);
@$pb.TagNumber(1)
set start($0.Date v) {
setField(1, v);
}

@$pb.TagNumber(1)
$core.bool hasStart() => $_has(0);
@$pb.TagNumber(1)
void clearStart() => clearField(1);
@$pb.TagNumber(1)
$0.Date ensureStart() => $_ensure(0);

@$pb.TagNumber(2)
$0.Date get end => $_getN(1);
@$pb.TagNumber(2)
set end($0.Date v) {
setField(2, v);
}

@$pb.TagNumber(2)
$core.bool hasEnd() => $_has(1);
@$pb.TagNumber(2)
void clearEnd() => clearField(2);
@$pb.TagNumber(2)
$0.Date ensureEnd() => $_ensure(1);
}
Loading