243 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			243 lines
		
	
	
		
			8.3 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from ads.proto.
 | |
| 
 | |
| // @dart = 3.3
 | |
| 
 | |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references
 | |
| // 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:fixnum/fixnum.dart' as $fixnum;
 | |
| import 'package:protobuf/protobuf.dart' as $pb;
 | |
| 
 | |
| export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
 | |
| 
 | |
| class ByPosRequest extends $pb.GeneratedMessage {
 | |
|   factory ByPosRequest({
 | |
|     $core.String? key,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (key != null) result.key = key;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   ByPosRequest._();
 | |
| 
 | |
|   factory ByPosRequest.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory ByPosRequest.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'ByPosRequest',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'ads'),
 | |
|       createEmptyInstance: create)
 | |
|     ..aOS(1, _omitFieldNames ? '' : 'key')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ByPosRequest clone() => ByPosRequest()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ByPosRequest copyWith(void Function(ByPosRequest) updates) =>
 | |
|       super.copyWith((message) => updates(message as ByPosRequest))
 | |
|           as ByPosRequest;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ByPosRequest create() => ByPosRequest._();
 | |
|   @$core.override
 | |
|   ByPosRequest createEmptyInstance() => create();
 | |
|   static $pb.PbList<ByPosRequest> createRepeated() =>
 | |
|       $pb.PbList<ByPosRequest>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ByPosRequest getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<ByPosRequest>(create);
 | |
|   static ByPosRequest? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.String get key => $_getSZ(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set key($core.String value) => $_setString(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasKey() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearKey() => $_clearField(1);
 | |
| }
 | |
| 
 | |
| class ByPosReply extends $pb.GeneratedMessage {
 | |
|   factory ByPosReply({
 | |
|     $core.Iterable<AdsItem>? data,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (data != null) result.data.addAll(data);
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   ByPosReply._();
 | |
| 
 | |
|   factory ByPosReply.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory ByPosReply.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'ByPosReply',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'ads'),
 | |
|       createEmptyInstance: create)
 | |
|     ..pc<AdsItem>(1, _omitFieldNames ? '' : 'data', $pb.PbFieldType.PM,
 | |
|         subBuilder: AdsItem.create)
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ByPosReply clone() => ByPosReply()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ByPosReply copyWith(void Function(ByPosReply) updates) =>
 | |
|       super.copyWith((message) => updates(message as ByPosReply)) as ByPosReply;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ByPosReply create() => ByPosReply._();
 | |
|   @$core.override
 | |
|   ByPosReply createEmptyInstance() => create();
 | |
|   static $pb.PbList<ByPosReply> createRepeated() => $pb.PbList<ByPosReply>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ByPosReply getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<ByPosReply>(create);
 | |
|   static ByPosReply? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $pb.PbList<AdsItem> get data => $_getList(0);
 | |
| }
 | |
| 
 | |
| class AdsItem extends $pb.GeneratedMessage {
 | |
|   factory AdsItem({
 | |
|     $fixnum.Int64? id,
 | |
|     $core.String? title,
 | |
|     $core.String? content,
 | |
|     $core.int? type,
 | |
|     $core.String? toUrl,
 | |
|     $core.String? created,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (id != null) result.id = id;
 | |
|     if (title != null) result.title = title;
 | |
|     if (content != null) result.content = content;
 | |
|     if (type != null) result.type = type;
 | |
|     if (toUrl != null) result.toUrl = toUrl;
 | |
|     if (created != null) result.created = created;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   AdsItem._();
 | |
| 
 | |
|   factory AdsItem.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory AdsItem.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'AdsItem',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'ads'),
 | |
|       createEmptyInstance: create)
 | |
|     ..aInt64(1, _omitFieldNames ? '' : 'id')
 | |
|     ..aOS(2, _omitFieldNames ? '' : 'title')
 | |
|     ..aOS(3, _omitFieldNames ? '' : 'content')
 | |
|     ..a<$core.int>(4, _omitFieldNames ? '' : 'type', $pb.PbFieldType.O3)
 | |
|     ..aOS(5, _omitFieldNames ? '' : 'toUrl', protoName: 'toUrl')
 | |
|     ..aOS(6, _omitFieldNames ? '' : 'created')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   AdsItem clone() => AdsItem()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   AdsItem copyWith(void Function(AdsItem) updates) =>
 | |
|       super.copyWith((message) => updates(message as AdsItem)) as AdsItem;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static AdsItem create() => AdsItem._();
 | |
|   @$core.override
 | |
|   AdsItem createEmptyInstance() => create();
 | |
|   static $pb.PbList<AdsItem> createRepeated() => $pb.PbList<AdsItem>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static AdsItem getDefault() =>
 | |
|       _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AdsItem>(create);
 | |
|   static AdsItem? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get id => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set id($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.String get title => $_getSZ(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set title($core.String value) => $_setString(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasTitle() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearTitle() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.String get content => $_getSZ(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set content($core.String value) => $_setString(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasContent() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearContent() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.int get type => $_getIZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set type($core.int value) => $_setSignedInt32(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasType() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearType() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.String get toUrl => $_getSZ(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set toUrl($core.String value) => $_setString(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasToUrl() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearToUrl() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.String get created => $_getSZ(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set created($core.String value) => $_setString(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasCreated() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearCreated() => $_clearField(6);
 | |
| }
 | |
| 
 | |
| const $core.bool _omitFieldNames =
 | |
|     $core.bool.fromEnvironment('protobuf.omit_field_names');
 | |
| const $core.bool _omitMessageNames =
 | |
|     $core.bool.fromEnvironment('protobuf.omit_message_names');
 |