fix:增加protobuf提供的实体类转换
This commit is contained in:
parent
860c0e3150
commit
acc16a7889
@ -5,8 +5,6 @@ option go_package = "./spb";
|
||||
// 用于蓝牙透传的数据结构
|
||||
|
||||
message BleReq {
|
||||
// 自增ID,用于匹配请求和响应
|
||||
uint32 ID = 1;
|
||||
// 用唯一的设备名来进行匹配而不是mac地址
|
||||
string bluetoothDeviceName = 2;
|
||||
// 下面是蓝牙结构内容,未加密状态
|
||||
@ -25,8 +23,6 @@ message BleResp {
|
||||
}
|
||||
// 状态
|
||||
StatusE Status = 1;
|
||||
// 自增ID,需要返回请求里面的ID
|
||||
uint32 ID = 2;
|
||||
// 下面是蓝牙结构内容,未加密状态
|
||||
bytes StructData = 4;
|
||||
}
|
||||
|
||||
243
lib/talk/startChart/proto/device_scan.pb.dart
Normal file
243
lib/talk/startChart/proto/device_scan.pb.dart
Normal file
@ -0,0 +1,243 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: device_scan.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class DeviceScanReq extends $pb.GeneratedMessage {
|
||||
factory DeviceScanReq({
|
||||
$core.int? timeout,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (timeout != null) {
|
||||
$result.timeout = timeout;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
DeviceScanReq._() : super();
|
||||
factory DeviceScanReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory DeviceScanReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceScanReq', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
||||
..a<$core.int>(1, _omitFieldNames ? '' : 'Timeout', $pb.PbFieldType.O3, protoName: 'Timeout')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
DeviceScanReq clone() => DeviceScanReq()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
DeviceScanReq copyWith(void Function(DeviceScanReq) updates) => super.copyWith((message) => updates(message as DeviceScanReq)) as DeviceScanReq;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DeviceScanReq create() => DeviceScanReq._();
|
||||
DeviceScanReq createEmptyInstance() => create();
|
||||
static $pb.PbList<DeviceScanReq> createRepeated() => $pb.PbList<DeviceScanReq>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DeviceScanReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeviceScanReq>(create);
|
||||
static DeviceScanReq? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get timeout => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set timeout($core.int v) { $_setSignedInt32(0, v); }
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTimeout() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimeout() => clearField(1);
|
||||
}
|
||||
|
||||
/// 表示蓝牙设备的信息
|
||||
class BluetoothDevice extends $pb.GeneratedMessage {
|
||||
factory BluetoothDevice({
|
||||
$core.String? name,
|
||||
$core.String? address,
|
||||
$core.int? rssi,
|
||||
$core.String? deviceType,
|
||||
$core.Iterable<$core.String>? services,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (name != null) {
|
||||
$result.name = name;
|
||||
}
|
||||
if (address != null) {
|
||||
$result.address = address;
|
||||
}
|
||||
if (rssi != null) {
|
||||
$result.rssi = rssi;
|
||||
}
|
||||
if (deviceType != null) {
|
||||
$result.deviceType = deviceType;
|
||||
}
|
||||
if (services != null) {
|
||||
$result.services.addAll(services);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
BluetoothDevice._() : super();
|
||||
factory BluetoothDevice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory BluetoothDevice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BluetoothDevice', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'Name', protoName: 'Name')
|
||||
..aOS(2, _omitFieldNames ? '' : 'Address', protoName: 'Address')
|
||||
..a<$core.int>(3, _omitFieldNames ? '' : 'Rssi', $pb.PbFieldType.O3, protoName: 'Rssi')
|
||||
..aOS(4, _omitFieldNames ? '' : 'DeviceType', protoName: 'DeviceType')
|
||||
..pPS(5, _omitFieldNames ? '' : 'Services', protoName: 'Services')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
BluetoothDevice clone() => BluetoothDevice()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
BluetoothDevice copyWith(void Function(BluetoothDevice) updates) => super.copyWith((message) => updates(message as BluetoothDevice)) as BluetoothDevice;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BluetoothDevice create() => BluetoothDevice._();
|
||||
BluetoothDevice createEmptyInstance() => create();
|
||||
static $pb.PbList<BluetoothDevice> createRepeated() => $pb.PbList<BluetoothDevice>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BluetoothDevice getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<BluetoothDevice>(create);
|
||||
static BluetoothDevice? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String v) { $_setString(0, v); }
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearName() => clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get address => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set address($core.String v) { $_setString(1, v); }
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasAddress() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearAddress() => clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.int get rssi => $_getIZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set rssi($core.int v) { $_setSignedInt32(2, v); }
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasRssi() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearRssi() => clearField(3);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get deviceType => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set deviceType($core.String v) { $_setString(3, v); }
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasDeviceType() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearDeviceType() => clearField(4);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$core.List<$core.String> get services => $_getList(4);
|
||||
}
|
||||
|
||||
/// 蓝牙扫描的结果响应
|
||||
class DeviceScanResp extends $pb.GeneratedMessage {
|
||||
factory DeviceScanResp({
|
||||
$core.Iterable<BluetoothDevice>? devices,
|
||||
$fixnum.Int64? scanStartTime,
|
||||
$fixnum.Int64? scanEndTime,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (devices != null) {
|
||||
$result.devices.addAll(devices);
|
||||
}
|
||||
if (scanStartTime != null) {
|
||||
$result.scanStartTime = scanStartTime;
|
||||
}
|
||||
if (scanEndTime != null) {
|
||||
$result.scanEndTime = scanEndTime;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
DeviceScanResp._() : super();
|
||||
factory DeviceScanResp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory DeviceScanResp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeviceScanResp', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
||||
..pc<BluetoothDevice>(1, _omitFieldNames ? '' : 'Devices', $pb.PbFieldType.PM, protoName: 'Devices', subBuilder: BluetoothDevice.create)
|
||||
..aInt64(2, _omitFieldNames ? '' : 'ScanStartTime', protoName: 'ScanStartTime')
|
||||
..aInt64(3, _omitFieldNames ? '' : 'ScanEndTime', protoName: 'ScanEndTime')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
DeviceScanResp clone() => DeviceScanResp()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
DeviceScanResp copyWith(void Function(DeviceScanResp) updates) => super.copyWith((message) => updates(message as DeviceScanResp)) as DeviceScanResp;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DeviceScanResp create() => DeviceScanResp._();
|
||||
DeviceScanResp createEmptyInstance() => create();
|
||||
static $pb.PbList<DeviceScanResp> createRepeated() => $pb.PbList<DeviceScanResp>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static DeviceScanResp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeviceScanResp>(create);
|
||||
static DeviceScanResp? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<BluetoothDevice> get devices => $_getList(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$fixnum.Int64 get scanStartTime => $_getI64(1);
|
||||
@$pb.TagNumber(2)
|
||||
set scanStartTime($fixnum.Int64 v) { $_setInt64(1, v); }
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasScanStartTime() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearScanStartTime() => clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$fixnum.Int64 get scanEndTime => $_getI64(2);
|
||||
@$pb.TagNumber(3)
|
||||
set scanEndTime($fixnum.Int64 v) { $_setInt64(2, v); }
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasScanEndTime() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearScanEndTime() => clearField(3);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/talk/startChart/proto/device_scan.pbenum.dart
Normal file
11
lib/talk/startChart/proto/device_scan.pbenum.dart
Normal file
@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: device_scan.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
|
||||
|
||||
61
lib/talk/startChart/proto/device_scan.pbjson.dart
Normal file
61
lib/talk/startChart/proto/device_scan.pbjson.dart
Normal file
@ -0,0 +1,61 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: device_scan.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 deviceScanReqDescriptor instead')
|
||||
const DeviceScanReq$json = {
|
||||
'1': 'DeviceScanReq',
|
||||
'2': [
|
||||
{'1': 'Timeout', '3': 1, '4': 1, '5': 5, '10': 'Timeout'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `DeviceScanReq`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List deviceScanReqDescriptor = $convert.base64Decode(
|
||||
'Cg1EZXZpY2VTY2FuUmVxEhgKB1RpbWVvdXQYASABKAVSB1RpbWVvdXQ=');
|
||||
|
||||
@$core.Deprecated('Use bluetoothDeviceDescriptor instead')
|
||||
const BluetoothDevice$json = {
|
||||
'1': 'BluetoothDevice',
|
||||
'2': [
|
||||
{'1': 'Name', '3': 1, '4': 1, '5': 9, '10': 'Name'},
|
||||
{'1': 'Address', '3': 2, '4': 1, '5': 9, '10': 'Address'},
|
||||
{'1': 'Rssi', '3': 3, '4': 1, '5': 5, '10': 'Rssi'},
|
||||
{'1': 'DeviceType', '3': 4, '4': 1, '5': 9, '10': 'DeviceType'},
|
||||
{'1': 'Services', '3': 5, '4': 3, '5': 9, '10': 'Services'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BluetoothDevice`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List bluetoothDeviceDescriptor = $convert.base64Decode(
|
||||
'Cg9CbHVldG9vdGhEZXZpY2USEgoETmFtZRgBIAEoCVIETmFtZRIYCgdBZGRyZXNzGAIgASgJUg'
|
||||
'dBZGRyZXNzEhIKBFJzc2kYAyABKAVSBFJzc2kSHgoKRGV2aWNlVHlwZRgEIAEoCVIKRGV2aWNl'
|
||||
'VHlwZRIaCghTZXJ2aWNlcxgFIAMoCVIIU2VydmljZXM=');
|
||||
|
||||
@$core.Deprecated('Use deviceScanRespDescriptor instead')
|
||||
const DeviceScanResp$json = {
|
||||
'1': 'DeviceScanResp',
|
||||
'2': [
|
||||
{'1': 'Devices', '3': 1, '4': 3, '5': 11, '6': '.main.BluetoothDevice', '10': 'Devices'},
|
||||
{'1': 'ScanStartTime', '3': 2, '4': 1, '5': 3, '10': 'ScanStartTime'},
|
||||
{'1': 'ScanEndTime', '3': 3, '4': 1, '5': 3, '10': 'ScanEndTime'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `DeviceScanResp`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List deviceScanRespDescriptor = $convert.base64Decode(
|
||||
'Cg5EZXZpY2VTY2FuUmVzcBIvCgdEZXZpY2VzGAEgAygLMhUubWFpbi5CbHVldG9vdGhEZXZpY2'
|
||||
'VSB0RldmljZXMSJAoNU2NhblN0YXJ0VGltZRgCIAEoA1INU2NhblN0YXJ0VGltZRIgCgtTY2Fu'
|
||||
'RW5kVGltZRgDIAEoA1ILU2NhbkVuZFRpbWU=');
|
||||
|
||||
14
lib/talk/startChart/proto/device_scan.pbserver.dart
Normal file
14
lib/talk/startChart/proto/device_scan.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: device_scan.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'device_scan.pb.dart';
|
||||
|
||||
24
lib/talk/startChart/proto/device_scan.proto
Normal file
24
lib/talk/startChart/proto/device_scan.proto
Normal file
@ -0,0 +1,24 @@
|
||||
// 网关附近设备扫描
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb";
|
||||
|
||||
message DeviceScanReq {
|
||||
int32 Timeout = 1; // 扫描超时时间,单位为秒
|
||||
}
|
||||
|
||||
// 表示蓝牙设备的信息
|
||||
message BluetoothDevice {
|
||||
string Name = 1; // 设备名称,例如 "Bluetooth Speaker"
|
||||
string Address = 2; // MAC 地址,格式如 "00:11:22:33:44:55"
|
||||
int32 Rssi = 3; // 信号强度 (RSSI),例如 -45 表示较强信号
|
||||
string DeviceType = 4; // 设备类型,例如 "audio", "keyboard", "mouse"
|
||||
repeated string Services = 5; // 支持的服务 UUID 列表,例如 "0000110b-0000-1000-8000-00805f9b34fb"
|
||||
}
|
||||
|
||||
// 蓝牙扫描的结果响应
|
||||
message DeviceScanResp {
|
||||
repeated BluetoothDevice Devices = 1; // 扫描到的蓝牙设备列表
|
||||
int64 ScanStartTime = 2; // 扫描开始时间,Unix 时间戳(秒)
|
||||
int64 ScanEndTime = 3; // 扫描结束时间,Unix 时间戳(秒)
|
||||
}
|
||||
49
lib/talk/startChart/proto/talk_accept.pb.dart
Normal file
49
lib/talk/startChart/proto/talk_accept.pb.dart
Normal file
@ -0,0 +1,49 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_accept.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class TalkAcceptReq extends $pb.GeneratedMessage {
|
||||
factory TalkAcceptReq() => create();
|
||||
TalkAcceptReq._() : super();
|
||||
factory TalkAcceptReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkAcceptReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkAcceptReq', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), 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')
|
||||
TalkAcceptReq clone() => TalkAcceptReq()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkAcceptReq copyWith(void Function(TalkAcceptReq) updates) => super.copyWith((message) => updates(message as TalkAcceptReq)) as TalkAcceptReq;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkAcceptReq create() => TalkAcceptReq._();
|
||||
TalkAcceptReq createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkAcceptReq> createRepeated() => $pb.PbList<TalkAcceptReq>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkAcceptReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkAcceptReq>(create);
|
||||
static TalkAcceptReq? _defaultInstance;
|
||||
}
|
||||
|
||||
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/talk/startChart/proto/talk_accept.pbenum.dart
Normal file
11
lib/talk/startChart/proto/talk_accept.pbenum.dart
Normal file
@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_accept.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
|
||||
|
||||
24
lib/talk/startChart/proto/talk_accept.pbjson.dart
Normal file
24
lib/talk/startChart/proto/talk_accept.pbjson.dart
Normal file
@ -0,0 +1,24 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_accept.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 talkAcceptReqDescriptor instead')
|
||||
const TalkAcceptReq$json = {
|
||||
'1': 'TalkAcceptReq',
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkAcceptReq`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkAcceptReqDescriptor = $convert.base64Decode(
|
||||
'Cg1UYWxrQWNjZXB0UmVx');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_accept.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_accept.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_accept.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_accept.pb.dart';
|
||||
|
||||
7
lib/talk/startChart/proto/talk_accept.proto
Normal file
7
lib/talk/startChart/proto/talk_accept.proto
Normal file
@ -0,0 +1,7 @@
|
||||
// 同意接听
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
message TalkAcceptReq {
|
||||
}
|
||||
88
lib/talk/startChart/proto/talk_data.pb.dart
Normal file
88
lib/talk/startChart/proto/talk_data.pb.dart
Normal file
@ -0,0 +1,88 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_data.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 'talk_data.pbenum.dart';
|
||||
|
||||
export 'talk_data.pbenum.dart';
|
||||
|
||||
/// 注意这个包不应该使用Req,而应该只用单向发送类型,不等待响应。
|
||||
/// 在未收到对方的Ping,或者其他情况,即停止发送。
|
||||
class TalkData extends $pb.GeneratedMessage {
|
||||
factory TalkData({
|
||||
TalkData_ContentTypeE? contentType,
|
||||
$core.List<$core.int>? content,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (contentType != null) {
|
||||
$result.contentType = contentType;
|
||||
}
|
||||
if (content != null) {
|
||||
$result.content = content;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
TalkData._() : super();
|
||||
factory TalkData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkData', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
||||
..e<TalkData_ContentTypeE>(1, _omitFieldNames ? '' : 'ContentType', $pb.PbFieldType.OE, protoName: 'ContentType', defaultOrMaker: TalkData_ContentTypeE.Image, valueOf: TalkData_ContentTypeE.valueOf, enumValues: TalkData_ContentTypeE.values)
|
||||
..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'Content', $pb.PbFieldType.OY, protoName: 'Content')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkData clone() => TalkData()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkData copyWith(void Function(TalkData) updates) => super.copyWith((message) => updates(message as TalkData)) as TalkData;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkData create() => TalkData._();
|
||||
TalkData createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkData> createRepeated() => $pb.PbList<TalkData>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkData getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkData>(create);
|
||||
static TalkData? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
TalkData_ContentTypeE get contentType => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set contentType(TalkData_ContentTypeE v) { setField(1, v); }
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasContentType() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearContentType() => clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get content => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set content($core.List<$core.int> v) { $_setBytes(1, v); }
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasContent() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearContent() => clearField(2);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
35
lib/talk/startChart/proto/talk_data.pbenum.dart
Normal file
35
lib/talk/startChart/proto/talk_data.pbenum.dart
Normal file
@ -0,0 +1,35 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_data.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;
|
||||
|
||||
/// 内容类型枚举: 一张图传;一帧H264;一段G711
|
||||
class TalkData_ContentTypeE extends $pb.ProtobufEnum {
|
||||
static const TalkData_ContentTypeE Image = TalkData_ContentTypeE._(0, _omitEnumNames ? '' : 'Image');
|
||||
static const TalkData_ContentTypeE H264 = TalkData_ContentTypeE._(1, _omitEnumNames ? '' : 'H264');
|
||||
static const TalkData_ContentTypeE G711 = TalkData_ContentTypeE._(2, _omitEnumNames ? '' : 'G711');
|
||||
|
||||
static const $core.List<TalkData_ContentTypeE> values = <TalkData_ContentTypeE> [
|
||||
Image,
|
||||
H264,
|
||||
G711,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, TalkData_ContentTypeE> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static TalkData_ContentTypeE? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const TalkData_ContentTypeE._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
41
lib/talk/startChart/proto/talk_data.pbjson.dart
Normal file
41
lib/talk/startChart/proto/talk_data.pbjson.dart
Normal file
@ -0,0 +1,41 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_data.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 talkDataDescriptor instead')
|
||||
const TalkData$json = {
|
||||
'1': 'TalkData',
|
||||
'2': [
|
||||
{'1': 'ContentType', '3': 1, '4': 1, '5': 14, '6': '.main.TalkData.ContentTypeE', '10': 'ContentType'},
|
||||
{'1': 'Content', '3': 2, '4': 1, '5': 12, '10': 'Content'},
|
||||
],
|
||||
'4': [TalkData_ContentTypeE$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use talkDataDescriptor instead')
|
||||
const TalkData_ContentTypeE$json = {
|
||||
'1': 'ContentTypeE',
|
||||
'2': [
|
||||
{'1': 'Image', '2': 0},
|
||||
{'1': 'H264', '2': 1},
|
||||
{'1': 'G711', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkData`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkDataDescriptor = $convert.base64Decode(
|
||||
'CghUYWxrRGF0YRI9CgtDb250ZW50VHlwZRgBIAEoDjIbLm1haW4uVGFsa0RhdGEuQ29udGVudF'
|
||||
'R5cGVFUgtDb250ZW50VHlwZRIYCgdDb250ZW50GAIgASgMUgdDb250ZW50Ii0KDENvbnRlbnRU'
|
||||
'eXBlRRIJCgVJbWFnZRAAEggKBEgyNjQQARIICgRHNzExEAI=');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_data.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_data.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_data.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_data.pb.dart';
|
||||
|
||||
17
lib/talk/startChart/proto/talk_data.proto
Normal file
17
lib/talk/startChart/proto/talk_data.proto
Normal file
@ -0,0 +1,17 @@
|
||||
// 对讲数据
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
// 注意这个包不应该使用Req,而应该只用单向发送类型,不等待响应。
|
||||
// 在未收到对方的Ping,或者其他情况,即停止发送。
|
||||
message TalkData {
|
||||
// 内容类型枚举: 一张图传;一帧H264;一段G711
|
||||
enum ContentTypeE {
|
||||
Image = 0;
|
||||
H264 = 1;
|
||||
G711 = 2;
|
||||
};
|
||||
ContentTypeE ContentType = 1;
|
||||
bytes Content = 2;
|
||||
}
|
||||
76
lib/talk/startChart/proto/talk_expect.pb.dart
Normal file
76
lib/talk/startChart/proto/talk_expect.pb.dart
Normal file
@ -0,0 +1,76 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_expect.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 'talk_expect.pbenum.dart';
|
||||
|
||||
export 'talk_expect.pbenum.dart';
|
||||
|
||||
class TalkExpect extends $pb.GeneratedMessage {
|
||||
factory TalkExpect({
|
||||
$core.Iterable<TalkExpect_VideoTypeE>? videoType,
|
||||
$core.Iterable<TalkExpect_AudioTypeE>? audioType,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (videoType != null) {
|
||||
$result.videoType.addAll(videoType);
|
||||
}
|
||||
if (audioType != null) {
|
||||
$result.audioType.addAll(audioType);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
TalkExpect._() : super();
|
||||
factory TalkExpect.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkExpect.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkExpect', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
||||
..pc<TalkExpect_VideoTypeE>(1, _omitFieldNames ? '' : 'VideoType', $pb.PbFieldType.KE, protoName: 'VideoType', valueOf: TalkExpect_VideoTypeE.valueOf, enumValues: TalkExpect_VideoTypeE.values, defaultEnumValue: TalkExpect_VideoTypeE.NONE_V)
|
||||
..pc<TalkExpect_AudioTypeE>(2, _omitFieldNames ? '' : 'AudioType', $pb.PbFieldType.KE, protoName: 'AudioType', valueOf: TalkExpect_AudioTypeE.valueOf, enumValues: TalkExpect_AudioTypeE.values, defaultEnumValue: TalkExpect_AudioTypeE.NONE_A)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkExpect clone() => TalkExpect()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkExpect copyWith(void Function(TalkExpect) updates) => super.copyWith((message) => updates(message as TalkExpect)) as TalkExpect;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkExpect create() => TalkExpect._();
|
||||
TalkExpect createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkExpect> createRepeated() => $pb.PbList<TalkExpect>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkExpect getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkExpect>(create);
|
||||
static TalkExpect? _defaultInstance;
|
||||
|
||||
/// 如果接收到NONE的话,意味着对方关闭了喇叭或者视频显示,发送方应该停止发送
|
||||
/// 支持的类型是数组
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<TalkExpect_VideoTypeE> get videoType => $_getList(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<TalkExpect_AudioTypeE> get audioType => $_getList(1);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
53
lib/talk/startChart/proto/talk_expect.pbenum.dart
Normal file
53
lib/talk/startChart/proto/talk_expect.pbenum.dart
Normal file
@ -0,0 +1,53 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_expect.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
/// 视频类型
|
||||
class TalkExpect_VideoTypeE extends $pb.ProtobufEnum {
|
||||
static const TalkExpect_VideoTypeE NONE_V = TalkExpect_VideoTypeE._(0, _omitEnumNames ? '' : 'NONE_V');
|
||||
static const TalkExpect_VideoTypeE H264 = TalkExpect_VideoTypeE._(1, _omitEnumNames ? '' : 'H264');
|
||||
static const TalkExpect_VideoTypeE IMAGE = TalkExpect_VideoTypeE._(2, _omitEnumNames ? '' : 'IMAGE');
|
||||
|
||||
static const $core.List<TalkExpect_VideoTypeE> values = <TalkExpect_VideoTypeE> [
|
||||
NONE_V,
|
||||
H264,
|
||||
IMAGE,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, TalkExpect_VideoTypeE> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static TalkExpect_VideoTypeE? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const TalkExpect_VideoTypeE._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
/// 音频类型
|
||||
class TalkExpect_AudioTypeE extends $pb.ProtobufEnum {
|
||||
static const TalkExpect_AudioTypeE NONE_A = TalkExpect_AudioTypeE._(0, _omitEnumNames ? '' : 'NONE_A');
|
||||
static const TalkExpect_AudioTypeE AAC = TalkExpect_AudioTypeE._(1, _omitEnumNames ? '' : 'AAC');
|
||||
static const TalkExpect_AudioTypeE G711 = TalkExpect_AudioTypeE._(2, _omitEnumNames ? '' : 'G711');
|
||||
|
||||
static const $core.List<TalkExpect_AudioTypeE> values = <TalkExpect_AudioTypeE> [
|
||||
NONE_A,
|
||||
AAC,
|
||||
G711,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, TalkExpect_AudioTypeE> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static TalkExpect_AudioTypeE? valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const TalkExpect_AudioTypeE._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
|
||||
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
52
lib/talk/startChart/proto/talk_expect.pbjson.dart
Normal file
52
lib/talk/startChart/proto/talk_expect.pbjson.dart
Normal file
@ -0,0 +1,52 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_expect.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 talkExpectDescriptor instead')
|
||||
const TalkExpect$json = {
|
||||
'1': 'TalkExpect',
|
||||
'2': [
|
||||
{'1': 'VideoType', '3': 1, '4': 3, '5': 14, '6': '.main.TalkExpect.VideoTypeE', '10': 'VideoType'},
|
||||
{'1': 'AudioType', '3': 2, '4': 3, '5': 14, '6': '.main.TalkExpect.AudioTypeE', '10': 'AudioType'},
|
||||
],
|
||||
'4': [TalkExpect_VideoTypeE$json, TalkExpect_AudioTypeE$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use talkExpectDescriptor instead')
|
||||
const TalkExpect_VideoTypeE$json = {
|
||||
'1': 'VideoTypeE',
|
||||
'2': [
|
||||
{'1': 'NONE_V', '2': 0},
|
||||
{'1': 'H264', '2': 1},
|
||||
{'1': 'IMAGE', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use talkExpectDescriptor instead')
|
||||
const TalkExpect_AudioTypeE$json = {
|
||||
'1': 'AudioTypeE',
|
||||
'2': [
|
||||
{'1': 'NONE_A', '2': 0},
|
||||
{'1': 'AAC', '2': 1},
|
||||
{'1': 'G711', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkExpect`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkExpectDescriptor = $convert.base64Decode(
|
||||
'CgpUYWxrRXhwZWN0EjkKCVZpZGVvVHlwZRgBIAMoDjIbLm1haW4uVGFsa0V4cGVjdC5WaWRlb1'
|
||||
'R5cGVFUglWaWRlb1R5cGUSOQoJQXVkaW9UeXBlGAIgAygOMhsubWFpbi5UYWxrRXhwZWN0LkF1'
|
||||
'ZGlvVHlwZUVSCUF1ZGlvVHlwZSItCgpWaWRlb1R5cGVFEgoKBk5PTkVfVhAAEggKBEgyNjQQAR'
|
||||
'IJCgVJTUFHRRACIisKCkF1ZGlvVHlwZUUSCgoGTk9ORV9BEAASBwoDQUFDEAESCAoERzcxMRAC');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_expect.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_expect.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_expect.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_expect.pb.dart';
|
||||
|
||||
23
lib/talk/startChart/proto/talk_expect.proto
Normal file
23
lib/talk/startChart/proto/talk_expect.proto
Normal file
@ -0,0 +1,23 @@
|
||||
// 预期接收
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
message TalkExpect {
|
||||
// 视频类型
|
||||
enum VideoTypeE {
|
||||
NONE_V = 0;
|
||||
H264 = 1;
|
||||
IMAGE = 2;
|
||||
}
|
||||
// 音频类型
|
||||
enum AudioTypeE {
|
||||
NONE_A = 0;
|
||||
AAC = 1;
|
||||
G711 = 2;
|
||||
}
|
||||
// 如果接收到NONE的话,意味着对方关闭了喇叭或者视频显示,发送方应该停止发送
|
||||
// 支持的类型是数组
|
||||
repeated VideoTypeE VideoType = 1;
|
||||
repeated AudioTypeE AudioType = 2;
|
||||
}
|
||||
49
lib/talk/startChart/proto/talk_hangup.pb.dart
Normal file
49
lib/talk/startChart/proto/talk_hangup.pb.dart
Normal file
@ -0,0 +1,49 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_hangup.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class TalkHangup extends $pb.GeneratedMessage {
|
||||
factory TalkHangup() => create();
|
||||
TalkHangup._() : super();
|
||||
factory TalkHangup.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkHangup.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkHangup', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), 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')
|
||||
TalkHangup clone() => TalkHangup()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkHangup copyWith(void Function(TalkHangup) updates) => super.copyWith((message) => updates(message as TalkHangup)) as TalkHangup;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkHangup create() => TalkHangup._();
|
||||
TalkHangup createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkHangup> createRepeated() => $pb.PbList<TalkHangup>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkHangup getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkHangup>(create);
|
||||
static TalkHangup? _defaultInstance;
|
||||
}
|
||||
|
||||
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/talk/startChart/proto/talk_hangup.pbenum.dart
Normal file
11
lib/talk/startChart/proto/talk_hangup.pbenum.dart
Normal file
@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_hangup.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
|
||||
|
||||
24
lib/talk/startChart/proto/talk_hangup.pbjson.dart
Normal file
24
lib/talk/startChart/proto/talk_hangup.pbjson.dart
Normal file
@ -0,0 +1,24 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_hangup.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 talkHangupDescriptor instead')
|
||||
const TalkHangup$json = {
|
||||
'1': 'TalkHangup',
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkHangup`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkHangupDescriptor = $convert.base64Decode(
|
||||
'CgpUYWxrSGFuZ3Vw');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_hangup.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_hangup.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_hangup.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_hangup.pb.dart';
|
||||
|
||||
7
lib/talk/startChart/proto/talk_hangup.proto
Normal file
7
lib/talk/startChart/proto/talk_hangup.proto
Normal file
@ -0,0 +1,7 @@
|
||||
// 通话中挂断
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
message TalkHangup {
|
||||
}
|
||||
49
lib/talk/startChart/proto/talk_ping.pb.dart
Normal file
49
lib/talk/startChart/proto/talk_ping.pb.dart
Normal file
@ -0,0 +1,49 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_ping.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class TalkPing extends $pb.GeneratedMessage {
|
||||
factory TalkPing() => create();
|
||||
TalkPing._() : super();
|
||||
factory TalkPing.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkPing.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkPing', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), 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')
|
||||
TalkPing clone() => TalkPing()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkPing copyWith(void Function(TalkPing) updates) => super.copyWith((message) => updates(message as TalkPing)) as TalkPing;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkPing create() => TalkPing._();
|
||||
TalkPing createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkPing> createRepeated() => $pb.PbList<TalkPing>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkPing getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkPing>(create);
|
||||
static TalkPing? _defaultInstance;
|
||||
}
|
||||
|
||||
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/talk/startChart/proto/talk_ping.pbenum.dart
Normal file
11
lib/talk/startChart/proto/talk_ping.pbenum.dart
Normal file
@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_ping.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
|
||||
|
||||
24
lib/talk/startChart/proto/talk_ping.pbjson.dart
Normal file
24
lib/talk/startChart/proto/talk_ping.pbjson.dart
Normal file
@ -0,0 +1,24 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_ping.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 talkPingDescriptor instead')
|
||||
const TalkPing$json = {
|
||||
'1': 'TalkPing',
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkPing`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkPingDescriptor = $convert.base64Decode(
|
||||
'CghUYWxrUGluZw==');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_ping.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_ping.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_ping.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_ping.pb.dart';
|
||||
|
||||
7
lib/talk/startChart/proto/talk_ping.proto
Normal file
7
lib/talk/startChart/proto/talk_ping.proto
Normal file
@ -0,0 +1,7 @@
|
||||
// 呼叫保持
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
message TalkPing {
|
||||
}
|
||||
69
lib/talk/startChart/proto/talk_push.pb.dart
Normal file
69
lib/talk/startChart/proto/talk_push.pb.dart
Normal file
@ -0,0 +1,69 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_push.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class TalkPush extends $pb.GeneratedMessage {
|
||||
factory TalkPush({
|
||||
$core.int? uid,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (uid != null) {
|
||||
$result.uid = uid;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
TalkPush._() : super();
|
||||
factory TalkPush.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkPush.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkPush', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create)
|
||||
..a<$core.int>(1, _omitFieldNames ? '' : 'Uid', $pb.PbFieldType.OU3, protoName: 'Uid')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkPush clone() => TalkPush()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkPush copyWith(void Function(TalkPush) updates) => super.copyWith((message) => updates(message as TalkPush)) as TalkPush;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkPush create() => TalkPush._();
|
||||
TalkPush createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkPush> createRepeated() => $pb.PbList<TalkPush>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkPush getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkPush>(create);
|
||||
static TalkPush? _defaultInstance;
|
||||
|
||||
/// 星云用户ID
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get uid => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set uid($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasUid() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearUid() => clearField(1);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/talk/startChart/proto/talk_push.pbenum.dart
Normal file
11
lib/talk/startChart/proto/talk_push.pbenum.dart
Normal file
@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_push.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
|
||||
|
||||
27
lib/talk/startChart/proto/talk_push.pbjson.dart
Normal file
27
lib/talk/startChart/proto/talk_push.pbjson.dart
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_push.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 talkPushDescriptor instead')
|
||||
const TalkPush$json = {
|
||||
'1': 'TalkPush',
|
||||
'2': [
|
||||
{'1': 'Uid', '3': 1, '4': 1, '5': 13, '10': 'Uid'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkPush`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkPushDescriptor = $convert.base64Decode(
|
||||
'CghUYWxrUHVzaBIQCgNVaWQYASABKA1SA1VpZA==');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_push.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_push.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_push.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_push.pb.dart';
|
||||
|
||||
9
lib/talk/startChart/proto/talk_push.proto
Normal file
9
lib/talk/startChart/proto/talk_push.proto
Normal file
@ -0,0 +1,9 @@
|
||||
// 委托推送
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
message TalkPush {
|
||||
// 星云用户ID
|
||||
uint32 Uid = 1;
|
||||
}
|
||||
49
lib/talk/startChart/proto/talk_reject.pb.dart
Normal file
49
lib/talk/startChart/proto/talk_reject.pb.dart
Normal file
@ -0,0 +1,49 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_reject.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class TalkReject extends $pb.GeneratedMessage {
|
||||
factory TalkReject() => create();
|
||||
TalkReject._() : super();
|
||||
factory TalkReject.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory TalkReject.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TalkReject', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), 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')
|
||||
TalkReject clone() => TalkReject()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
TalkReject copyWith(void Function(TalkReject) updates) => super.copyWith((message) => updates(message as TalkReject)) as TalkReject;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkReject create() => TalkReject._();
|
||||
TalkReject createEmptyInstance() => create();
|
||||
static $pb.PbList<TalkReject> createRepeated() => $pb.PbList<TalkReject>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TalkReject getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TalkReject>(create);
|
||||
static TalkReject? _defaultInstance;
|
||||
}
|
||||
|
||||
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
lib/talk/startChart/proto/talk_reject.pbenum.dart
Normal file
11
lib/talk/startChart/proto/talk_reject.pbenum.dart
Normal file
@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_reject.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
|
||||
|
||||
24
lib/talk/startChart/proto/talk_reject.pbjson.dart
Normal file
24
lib/talk/startChart/proto/talk_reject.pbjson.dart
Normal file
@ -0,0 +1,24 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_reject.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 talkRejectDescriptor instead')
|
||||
const TalkReject$json = {
|
||||
'1': 'TalkReject',
|
||||
};
|
||||
|
||||
/// Descriptor for `TalkReject`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List talkRejectDescriptor = $convert.base64Decode(
|
||||
'CgpUYWxrUmVqZWN0');
|
||||
|
||||
14
lib/talk/startChart/proto/talk_reject.pbserver.dart
Normal file
14
lib/talk/startChart/proto/talk_reject.pbserver.dart
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: talk_reject.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'talk_reject.pb.dart';
|
||||
|
||||
7
lib/talk/startChart/proto/talk_reject.proto
Normal file
7
lib/talk/startChart/proto/talk_reject.proto
Normal file
@ -0,0 +1,7 @@
|
||||
// 拒绝接听
|
||||
syntax = "proto3";
|
||||
package main;
|
||||
option go_package = "./spb/talk";
|
||||
|
||||
message TalkReject {
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user