From c5b179fdb3a232281f06fd36e990b61d0c124fb0 Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Wed, 11 Dec 2024 17:35:01 +0100 Subject: [PATCH 01/10] breaking proto changes --- gen/dart/lib/libs/common/v1/types.pb.dart | 73 + gen/dart/lib/libs/common/v1/types.pbenum.dart | 11 + gen/dart/lib/libs/common/v1/types.pbjson.dart | 27 + .../v1/property_value_svc.pb.dart | 22 +- .../v1/property_value_svc.pbjson.dart | 54 +- .../services/property_svc/v1/types.pb.dart | 60 - .../property_svc/v1/types.pbjson.dart | 12 - .../services/task_svc/v1/patient_svc.pb.dart | 241 +++ .../task_svc/v1/patient_svc.pbenum.dart | 19 + .../task_svc/v1/patient_svc.pbjson.dart | 173 ++- .../services/tasks_svc/v1/patient_svc.pb.dart | 18 +- .../services/tasks_svc/v1/task_svc.pb.dart | 42 +- gen/go/libs/common/v1/types.pb.go | 158 ++ .../property_svc/v1/property_value_svc.pb.go | 385 ++--- gen/go/services/property_svc/v1/types.pb.go | 155 +- gen/go/services/task_svc/v1/patient_svc.pb.go | 1359 ++++++++++------- gen/ts/libs/common/v1/types_pb.d.ts | 25 + gen/ts/libs/common/v1/types_pb.js | 199 +++ .../v1/property_value_svc_grpc_web_pb.js | 2 + .../v1/property_value_svc_pb.d.ts | 13 +- .../property_svc/v1/property_value_svc_pb.js | 38 +- gen/ts/services/property_svc/v1/types_pb.d.ts | 21 - gen/ts/services/property_svc/v1/types_pb.js | 175 --- .../task_svc/v1/patient_svc_grpc_web_pb.js | 2 + .../services/task_svc/v1/patient_svc_pb.d.ts | 171 +++ gen/ts/services/task_svc/v1/patient_svc_pb.js | 857 ++++++++++- proto/libs/common/v1/types.proto | 12 + .../property_svc/v1/property_value_svc.proto | 5 +- proto/services/property_svc/v1/types.proto | 7 - proto/services/task_svc/v1/patient_svc.proto | 25 + 30 files changed, 3061 insertions(+), 1300 deletions(-) create mode 100644 gen/dart/lib/libs/common/v1/types.pb.dart create mode 100644 gen/dart/lib/libs/common/v1/types.pbenum.dart create mode 100644 gen/dart/lib/libs/common/v1/types.pbjson.dart create mode 100644 gen/go/libs/common/v1/types.pb.go create mode 100644 gen/ts/libs/common/v1/types_pb.d.ts create mode 100644 gen/ts/libs/common/v1/types_pb.js create mode 100644 proto/libs/common/v1/types.proto diff --git a/gen/dart/lib/libs/common/v1/types.pb.dart b/gen/dart/lib/libs/common/v1/types.pb.dart new file mode 100644 index 000000000..bec635236 --- /dev/null +++ b/gen/dart/lib/libs/common/v1/types.pb.dart @@ -0,0 +1,73 @@ +// +// Generated code. Do not modify. +// source: libs/common/v1/types.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 '../../../google/protobuf/timestamp.pb.dart' as $21; + +class Date extends $pb.GeneratedMessage { + factory Date({ + $21.Timestamp? date, + }) { + final $result = create(); + if (date != null) { + $result.date = date; + } + return $result; + } + Date._() : super(); + 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); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Date', package: const $pb.PackageName(_omitMessageNames ? '' : 'libs.common.v1'), createEmptyInstance: create) + ..aOM<$21.Timestamp>(1, _omitFieldNames ? '' : 'date', subBuilder: $21.Timestamp.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') + Date clone() => Date()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Date copyWith(void Function(Date) updates) => super.copyWith((message) => updates(message as Date)) as Date; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Date create() => Date._(); + Date createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Date getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Date? _defaultInstance; + + /// information more precise than date information shall be disregarded by clients + @$pb.TagNumber(1) + $21.Timestamp get date => $_getN(0); + @$pb.TagNumber(1) + set date($21.Timestamp v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasDate() => $_has(0); + @$pb.TagNumber(1) + void clearDate() => clearField(1); + @$pb.TagNumber(1) + $21.Timestamp ensureDate() => $_ensure(0); +} + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/gen/dart/lib/libs/common/v1/types.pbenum.dart b/gen/dart/lib/libs/common/v1/types.pbenum.dart new file mode 100644 index 000000000..8dd68ba7c --- /dev/null +++ b/gen/dart/lib/libs/common/v1/types.pbenum.dart @@ -0,0 +1,11 @@ +// +// Generated code. Do not modify. +// source: libs/common/v1/types.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 + diff --git a/gen/dart/lib/libs/common/v1/types.pbjson.dart b/gen/dart/lib/libs/common/v1/types.pbjson.dart new file mode 100644 index 000000000..1cd4197c2 --- /dev/null +++ b/gen/dart/lib/libs/common/v1/types.pbjson.dart @@ -0,0 +1,27 @@ +// +// Generated code. Do not modify. +// source: libs/common/v1/types.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 dateDescriptor instead') +const Date$json = { + '1': 'Date', + '2': [ + {'1': 'date', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'date'}, + ], +}; + +/// Descriptor for `Date`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dateDescriptor = $convert.base64Decode( + 'CgREYXRlEi4KBGRhdGUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgRkYXRl'); + diff --git a/gen/dart/lib/services/property_svc/v1/property_value_svc.pb.dart b/gen/dart/lib/services/property_svc/v1/property_value_svc.pb.dart index 7cb5d90f7..dc5152abc 100644 --- a/gen/dart/lib/services/property_svc/v1/property_value_svc.pb.dart +++ b/gen/dart/lib/services/property_svc/v1/property_value_svc.pb.dart @@ -15,7 +15,7 @@ import 'package:protobuf/protobuf.dart' as $pb; import '../../../google/protobuf/timestamp.pb.dart' as $21; import '../../../libs/common/v1/conflict.pb.dart' as $22; -import 'types.pb.dart' as $23; +import '../../../libs/common/v1/types.pb.dart' as $24; import 'types.pbenum.dart' as $23; class AttachPropertyValueRequest_MultiSelectValue extends $pb.GeneratedMessage { @@ -90,7 +90,7 @@ class AttachPropertyValueRequest extends $pb.GeneratedMessage { $core.String? textValue, $core.double? numberValue, $core.bool? boolValue, - $23.Date? dateValue, + $24.Date? dateValue, $21.Timestamp? dateTimeValue, $core.String? selectValue, AttachPropertyValueRequest_MultiSelectValue? multiSelectValue, @@ -150,7 +150,7 @@ class AttachPropertyValueRequest extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'textValue') ..a<$core.double>(4, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOB(5, _omitFieldNames ? '' : 'boolValue') - ..aOM<$23.Date>(6, _omitFieldNames ? '' : 'dateValue', subBuilder: $23.Date.create) + ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateValue', subBuilder: $24.Date.create) ..aOM<$21.Timestamp>(7, _omitFieldNames ? '' : 'dateTimeValue', subBuilder: $21.Timestamp.create) ..aOS(8, _omitFieldNames ? '' : 'selectValue') ..aOM(9, _omitFieldNames ? '' : 'multiSelectValue', subBuilder: AttachPropertyValueRequest_MultiSelectValue.create) @@ -228,15 +228,15 @@ class AttachPropertyValueRequest extends $pb.GeneratedMessage { void clearBoolValue() => clearField(5); @$pb.TagNumber(6) - $23.Date get dateValue => $_getN(5); + $24.Date get dateValue => $_getN(5); @$pb.TagNumber(6) - set dateValue($23.Date v) { setField(6, v); } + set dateValue($24.Date v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasDateValue() => $_has(5); @$pb.TagNumber(6) void clearDateValue() => clearField(6); @$pb.TagNumber(6) - $23.Date ensureDateValue() => $_ensure(5); + $24.Date ensureDateValue() => $_ensure(5); @$pb.TagNumber(7) $21.Timestamp get dateTimeValue => $_getN(6); @@ -714,7 +714,7 @@ class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { $core.String? textValue, $core.double? numberValue, $core.bool? boolValue, - $23.Date? dateValue, + $24.Date? dateValue, $21.Timestamp? dateTimeValue, GetAttachedPropertyValuesResponse_Value_SelectValueOption? selectValue, GetAttachedPropertyValuesResponse_Value_MultiSelectValue? multiSelectValue, @@ -790,7 +790,7 @@ class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { ..aOS(6, _omitFieldNames ? '' : 'textValue') ..a<$core.double>(7, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOB(8, _omitFieldNames ? '' : 'boolValue') - ..aOM<$23.Date>(9, _omitFieldNames ? '' : 'dateValue', subBuilder: $23.Date.create) + ..aOM<$24.Date>(9, _omitFieldNames ? '' : 'dateValue', subBuilder: $24.Date.create) ..aOM<$21.Timestamp>(10, _omitFieldNames ? '' : 'dateTimeValue', subBuilder: $21.Timestamp.create) ..aOM(11, _omitFieldNames ? '' : 'selectValue', subBuilder: GetAttachedPropertyValuesResponse_Value_SelectValueOption.create) ..aOM(12, _omitFieldNames ? '' : 'multiSelectValue', subBuilder: GetAttachedPropertyValuesResponse_Value_MultiSelectValue.create) @@ -896,15 +896,15 @@ class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { void clearBoolValue() => clearField(8); @$pb.TagNumber(9) - $23.Date get dateValue => $_getN(8); + $24.Date get dateValue => $_getN(8); @$pb.TagNumber(9) - set dateValue($23.Date v) { setField(9, v); } + set dateValue($24.Date v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasDateValue() => $_has(8); @$pb.TagNumber(9) void clearDateValue() => clearField(9); @$pb.TagNumber(9) - $23.Date ensureDateValue() => $_ensure(8); + $24.Date ensureDateValue() => $_ensure(8); @$pb.TagNumber(10) $21.Timestamp get dateTimeValue => $_getN(9); diff --git a/gen/dart/lib/services/property_svc/v1/property_value_svc.pbjson.dart b/gen/dart/lib/services/property_svc/v1/property_value_svc.pbjson.dart index c4dc33f2e..5b05dffa2 100644 --- a/gen/dart/lib/services/property_svc/v1/property_value_svc.pbjson.dart +++ b/gen/dart/lib/services/property_svc/v1/property_value_svc.pbjson.dart @@ -22,7 +22,7 @@ const AttachPropertyValueRequest$json = { {'1': 'text_value', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'textValue'}, {'1': 'number_value', '3': 4, '4': 1, '5': 1, '9': 0, '10': 'numberValue'}, {'1': 'bool_value', '3': 5, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - {'1': 'date_value', '3': 6, '4': 1, '5': 11, '6': '.services.property_svc.v1.Date', '9': 0, '10': 'dateValue'}, + {'1': 'date_value', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateValue'}, {'1': 'date_time_value', '3': 7, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '9': 0, '10': 'dateTimeValue'}, {'1': 'select_value', '3': 8, '4': 1, '5': 9, '9': 0, '10': 'selectValue'}, {'1': 'multi_select_value', '3': 9, '4': 1, '5': 11, '6': '.services.property_svc.v1.AttachPropertyValueRequest.MultiSelectValue', '9': 0, '10': 'multiSelectValue'}, @@ -49,15 +49,15 @@ final $typed_data.Uint8List attachPropertyValueRequestDescriptor = $convert.base 'ChpBdHRhY2hQcm9wZXJ0eVZhbHVlUmVxdWVzdBIdCgpzdWJqZWN0X2lkGAEgASgJUglzdWJqZW' 'N0SWQSHwoLcHJvcGVydHlfaWQYAiABKAlSCnByb3BlcnR5SWQSHwoKdGV4dF92YWx1ZRgDIAEo' 'CUgAUgl0ZXh0VmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAQgASgBSABSC251bWJlclZhbHVlEh8KCm' - 'Jvb2xfdmFsdWUYBSABKAhIAFIJYm9vbFZhbHVlEj8KCmRhdGVfdmFsdWUYBiABKAsyHi5zZXJ2' - 'aWNlcy5wcm9wZXJ0eV9zdmMudjEuRGF0ZUgAUglkYXRlVmFsdWUSRAoPZGF0ZV90aW1lX3ZhbH' - 'VlGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAUg1kYXRlVGltZVZhbHVlEiMK' - 'DHNlbGVjdF92YWx1ZRgIIAEoCUgAUgtzZWxlY3RWYWx1ZRJ1ChJtdWx0aV9zZWxlY3RfdmFsdW' - 'UYCSABKAsyRS5zZXJ2aWNlcy5wcm9wZXJ0eV9zdmMudjEuQXR0YWNoUHJvcGVydHlWYWx1ZVJl' - 'cXVlc3QuTXVsdGlTZWxlY3RWYWx1ZUgAUhBtdWx0aVNlbGVjdFZhbHVlEiUKC2NvbnNpc3Rlbm' - 'N5GAogASgJSAFSC2NvbnNpc3RlbmN5iAEBGmkKEE11bHRpU2VsZWN0VmFsdWUSIwoNc2VsZWN0' - 'X3ZhbHVlcxgBIAMoCVIMc2VsZWN0VmFsdWVzEjAKFHJlbW92ZV9zZWxlY3RfdmFsdWVzGAIgAy' - 'gJUhJyZW1vdmVTZWxlY3RWYWx1ZXNCBwoFdmFsdWVCDgoMX2NvbnNpc3RlbmN5'); + 'Jvb2xfdmFsdWUYBSABKAhIAFIJYm9vbFZhbHVlEjUKCmRhdGVfdmFsdWUYBiABKAsyFC5saWJz' + 'LmNvbW1vbi52MS5EYXRlSABSCWRhdGVWYWx1ZRJECg9kYXRlX3RpbWVfdmFsdWUYByABKAsyGi' + '5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSABSDWRhdGVUaW1lVmFsdWUSIwoMc2VsZWN0X3Zh' + 'bHVlGAggASgJSABSC3NlbGVjdFZhbHVlEnUKEm11bHRpX3NlbGVjdF92YWx1ZRgJIAEoCzJFLn' + 'NlcnZpY2VzLnByb3BlcnR5X3N2Yy52MS5BdHRhY2hQcm9wZXJ0eVZhbHVlUmVxdWVzdC5NdWx0' + 'aVNlbGVjdFZhbHVlSABSEG11bHRpU2VsZWN0VmFsdWUSJQoLY29uc2lzdGVuY3kYCiABKAlIAV' + 'ILY29uc2lzdGVuY3mIAQEaaQoQTXVsdGlTZWxlY3RWYWx1ZRIjCg1zZWxlY3RfdmFsdWVzGAEg' + 'AygJUgxzZWxlY3RWYWx1ZXMSMAoUcmVtb3ZlX3NlbGVjdF92YWx1ZXMYAiADKAlSEnJlbW92ZV' + 'NlbGVjdFZhbHVlc0IHCgV2YWx1ZUIOCgxfY29uc2lzdGVuY3k='); @$core.Deprecated('Use attachPropertyValueResponseDescriptor instead') const AttachPropertyValueResponse$json = { @@ -156,7 +156,7 @@ const GetAttachedPropertyValuesResponse_Value$json = { {'1': 'text_value', '3': 6, '4': 1, '5': 9, '9': 0, '10': 'textValue'}, {'1': 'number_value', '3': 7, '4': 1, '5': 1, '9': 0, '10': 'numberValue'}, {'1': 'bool_value', '3': 8, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - {'1': 'date_value', '3': 9, '4': 1, '5': 11, '6': '.services.property_svc.v1.Date', '9': 0, '10': 'dateValue'}, + {'1': 'date_value', '3': 9, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateValue'}, {'1': 'date_time_value', '3': 10, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '9': 0, '10': 'dateTimeValue'}, {'1': 'select_value', '3': 11, '4': 1, '5': 11, '6': '.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.SelectValueOption', '9': 0, '10': 'selectValue'}, {'1': 'multi_select_value', '3': 12, '4': 1, '5': 11, '6': '.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.MultiSelectValue', '9': 0, '10': 'multiSelectValue'}, @@ -193,24 +193,24 @@ const GetAttachedPropertyValuesResponse_Value_MultiSelectValue$json = { final $typed_data.Uint8List getAttachedPropertyValuesResponseDescriptor = $convert.base64Decode( 'CiFHZXRBdHRhY2hlZFByb3BlcnR5VmFsdWVzUmVzcG9uc2USWQoGdmFsdWVzGAEgAygLMkEuc2' 'VydmljZXMucHJvcGVydHlfc3ZjLnYxLkdldEF0dGFjaGVkUHJvcGVydHlWYWx1ZXNSZXNwb25z' - 'ZS5WYWx1ZVIGdmFsdWVzGrMICgVWYWx1ZRIfCgtwcm9wZXJ0eV9pZBgBIAEoCVIKcHJvcGVydH' + 'ZS5WYWx1ZVIGdmFsdWVzGqkICgVWYWx1ZRIfCgtwcm9wZXJ0eV9pZBgBIAEoCVIKcHJvcGVydH' 'lJZBJCCgpmaWVsZF90eXBlGAIgASgOMiMuc2VydmljZXMucHJvcGVydHlfc3ZjLnYxLkZpZWxk' 'VHlwZVIJZmllbGRUeXBlEhIKBG5hbWUYAyABKAlSBG5hbWUSJQoLZGVzY3JpcHRpb24YBCABKA' 'lIAVILZGVzY3JpcHRpb26IAQESHwoLaXNfYXJjaGl2ZWQYBSABKAhSCmlzQXJjaGl2ZWQSHwoK' 'dGV4dF92YWx1ZRgGIAEoCUgAUgl0ZXh0VmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAcgASgBSABSC2' - '51bWJlclZhbHVlEh8KCmJvb2xfdmFsdWUYCCABKAhIAFIJYm9vbFZhbHVlEj8KCmRhdGVfdmFs' - 'dWUYCSABKAsyHi5zZXJ2aWNlcy5wcm9wZXJ0eV9zdmMudjEuRGF0ZUgAUglkYXRlVmFsdWUSRA' - 'oPZGF0ZV90aW1lX3ZhbHVlGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAUg1k' - 'YXRlVGltZVZhbHVlEngKDHNlbGVjdF92YWx1ZRgLIAEoCzJTLnNlcnZpY2VzLnByb3BlcnR5X3' - 'N2Yy52MS5HZXRBdHRhY2hlZFByb3BlcnR5VmFsdWVzUmVzcG9uc2UuVmFsdWUuU2VsZWN0VmFs' - 'dWVPcHRpb25IAFILc2VsZWN0VmFsdWUSggEKEm11bHRpX3NlbGVjdF92YWx1ZRgMIAEoCzJSLn' - 'NlcnZpY2VzLnByb3BlcnR5X3N2Yy52MS5HZXRBdHRhY2hlZFByb3BlcnR5VmFsdWVzUmVzcG9u' - 'c2UuVmFsdWUuTXVsdGlTZWxlY3RWYWx1ZUgAUhBtdWx0aVNlbGVjdFZhbHVlEjEKFHByb3Blcn' - 'R5X2NvbnNpc3RlbmN5GA0gASgJUhNwcm9wZXJ0eUNvbnNpc3RlbmN5EjAKEXZhbHVlX2NvbnNp' - 'c3RlbmN5GA4gASgJSAJSEHZhbHVlQ29uc2lzdGVuY3mIAQEaWQoRU2VsZWN0VmFsdWVPcHRpb2' - '4SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb24YAyAB' - 'KAlSC2Rlc2NyaXB0aW9uGowBChBNdWx0aVNlbGVjdFZhbHVlEngKDXNlbGVjdF92YWx1ZXMYAS' - 'ADKAsyUy5zZXJ2aWNlcy5wcm9wZXJ0eV9zdmMudjEuR2V0QXR0YWNoZWRQcm9wZXJ0eVZhbHVl' - 'c1Jlc3BvbnNlLlZhbHVlLlNlbGVjdFZhbHVlT3B0aW9uUgxzZWxlY3RWYWx1ZXNCBwoFdmFsdW' - 'VCDgoMX2Rlc2NyaXB0aW9uQhQKEl92YWx1ZV9jb25zaXN0ZW5jeQ=='); + '51bWJlclZhbHVlEh8KCmJvb2xfdmFsdWUYCCABKAhIAFIJYm9vbFZhbHVlEjUKCmRhdGVfdmFs' + 'dWUYCSABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSABSCWRhdGVWYWx1ZRJECg9kYXRlX3RpbW' + 'VfdmFsdWUYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSABSDWRhdGVUaW1lVmFs' + 'dWUSeAoMc2VsZWN0X3ZhbHVlGAsgASgLMlMuc2VydmljZXMucHJvcGVydHlfc3ZjLnYxLkdldE' + 'F0dGFjaGVkUHJvcGVydHlWYWx1ZXNSZXNwb25zZS5WYWx1ZS5TZWxlY3RWYWx1ZU9wdGlvbkgA' + 'UgtzZWxlY3RWYWx1ZRKCAQoSbXVsdGlfc2VsZWN0X3ZhbHVlGAwgASgLMlIuc2VydmljZXMucH' + 'JvcGVydHlfc3ZjLnYxLkdldEF0dGFjaGVkUHJvcGVydHlWYWx1ZXNSZXNwb25zZS5WYWx1ZS5N' + 'dWx0aVNlbGVjdFZhbHVlSABSEG11bHRpU2VsZWN0VmFsdWUSMQoUcHJvcGVydHlfY29uc2lzdG' + 'VuY3kYDSABKAlSE3Byb3BlcnR5Q29uc2lzdGVuY3kSMAoRdmFsdWVfY29uc2lzdGVuY3kYDiAB' + 'KAlIAlIQdmFsdWVDb25zaXN0ZW5jeYgBARpZChFTZWxlY3RWYWx1ZU9wdGlvbhIOCgJpZBgBIA' + 'EoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3Jp' + 'cHRpb24ajAEKEE11bHRpU2VsZWN0VmFsdWUSeAoNc2VsZWN0X3ZhbHVlcxgBIAMoCzJTLnNlcn' + 'ZpY2VzLnByb3BlcnR5X3N2Yy52MS5HZXRBdHRhY2hlZFByb3BlcnR5VmFsdWVzUmVzcG9uc2Uu' + 'VmFsdWUuU2VsZWN0VmFsdWVPcHRpb25SDHNlbGVjdFZhbHVlc0IHCgV2YWx1ZUIOCgxfZGVzY3' + 'JpcHRpb25CFAoSX3ZhbHVlX2NvbnNpc3RlbmN5'); diff --git a/gen/dart/lib/services/property_svc/v1/types.pb.dart b/gen/dart/lib/services/property_svc/v1/types.pb.dart index e032fd67c..4e49bc672 100644 --- a/gen/dart/lib/services/property_svc/v1/types.pb.dart +++ b/gen/dart/lib/services/property_svc/v1/types.pb.dart @@ -11,65 +11,5 @@ import 'dart:core' as $core; -import 'package:protobuf/protobuf.dart' as $pb; - -import '../../../google/protobuf/timestamp.pb.dart' as $21; - export 'types.pbenum.dart'; -class Date extends $pb.GeneratedMessage { - factory Date({ - $21.Timestamp? date, - }) { - final $result = create(); - if (date != null) { - $result.date = date; - } - return $result; - } - Date._() : super(); - 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); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Date', package: const $pb.PackageName(_omitMessageNames ? '' : 'services.property_svc.v1'), createEmptyInstance: create) - ..aOM<$21.Timestamp>(1, _omitFieldNames ? '' : 'date', subBuilder: $21.Timestamp.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') - Date clone() => Date()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Date copyWith(void Function(Date) updates) => super.copyWith((message) => updates(message as Date)) as Date; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static Date create() => Date._(); - Date createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static Date getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static Date? _defaultInstance; - - /// information more precise than date information shall be disregarded by clients - @$pb.TagNumber(1) - $21.Timestamp get date => $_getN(0); - @$pb.TagNumber(1) - set date($21.Timestamp v) { setField(1, v); } - @$pb.TagNumber(1) - $core.bool hasDate() => $_has(0); - @$pb.TagNumber(1) - void clearDate() => clearField(1); - @$pb.TagNumber(1) - $21.Timestamp ensureDate() => $_ensure(0); -} - - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/gen/dart/lib/services/property_svc/v1/types.pbjson.dart b/gen/dart/lib/services/property_svc/v1/types.pbjson.dart index 3a5d4bbef..047b6c650 100644 --- a/gen/dart/lib/services/property_svc/v1/types.pbjson.dart +++ b/gen/dart/lib/services/property_svc/v1/types.pbjson.dart @@ -50,15 +50,3 @@ final $typed_data.Uint8List fieldTypeDescriptor = $convert.base64Decode( 'D0ZJRUxEX1RZUEVfREFURRAEEhgKFEZJRUxEX1RZUEVfREFURV9USU1FEAUSFQoRRklFTERfVF' 'lQRV9TRUxFQ1QQBhIbChdGSUVMRF9UWVBFX01VTFRJX1NFTEVDVBAH'); -@$core.Deprecated('Use dateDescriptor instead') -const Date$json = { - '1': 'Date', - '2': [ - {'1': 'date', '3': 1, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'date'}, - ], -}; - -/// Descriptor for `Date`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List dateDescriptor = $convert.base64Decode( - 'CgREYXRlEi4KBGRhdGUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgRkYXRl'); - diff --git a/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart b/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart index 38c6c5cef..c590b5e9f 100644 --- a/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart +++ b/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart @@ -13,6 +13,7 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +import '../../../libs/common/v1/types.pb.dart' as $24; import 'patient_svc.pbenum.dart'; export 'patient_svc.pbenum.dart'; @@ -21,6 +22,8 @@ class CreatePatientRequest extends $pb.GeneratedMessage { factory CreatePatientRequest({ $core.String? humanReadableIdentifier, $core.String? notes, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (humanReadableIdentifier != null) { @@ -29,6 +32,12 @@ class CreatePatientRequest extends $pb.GeneratedMessage { if (notes != null) { $result.notes = notes; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } CreatePatientRequest._() : super(); @@ -38,6 +47,8 @@ class CreatePatientRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePatientRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'services.task_svc.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(2, _omitFieldNames ? '' : 'notes') + ..e(3, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(4, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -79,6 +90,26 @@ class CreatePatientRequest extends $pb.GeneratedMessage { $core.bool hasNotes() => $_has(1); @$pb.TagNumber(2) void clearNotes() => clearField(2); + + @$pb.TagNumber(3) + Gender get gender => $_getN(2); + @$pb.TagNumber(3) + set gender(Gender v) { setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasGender() => $_has(2); + @$pb.TagNumber(3) + void clearGender() => clearField(3); + + @$pb.TagNumber(4) + $24.Date get dateOfBirth => $_getN(3); + @$pb.TagNumber(4) + set dateOfBirth($24.Date v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasDateOfBirth() => $_has(3); + @$pb.TagNumber(4) + void clearDateOfBirth() => clearField(4); + @$pb.TagNumber(4) + $24.Date ensureDateOfBirth() => $_ensure(3); } class CreatePatientResponse extends $pb.GeneratedMessage { @@ -334,6 +365,8 @@ class GetPatientResponse extends $pb.GeneratedMessage { $core.String? wardId, GetPatientResponse_Room? room, GetPatientResponse_Bed? bed, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -359,6 +392,12 @@ class GetPatientResponse extends $pb.GeneratedMessage { if (bed != null) { $result.bed = bed; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientResponse._() : super(); @@ -373,6 +412,8 @@ class GetPatientResponse extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'wardId') ..aOM(7, _omitFieldNames ? '' : 'room', subBuilder: GetPatientResponse_Room.create) ..aOM(8, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientResponse_Bed.create) + ..e(9, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(10, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -471,6 +512,26 @@ class GetPatientResponse extends $pb.GeneratedMessage { void clearBed() => clearField(8); @$pb.TagNumber(8) GetPatientResponse_Bed ensureBed() => $_ensure(6); + + @$pb.TagNumber(9) + Gender get gender => $_getN(7); + @$pb.TagNumber(9) + set gender(Gender v) { setField(9, v); } + @$pb.TagNumber(9) + $core.bool hasGender() => $_has(7); + @$pb.TagNumber(9) + void clearGender() => clearField(9); + + @$pb.TagNumber(10) + $24.Date get dateOfBirth => $_getN(8); + @$pb.TagNumber(10) + set dateOfBirth($24.Date v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasDateOfBirth() => $_has(8); + @$pb.TagNumber(10) + void clearDateOfBirth() => clearField(10); + @$pb.TagNumber(10) + $24.Date ensureDateOfBirth() => $_ensure(8); } /// @@ -613,6 +674,8 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.String? bedId, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -627,6 +690,12 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { if (bedId != null) { $result.bedId = bedId; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientByBedResponse._() : super(); @@ -638,6 +707,8 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') + ..e(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -697,6 +768,26 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.bool hasBedId() => $_has(3); @$pb.TagNumber(4) void clearBedId() => clearField(4); + + @$pb.TagNumber(5) + Gender get gender => $_getN(4); + @$pb.TagNumber(5) + set gender(Gender v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasGender() => $_has(4); + @$pb.TagNumber(5) + void clearGender() => clearField(5); + + @$pb.TagNumber(6) + $24.Date get dateOfBirth => $_getN(5); + @$pb.TagNumber(6) + set dateOfBirth($24.Date v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasDateOfBirth() => $_has(5); + @$pb.TagNumber(6) + void clearDateOfBirth() => clearField(6); + @$pb.TagNumber(6) + $24.Date ensureDateOfBirth() => $_ensure(5); } class GetPatientsByWardRequest extends $pb.GeneratedMessage { @@ -755,6 +846,8 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.String? bedId, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -769,6 +862,12 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { if (bedId != null) { $result.bedId = bedId; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientsByWardResponse_Patient._() : super(); @@ -780,6 +879,8 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') + ..e(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -839,6 +940,26 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.bool hasBedId() => $_has(3); @$pb.TagNumber(4) void clearBedId() => clearField(4); + + @$pb.TagNumber(5) + Gender get gender => $_getN(4); + @$pb.TagNumber(5) + set gender(Gender v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasGender() => $_has(4); + @$pb.TagNumber(5) + void clearGender() => clearField(5); + + @$pb.TagNumber(6) + $24.Date get dateOfBirth => $_getN(5); + @$pb.TagNumber(6) + set dateOfBirth($24.Date v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasDateOfBirth() => $_has(5); + @$pb.TagNumber(6) + void clearDateOfBirth() => clearField(6); + @$pb.TagNumber(6) + $24.Date ensureDateOfBirth() => $_ensure(5); } class GetPatientsByWardResponse extends $pb.GeneratedMessage { @@ -1514,6 +1635,8 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.String? id, $core.String? humanReadableIdentifier, $core.String? notes, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -1525,6 +1648,12 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { if (notes != null) { $result.notes = notes; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } UpdatePatientRequest._() : super(); @@ -1535,6 +1664,8 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') + ..e(4, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(5, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -1585,6 +1716,26 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.bool hasNotes() => $_has(2); @$pb.TagNumber(3) void clearNotes() => clearField(3); + + @$pb.TagNumber(4) + Gender get gender => $_getN(3); + @$pb.TagNumber(4) + set gender(Gender v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasGender() => $_has(3); + @$pb.TagNumber(4) + void clearGender() => clearField(4); + + @$pb.TagNumber(5) + $24.Date get dateOfBirth => $_getN(4); + @$pb.TagNumber(5) + set dateOfBirth($24.Date v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasDateOfBirth() => $_has(4); + @$pb.TagNumber(5) + void clearDateOfBirth() => clearField(5); + @$pb.TagNumber(5) + $24.Date ensureDateOfBirth() => $_ensure(4); } class UpdatePatientResponse extends $pb.GeneratedMessage { @@ -2303,6 +2454,8 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { GetPatientDetailsResponse_Room? room, GetPatientDetailsResponse_Bed? bed, $core.bool? isDischarged, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2333,6 +2486,12 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { if (isDischarged != null) { $result.isDischarged = isDischarged; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientDetailsResponse._() : super(); @@ -2349,6 +2508,8 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { ..aOM(7, _omitFieldNames ? '' : 'room', subBuilder: GetPatientDetailsResponse_Room.create) ..aOM(8, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientDetailsResponse_Bed.create) ..aOB(9, _omitFieldNames ? '' : 'isDischarged') + ..e(10, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(11, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2455,6 +2616,26 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { $core.bool hasIsDischarged() => $_has(8); @$pb.TagNumber(9) void clearIsDischarged() => clearField(9); + + @$pb.TagNumber(10) + Gender get gender => $_getN(9); + @$pb.TagNumber(10) + set gender(Gender v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasGender() => $_has(9); + @$pb.TagNumber(10) + void clearGender() => clearField(10); + + @$pb.TagNumber(11) + $24.Date get dateOfBirth => $_getN(10); + @$pb.TagNumber(11) + set dateOfBirth($24.Date v) { setField(11, v); } + @$pb.TagNumber(11) + $core.bool hasDateOfBirth() => $_has(10); + @$pb.TagNumber(11) + void clearDateOfBirth() => clearField(11); + @$pb.TagNumber(11) + $24.Date ensureDateOfBirth() => $_ensure(10); } class GetPatientListRequest extends $pb.GeneratedMessage { @@ -2513,6 +2694,8 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.Iterable? tasks, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2527,6 +2710,12 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { if (tasks != null) { $result.tasks.addAll(tasks); } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientListResponse_Patient._() : super(); @@ -2538,6 +2727,8 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..pc(4, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: GetPatientListResponse_Task.create) + ..e(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2591,6 +2782,26 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.List get tasks => $_getList(3); + + @$pb.TagNumber(5) + Gender get gender => $_getN(4); + @$pb.TagNumber(5) + set gender(Gender v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasGender() => $_has(4); + @$pb.TagNumber(5) + void clearGender() => clearField(5); + + @$pb.TagNumber(6) + $24.Date get dateOfBirth => $_getN(5); + @$pb.TagNumber(6) + set dateOfBirth($24.Date v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasDateOfBirth() => $_has(5); + @$pb.TagNumber(6) + void clearDateOfBirth() => clearField(6); + @$pb.TagNumber(6) + $24.Date ensureDateOfBirth() => $_ensure(5); } class GetPatientListResponse_Bed extends $pb.GeneratedMessage { @@ -2743,6 +2954,8 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage GetPatientListResponse_Bed? bed, $core.String? notes, $core.Iterable? tasks, + Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2763,6 +2976,12 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage if (tasks != null) { $result.tasks.addAll(tasks); } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientListResponse_PatientWithRoomAndBed._() : super(); @@ -2776,6 +2995,8 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage ..aOM(4, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientListResponse_Bed.create) ..aOS(5, _omitFieldNames ? '' : 'notes') ..pc(6, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: GetPatientListResponse_Task.create) + ..e(7, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) + ..aOM<$24.Date>(8, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2851,6 +3072,26 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage @$pb.TagNumber(6) $core.List get tasks => $_getList(5); + + @$pb.TagNumber(7) + Gender get gender => $_getN(6); + @$pb.TagNumber(7) + set gender(Gender v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasGender() => $_has(6); + @$pb.TagNumber(7) + void clearGender() => clearField(7); + + @$pb.TagNumber(8) + $24.Date get dateOfBirth => $_getN(7); + @$pb.TagNumber(8) + set dateOfBirth($24.Date v) { setField(8, v); } + @$pb.TagNumber(8) + $core.bool hasDateOfBirth() => $_has(7); + @$pb.TagNumber(8) + void clearDateOfBirth() => clearField(8); + @$pb.TagNumber(8) + $24.Date ensureDateOfBirth() => $_ensure(7); } class GetPatientListResponse_Task_SubTask extends $pb.GeneratedMessage { diff --git a/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart b/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart index 76c60751e..493630de7 100644 --- a/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart +++ b/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart @@ -13,6 +13,25 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; +class Gender extends $pb.ProtobufEnum { + static const Gender GENDER_UNSPECIFIED = Gender._(0, _omitEnumNames ? '' : 'GENDER_UNSPECIFIED'); + static const Gender GENDER_FEMALE = Gender._(1, _omitEnumNames ? '' : 'GENDER_FEMALE'); + static const Gender GENDER_MALE = Gender._(2, _omitEnumNames ? '' : 'GENDER_MALE'); + static const Gender GENDER_DIVERSE = Gender._(3, _omitEnumNames ? '' : 'GENDER_DIVERSE'); + + static const $core.List values = [ + GENDER_UNSPECIFIED, + GENDER_FEMALE, + GENDER_MALE, + GENDER_DIVERSE, + ]; + + static final $core.Map<$core.int, Gender> _byValue = $pb.ProtobufEnum.initByValue(values); + static Gender? valueOf($core.int value) => _byValue[value]; + + const Gender._($core.int v, $core.String n) : super(v, n); +} + class GetPatientDetailsResponse_TaskStatus extends $pb.ProtobufEnum { static const GetPatientDetailsResponse_TaskStatus TASK_STATUS_UNSPECIFIED = GetPatientDetailsResponse_TaskStatus._(0, _omitEnumNames ? '' : 'TASK_STATUS_UNSPECIFIED'); static const GetPatientDetailsResponse_TaskStatus TASK_STATUS_TODO = GetPatientDetailsResponse_TaskStatus._(1, _omitEnumNames ? '' : 'TASK_STATUS_TODO'); diff --git a/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart b/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart index 742d61717..e0d16ad13 100644 --- a/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart +++ b/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart @@ -13,19 +13,39 @@ import 'dart:convert' as $convert; import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; +@$core.Deprecated('Use genderDescriptor instead') +const Gender$json = { + '1': 'Gender', + '2': [ + {'1': 'GENDER_UNSPECIFIED', '2': 0}, + {'1': 'GENDER_FEMALE', '2': 1}, + {'1': 'GENDER_MALE', '2': 2}, + {'1': 'GENDER_DIVERSE', '2': 3}, + ], +}; + +/// Descriptor for `Gender`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List genderDescriptor = $convert.base64Decode( + 'CgZHZW5kZXISFgoSR0VOREVSX1VOU1BFQ0lGSUVEEAASEQoNR0VOREVSX0ZFTUFMRRABEg8KC0' + 'dFTkRFUl9NQUxFEAISEgoOR0VOREVSX0RJVkVSU0UQAw=='); + @$core.Deprecated('Use createPatientRequestDescriptor instead') const CreatePatientRequest$json = { '1': 'CreatePatientRequest', '2': [ {'1': 'human_readable_identifier', '3': 1, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 2, '4': 1, '5': 9, '10': 'notes'}, + {'1': 'gender', '3': 3, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '10': 'gender'}, + {'1': 'date_of_birth', '3': 4, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '10': 'dateOfBirth'}, ], }; /// Descriptor for `CreatePatientRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createPatientRequestDescriptor = $convert.base64Decode( 'ChRDcmVhdGVQYXRpZW50UmVxdWVzdBI6ChlodW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyGAEgAS' - 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3RlcxgCIAEoCVIFbm90ZXM='); + 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3RlcxgCIAEoCVIFbm90ZXMSNAoGZ2Vu' + 'ZGVyGAMgASgOMhwuc2VydmljZXMudGFza19zdmMudjEuR2VuZGVyUgZnZW5kZXISOAoNZGF0ZV' + '9vZl9iaXJ0aBgEIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVSC2RhdGVPZkJpcnRo'); @$core.Deprecated('Use createPatientResponseDescriptor instead') const CreatePatientResponse$json = { @@ -78,13 +98,17 @@ const GetPatientResponse$json = { '10': 'wardId', '17': true, }, - {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Room', '9': 2, '10': 'room', '17': true}, - {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Bed', '9': 3, '10': 'bed', '17': true}, + {'1': 'gender', '3': 9, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 2, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 10, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 3, '10': 'dateOfBirth', '17': true}, + {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Room', '9': 4, '10': 'room', '17': true}, + {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Bed', '9': 5, '10': 'bed', '17': true}, ], '3': [GetPatientResponse_Room$json, GetPatientResponse_Bed$json], '8': [ {'1': '_bed_id'}, {'1': '_ward_id'}, + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_room'}, {'1': '_bed'}, ], @@ -114,12 +138,15 @@ final $typed_data.Uint8List getPatientResponseDescriptor = $convert.base64Decode 'ChJHZXRQYXRpZW50UmVzcG9uc2USDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2' 'lkZW50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJ' 'UgVub3RlcxIeCgZiZWRfaWQYBCABKAlCAhgBSABSBWJlZElkiAEBEiAKB3dhcmRfaWQYBSABKA' - 'lCAhgBSAFSBndhcmRJZIgBARJGCgRyb29tGAcgASgLMi0uc2VydmljZXMudGFza19zdmMudjEu' - 'R2V0UGF0aWVudFJlc3BvbnNlLlJvb21IAlIEcm9vbYgBARJDCgNiZWQYCCABKAsyLC5zZXJ2aW' - 'Nlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50UmVzcG9uc2UuQmVkSANSA2JlZIgBARpDCgRSb29t' - 'Eg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBn' - 'dhcmRJZBopCgNCZWQSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWVCCQoHX2Jl' - 'ZF9pZEIKCghfd2FyZF9pZEIHCgVfcm9vbUIGCgRfYmVk'); + 'lCAhgBSAFSBndhcmRJZIgBARI5CgZnZW5kZXIYCSABKA4yHC5zZXJ2aWNlcy50YXNrX3N2Yy52' + 'MS5HZW5kZXJIAlIGZ2VuZGVyiAEBEj0KDWRhdGVfb2ZfYmlydGgYCiABKAsyFC5saWJzLmNvbW' + '1vbi52MS5EYXRlSANSC2RhdGVPZkJpcnRoiAEBEkYKBHJvb20YByABKAsyLS5zZXJ2aWNlcy50' + 'YXNrX3N2Yy52MS5HZXRQYXRpZW50UmVzcG9uc2UuUm9vbUgEUgRyb29tiAEBEkMKA2JlZBgIIA' + 'EoCzIsLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRSZXNwb25zZS5CZWRIBVIDYmVk' + 'iAEBGkMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF' + '9pZBgDIAEoCVIGd2FyZElkGikKA0JlZBIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIE' + 'bmFtZUIJCgdfYmVkX2lkQgoKCF93YXJkX2lkQgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydG' + 'hCBwoFX3Jvb21CBgoEX2JlZA=='); @$core.Deprecated('Use deletePatientRequestDescriptor instead') const DeletePatientRequest$json = { @@ -161,9 +188,13 @@ const GetPatientByBedResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'bedId', '17': true}, + {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'bedId', '17': true}, ], '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_bed_id'}, ], }; @@ -172,7 +203,10 @@ const GetPatientByBedResponse$json = { final $typed_data.Uint8List getPatientByBedResponseDescriptor = $convert.base64Decode( 'ChdHZXRQYXRpZW50QnlCZWRSZXNwb25zZRIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZG' 'FibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMY' - 'AyABKAlSBW5vdGVzEhoKBmJlZF9pZBgEIAEoCUgAUgViZWRJZIgBAUIJCgdfYmVkX2lk'); + 'AyABKAlSBW5vdGVzEjkKBmdlbmRlchgFIAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbm' + 'RlckgAUgZnZW5kZXKIAQESPQoNZGF0ZV9vZl9iaXJ0aBgGIAEoCzIULmxpYnMuY29tbW9uLnYx' + 'LkRhdGVIAVILZGF0ZU9mQmlydGiIAQESGgoGYmVkX2lkGAQgASgJSAJSBWJlZElkiAEBQgkKB1' + '9nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGhCCQoHX2JlZF9pZA=='); @$core.Deprecated('Use getPatientsByWardRequestDescriptor instead') const GetPatientsByWardRequest$json = { @@ -202,9 +236,13 @@ const GetPatientsByWardResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'bedId', '17': true}, + {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'bedId', '17': true}, ], '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_bed_id'}, ], }; @@ -213,9 +251,12 @@ const GetPatientsByWardResponse_Patient$json = { final $typed_data.Uint8List getPatientsByWardResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50c0J5V2FyZFJlc3BvbnNlElMKCHBhdGllbnRzGAEgAygLMjcuc2VydmljZX' 'MudGFza19zdmMudjEuR2V0UGF0aWVudHNCeVdhcmRSZXNwb25zZS5QYXRpZW50UghwYXRpZW50' - 'cxqSAQoHUGF0aWVudBIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZGFibGVfaWRlbnRpZm' + 'cxqpAgoHUGF0aWVudBIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZGFibGVfaWRlbnRpZm' 'llchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMYAyABKAlSBW5vdGVz' - 'EhoKBmJlZF9pZBgEIAEoCUgAUgViZWRJZIgBAUIJCgdfYmVkX2lk'); + 'EjkKBmdlbmRlchgFIAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbmRlckgAUgZnZW5kZX' + 'KIAQESPQoNZGF0ZV9vZl9iaXJ0aBgGIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAVILZGF0' + 'ZU9mQmlydGiIAQESGgoGYmVkX2lkGAQgASgJSAJSBWJlZElkiAEBQgkKB19nZW5kZXJCEAoOX2' + 'RhdGVfb2ZfYmlydGhCCQoHX2JlZF9pZA=='); @$core.Deprecated('Use getPatientAssignmentByWardRequestDescriptor instead') const GetPatientAssignmentByWardRequest$json = { @@ -352,10 +393,14 @@ const UpdatePatientRequest$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'humanReadableIdentifier', '17': true}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'notes', '17': true}, + {'1': 'gender', '3': 4, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 2, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 5, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 3, '10': 'dateOfBirth', '17': true}, ], '8': [ {'1': '_human_readable_identifier'}, {'1': '_notes'}, + {'1': '_gender'}, + {'1': '_date_of_birth'}, ], }; @@ -363,8 +408,10 @@ const UpdatePatientRequest$json = { final $typed_data.Uint8List updatePatientRequestDescriptor = $convert.base64Decode( 'ChRVcGRhdGVQYXRpZW50UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSPwoZaHVtYW5fcmVhZGFibG' 'VfaWRlbnRpZmllchgCIAEoCUgAUhdodW1hblJlYWRhYmxlSWRlbnRpZmllcogBARIZCgVub3Rl' - 'cxgDIAEoCUgBUgVub3Rlc4gBAUIcChpfaHVtYW5fcmVhZGFibGVfaWRlbnRpZmllckIICgZfbm' - '90ZXM='); + 'cxgDIAEoCUgBUgVub3Rlc4gBARI5CgZnZW5kZXIYBCABKA4yHC5zZXJ2aWNlcy50YXNrX3N2Yy' + '52MS5HZW5kZXJIAlIGZ2VuZGVyiAEBEj0KDWRhdGVfb2ZfYmlydGgYBSABKAsyFC5saWJzLmNv' + 'bW1vbi52MS5EYXRlSANSC2RhdGVPZkJpcnRoiAEBQhwKGl9odW1hbl9yZWFkYWJsZV9pZGVudG' + 'lmaWVyQggKBl9ub3Rlc0IJCgdfZ2VuZGVyQhAKDl9kYXRlX29mX2JpcnRo'); @$core.Deprecated('Use updatePatientResponseDescriptor instead') const UpdatePatientResponse$json = { @@ -474,6 +521,8 @@ const GetPatientDetailsResponse$json = { {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientDetailsResponse.Room', '9': 1, '10': 'room', '17': true}, {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientDetailsResponse.Bed', '9': 2, '10': 'bed', '17': true}, {'1': 'is_discharged', '3': 9, '4': 1, '5': 8, '10': 'isDischarged'}, + {'1': 'gender', '3': 10, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 3, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 11, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 4, '10': 'dateOfBirth', '17': true}, ], '3': [GetPatientDetailsResponse_Room$json, GetPatientDetailsResponse_Bed$json, GetPatientDetailsResponse_Task$json], '4': [GetPatientDetailsResponse_TaskStatus$json], @@ -481,6 +530,8 @@ const GetPatientDetailsResponse$json = { {'1': '_ward_id'}, {'1': '_room'}, {'1': '_bed'}, + {'1': '_gender'}, + {'1': '_date_of_birth'}, ], }; @@ -553,19 +604,22 @@ final $typed_data.Uint8List getPatientDetailsResponseDescriptor = $convert.base6 'Nlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlJvb21IAVIEcm9vbYgB' 'ARJKCgNiZWQYCCABKAsyMy5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1' 'Jlc3BvbnNlLkJlZEgCUgNiZWSIAQESIwoNaXNfZGlzY2hhcmdlZBgJIAEoCFIMaXNEaXNjaGFy' - 'Z2VkGkMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF' - '9pZBgDIAEoCVIGd2FyZElkGikKA0JlZBIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIE' - 'bmFtZRq4AwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZX' - 'NjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SUgoGc3RhdHVzGAQgASgOMjouc2VydmljZXMu' - 'dGFza19zdmMudjEuR2V0UGF0aWVudERldGFpbHNSZXNwb25zZS5UYXNrU3RhdHVzUgZzdGF0dX' - 'MSLQoQYXNzaWduZWRfdXNlcl9pZBgFIAEoCUgAUg5hc3NpZ25lZFVzZXJJZIgBARIdCgpwYXRp' - 'ZW50X2lkGAYgASgJUglwYXRpZW50SWQSFgoGcHVibGljGAcgASgIUgZwdWJsaWMSWAoIc3VidG' - 'Fza3MYCCADKAsyPC5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3Bv' - 'bnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MaQQoHU3ViVGFzaxIOCgJpZBgBIAEoCVICaWQSEg' - 'oEbmFtZRgCIAEoCVIEbmFtZRISCgRkb25lGAMgASgIUgRkb25lQhMKEV9hc3NpZ25lZF91c2Vy' - 'X2lkInIKClRhc2tTdGF0dXMSGwoXVEFTS19TVEFUVVNfVU5TUEVDSUZJRUQQABIUChBUQVNLX1' - 'NUQVRVU19UT0RPEAESGwoXVEFTS19TVEFUVVNfSU5fUFJPR1JFU1MQAhIUChBUQVNLX1NUQVRV' - 'U19ET05FEANCCgoIX3dhcmRfaWRCBwoFX3Jvb21CBgoEX2JlZA=='); + 'Z2VkEjkKBmdlbmRlchgKIAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbmRlckgDUgZnZW' + '5kZXKIAQESPQoNZGF0ZV9vZl9iaXJ0aBgLIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIBFIL' + 'ZGF0ZU9mQmlydGiIAQEaQwoEUm9vbRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbm' + 'FtZRIXCgd3YXJkX2lkGAMgASgJUgZ3YXJkSWQaKQoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRu' + 'YW1lGAIgASgJUgRuYW1lGrgDCgRUYXNrEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUg' + 'RuYW1lEiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhJSCgZzdGF0dXMYBCABKA4y' + 'Oi5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2tTdG' + 'F0dXNSBnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVkVXNlcklk' + 'iAEBEh0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKAhSBnB1Ym' + 'xpYxJYCghzdWJ0YXNrcxgIIAMoCzI8LnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRE' + 'ZXRhaWxzUmVzcG9uc2UuVGFzay5TdWJUYXNrUghzdWJ0YXNrcxpBCgdTdWJUYXNrEg4KAmlkGA' + 'EgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhIKBGRvbmUYAyABKAhSBGRvbmVCEwoRX2Fz' + 'c2lnbmVkX3VzZXJfaWQicgoKVGFza1N0YXR1cxIbChdUQVNLX1NUQVRVU19VTlNQRUNJRklFRB' + 'AAEhQKEFRBU0tfU1RBVFVTX1RPRE8QARIbChdUQVNLX1NUQVRVU19JTl9QUk9HUkVTUxACEhQK' + 'EFRBU0tfU1RBVFVTX0RPTkUQA0IKCghfd2FyZF9pZEIHCgVfcm9vbUIGCgRfYmVkQgkKB19nZW' + '5kZXJCEAoOX2RhdGVfb2ZfYmlydGg='); @$core.Deprecated('Use getPatientListRequestDescriptor instead') const GetPatientListRequest$json = { @@ -602,8 +656,14 @@ const GetPatientListResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, + {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 4, '4': 3, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Task', '10': 'tasks'}, ], + '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, + ], }; @$core.Deprecated('Use getPatientListResponseDescriptor instead') @@ -634,8 +694,14 @@ const GetPatientListResponse_PatientWithRoomAndBed$json = { {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Room', '10': 'room'}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Bed', '10': 'bed'}, {'1': 'notes', '3': 5, '4': 1, '5': 9, '10': 'notes'}, + {'1': 'gender', '3': 7, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 8, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 6, '4': 3, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Task', '10': 'tasks'}, ], + '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, + ], }; @$core.Deprecated('Use getPatientListResponseDescriptor instead') @@ -685,29 +751,34 @@ final $typed_data.Uint8List getPatientListResponseDescriptor = $convert.base64De 'Y3RpdmUSZQoTdW5hc3NpZ25lZF9wYXRpZW50cxgCIAMoCzI0LnNlcnZpY2VzLnRhc2tfc3ZjLn' 'YxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuUGF0aWVudFISdW5hc3NpZ25lZFBhdGllbnRzEmUK' 'E2Rpc2NoYXJnZWRfcGF0aWVudHMYAyADKAsyNC5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYX' - 'RpZW50TGlzdFJlc3BvbnNlLlBhdGllbnRSEmRpc2NoYXJnZWRQYXRpZW50cxq0AQoHUGF0aWVu' + 'RpZW50TGlzdFJlc3BvbnNlLlBhdGllbnRSEmRpc2NoYXJnZWRQYXRpZW50cxrLAgoHUGF0aWVu' 'dBIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZGFibGVfaWRlbnRpZmllchgCIAEoCVIXaH' - 'VtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMYAyABKAlSBW5vdGVzEkcKBXRhc2tzGAQg' - 'AygLMjEuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25zZS5UYXNrUg' - 'V0YXNrcxopCgNCZWQSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUaQwoEUm9v' - 'bRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIXCgd3YXJkX2lkGAMgASgJUg' - 'Z3YXJkSWQazQIKFVBhdGllbnRXaXRoUm9vbUFuZEJlZBIOCgJpZBgBIAEoCVICaWQSOgoZaHVt' - 'YW5fcmVhZGFibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISRQ' - 'oEcm9vbRgDIAEoCzIxLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9u' - 'c2UuUm9vbVIEcm9vbRJCCgNiZWQYBCABKAsyMC5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYX' - 'RpZW50TGlzdFJlc3BvbnNlLkJlZFIDYmVkEhQKBW5vdGVzGAUgASgJUgVub3RlcxJHCgV0YXNr' - 'cxgGIAMoCzIxLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVG' - 'Fza1IFdGFza3MasgMKBFRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUS' - 'IAoLZGVzY3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEk8KBnN0YXR1cxgEIAEoDjI3LnNlcn' - 'ZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVGFza1N0YXR1c1IGc3Rh' - 'dHVzEi0KEGFzc2lnbmVkX3VzZXJfaWQYBSABKAlIAFIOYXNzaWduZWRVc2VySWSIAQESHQoKcG' - 'F0aWVudF9pZBgGIAEoCVIJcGF0aWVudElkEhYKBnB1YmxpYxgHIAEoCFIGcHVibGljElUKCHN1' - 'YnRhc2tzGAggAygLMjkuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb2' - '5zZS5UYXNrLlN1YlRhc2tSCHN1YnRhc2tzGkEKB1N1YlRhc2sSDgoCaWQYASABKAlSAmlkEhIK' - 'BG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZWRfdXNlcl' - '9pZCJyCgpUYXNrU3RhdHVzEhsKF1RBU0tfU1RBVFVTX1VOU1BFQ0lGSUVEEAASFAoQVEFTS19T' - 'VEFUVVNfVE9ETxABEhsKF1RBU0tfU1RBVFVTX0lOX1BST0dSRVNTEAISFAoQVEFTS19TVEFUVV' - 'NfRE9ORRAD'); + 'VtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMYAyABKAlSBW5vdGVzEjkKBmdlbmRlchgF' + 'IAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbmRlckgAUgZnZW5kZXKIAQESPQoNZGF0ZV' + '9vZl9iaXJ0aBgGIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAVILZGF0ZU9mQmlydGiIAQES' + 'RwoFdGFza3MYBCADKAsyMS5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3' + 'BvbnNlLlRhc2tSBXRhc2tzQgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGgaKQoDQmVkEg4K' + 'AmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lGkMKBFJvb20SDgoCaWQYASABKAlSAm' + 'lkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF9pZBgDIAEoCVIGd2FyZElkGuQDChVQYXRp' + 'ZW50V2l0aFJvb21BbmRCZWQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW' + '50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEkUKBHJvb20YAyABKAsyMS5z' + 'ZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlJvb21SBHJvb20SQg' + 'oDYmVkGAQgASgLMjAuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25z' + 'ZS5CZWRSA2JlZBIUCgVub3RlcxgFIAEoCVIFbm90ZXMSOQoGZ2VuZGVyGAcgASgOMhwuc2Vydm' + 'ljZXMudGFza19zdmMudjEuR2VuZGVySABSBmdlbmRlcogBARI9Cg1kYXRlX29mX2JpcnRoGAgg' + 'ASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgBUgtkYXRlT2ZCaXJ0aIgBARJHCgV0YXNrcxgGIA' + 'MoCzIxLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVGFza1IF' + 'dGFza3NCCQoHX2dlbmRlckIQCg5fZGF0ZV9vZl9iaXJ0aBqyAwoEVGFzaxIOCgJpZBgBIAEoCV' + 'ICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRp' + 'b24STwoGc3RhdHVzGAQgASgOMjcuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3' + 'RSZXNwb25zZS5UYXNrU3RhdHVzUgZzdGF0dXMSLQoQYXNzaWduZWRfdXNlcl9pZBgFIAEoCUgA' + 'Ug5hc3NpZ25lZFVzZXJJZIgBARIdCgpwYXRpZW50X2lkGAYgASgJUglwYXRpZW50SWQSFgoGcH' + 'VibGljGAcgASgIUgZwdWJsaWMSVQoIc3VidGFza3MYCCADKAsyOS5zZXJ2aWNlcy50YXNrX3N2' + 'Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MaQQoHU3' + 'ViVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRISCgRkb25lGAMgASgI' + 'UgRkb25lQhMKEV9hc3NpZ25lZF91c2VyX2lkInIKClRhc2tTdGF0dXMSGwoXVEFTS19TVEFUVV' + 'NfVU5TUEVDSUZJRUQQABIUChBUQVNLX1NUQVRVU19UT0RPEAESGwoXVEFTS19TVEFUVVNfSU5f' + 'UFJPR1JFU1MQAhIUChBUQVNLX1NUQVRVU19ET05FEAM='); @$core.Deprecated('Use readmitPatientRequestDescriptor instead') const ReadmitPatientRequest$json = { diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart index 0f6c93294..44e2f2f9c 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart @@ -14,7 +14,7 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; import '../../../libs/common/v1/conflict.pb.dart' as $22; -import 'types.pbenum.dart' as $24; +import 'types.pbenum.dart' as $25; class CreatePatientRequest extends $pb.GeneratedMessage { factory CreatePatientRequest({ @@ -1499,7 +1499,7 @@ class GetPatientDetailsResponse_Task extends $pb.GeneratedMessage { $core.String? id, $core.String? name, $core.String? description, - $24.TaskStatus? status, + $25.TaskStatus? status, $core.String? assignedUserId, $core.String? patientId, $core.bool? public, @@ -1544,7 +1544,7 @@ class GetPatientDetailsResponse_Task extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..e<$24.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOS(6, _omitFieldNames ? '' : 'patientId') ..aOB(7, _omitFieldNames ? '' : 'public') @@ -1602,9 +1602,9 @@ class GetPatientDetailsResponse_Task extends $pb.GeneratedMessage { void clearDescription() => clearField(3); @$pb.TagNumber(4) - $24.TaskStatus get status => $_getN(3); + $25.TaskStatus get status => $_getN(3); @$pb.TagNumber(4) - set status($24.TaskStatus v) { setField(4, v); } + set status($25.TaskStatus v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasStatus() => $_has(3); @$pb.TagNumber(4) @@ -2231,7 +2231,7 @@ class GetPatientListResponse_Task extends $pb.GeneratedMessage { $core.String? id, $core.String? name, $core.String? description, - $24.TaskStatus? status, + $25.TaskStatus? status, $core.String? assignedUserId, $core.String? patientId, $core.bool? public, @@ -2276,7 +2276,7 @@ class GetPatientListResponse_Task extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..e<$24.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOS(6, _omitFieldNames ? '' : 'patientId') ..aOB(7, _omitFieldNames ? '' : 'public') @@ -2334,9 +2334,9 @@ class GetPatientListResponse_Task extends $pb.GeneratedMessage { void clearDescription() => clearField(3); @$pb.TagNumber(4) - $24.TaskStatus get status => $_getN(3); + $25.TaskStatus get status => $_getN(3); @$pb.TagNumber(4) - set status($24.TaskStatus v) { setField(4, v); } + set status($25.TaskStatus v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasStatus() => $_has(3); @$pb.TagNumber(4) diff --git a/gen/dart/lib/services/tasks_svc/v1/task_svc.pb.dart b/gen/dart/lib/services/tasks_svc/v1/task_svc.pb.dart index 9503659df..d6357441b 100644 --- a/gen/dart/lib/services/tasks_svc/v1/task_svc.pb.dart +++ b/gen/dart/lib/services/tasks_svc/v1/task_svc.pb.dart @@ -15,7 +15,7 @@ import 'package:protobuf/protobuf.dart' as $pb; import '../../../google/protobuf/timestamp.pb.dart' as $21; import '../../../libs/common/v1/conflict.pb.dart' as $22; -import 'types.pbenum.dart' as $24; +import 'types.pbenum.dart' as $25; class CreateTaskRequest_SubTask extends $pb.GeneratedMessage { factory CreateTaskRequest_SubTask({ @@ -88,7 +88,7 @@ class CreateTaskRequest extends $pb.GeneratedMessage { $core.String? patientId, $core.bool? public, $21.Timestamp? dueAt, - $24.TaskStatus? initialStatus, + $25.TaskStatus? initialStatus, $core.String? assignedUserId, $core.Iterable? subtasks, }) { @@ -129,7 +129,7 @@ class CreateTaskRequest extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'patientId') ..aOB(4, _omitFieldNames ? '' : 'public') ..aOM<$21.Timestamp>(5, _omitFieldNames ? '' : 'dueAt', subBuilder: $21.Timestamp.create) - ..e<$24.TaskStatus>(6, _omitFieldNames ? '' : 'initialStatus', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(6, _omitFieldNames ? '' : 'initialStatus', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOS(7, _omitFieldNames ? '' : 'assignedUserId') ..pc(8, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: CreateTaskRequest_SubTask.create) ..hasRequiredFields = false @@ -204,9 +204,9 @@ class CreateTaskRequest extends $pb.GeneratedMessage { $21.Timestamp ensureDueAt() => $_ensure(4); @$pb.TagNumber(6) - $24.TaskStatus get initialStatus => $_getN(5); + $25.TaskStatus get initialStatus => $_getN(5); @$pb.TagNumber(6) - set initialStatus($24.TaskStatus v) { setField(6, v); } + set initialStatus($25.TaskStatus v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasInitialStatus() => $_has(5); @$pb.TagNumber(6) @@ -295,7 +295,7 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { $core.String? name, $core.String? description, $21.Timestamp? dueAt, - $24.TaskStatus? status, + $25.TaskStatus? status, $core.bool? public, $core.String? consistency, }) { @@ -332,7 +332,7 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') ..aOM<$21.Timestamp>(4, _omitFieldNames ? '' : 'dueAt', subBuilder: $21.Timestamp.create) - ..e<$24.TaskStatus>(5, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(5, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOB(6, _omitFieldNames ? '' : 'public') ..aOS(7, _omitFieldNames ? '' : 'consistency') ..hasRequiredFields = false @@ -398,9 +398,9 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { $21.Timestamp ensureDueAt() => $_ensure(3); @$pb.TagNumber(5) - $24.TaskStatus get status => $_getN(4); + $25.TaskStatus get status => $_getN(4); @$pb.TagNumber(5) - set status($24.TaskStatus v) { setField(5, v); } + set status($25.TaskStatus v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasStatus() => $_has(4); @$pb.TagNumber(5) @@ -718,7 +718,7 @@ class GetTaskResponse extends $pb.GeneratedMessage { $core.String? description, $core.String? assignedUserId, $core.Iterable? subtasks, - $24.TaskStatus? status, + $25.TaskStatus? status, $21.Timestamp? createdAt, $core.bool? public, $21.Timestamp? dueAt, @@ -775,7 +775,7 @@ class GetTaskResponse extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'description') ..aOS(4, _omitFieldNames ? '' : 'assignedUserId') ..pc(5, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: GetTaskResponse_SubTask.create) - ..e<$24.TaskStatus>(6, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(6, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOM<$21.Timestamp>(7, _omitFieldNames ? '' : 'createdAt', subBuilder: $21.Timestamp.create) ..aOB(8, _omitFieldNames ? '' : 'public') ..aOM<$21.Timestamp>(9, _omitFieldNames ? '' : 'dueAt', subBuilder: $21.Timestamp.create) @@ -846,9 +846,9 @@ class GetTaskResponse extends $pb.GeneratedMessage { $core.List get subtasks => $_getList(4); @$pb.TagNumber(6) - $24.TaskStatus get status => $_getN(5); + $25.TaskStatus get status => $_getN(5); @$pb.TagNumber(6) - set status($24.TaskStatus v) { setField(6, v); } + set status($25.TaskStatus v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasStatus() => $_has(5); @$pb.TagNumber(6) @@ -1062,7 +1062,7 @@ class GetTasksByPatientResponse_Task extends $pb.GeneratedMessage { $core.String? id, $core.String? name, $core.String? description, - $24.TaskStatus? status, + $25.TaskStatus? status, $core.String? assignedUserId, $core.String? patientId, $core.bool? public, @@ -1119,7 +1119,7 @@ class GetTasksByPatientResponse_Task extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..e<$24.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOS(6, _omitFieldNames ? '' : 'patientId') ..aOB(7, _omitFieldNames ? '' : 'public') @@ -1180,9 +1180,9 @@ class GetTasksByPatientResponse_Task extends $pb.GeneratedMessage { void clearDescription() => clearField(3); @$pb.TagNumber(4) - $24.TaskStatus get status => $_getN(3); + $25.TaskStatus get status => $_getN(3); @$pb.TagNumber(4) - set status($24.TaskStatus v) { setField(4, v); } + set status($25.TaskStatus v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasStatus() => $_has(3); @$pb.TagNumber(4) @@ -1900,7 +1900,7 @@ class GetAssignedTasksResponse_Task extends $pb.GeneratedMessage { $core.String? id, $core.String? name, $core.String? description, - $24.TaskStatus? status, + $25.TaskStatus? status, $core.String? assignedUserId, GetAssignedTasksResponse_Task_Patient? patient, $core.bool? public, @@ -1957,7 +1957,7 @@ class GetAssignedTasksResponse_Task extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..e<$24.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $24.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $24.TaskStatus.valueOf, enumValues: $24.TaskStatus.values) + ..e<$25.TaskStatus>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: $25.TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: $25.TaskStatus.valueOf, enumValues: $25.TaskStatus.values) ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOM(6, _omitFieldNames ? '' : 'patient', subBuilder: GetAssignedTasksResponse_Task_Patient.create) ..aOB(7, _omitFieldNames ? '' : 'public') @@ -2018,9 +2018,9 @@ class GetAssignedTasksResponse_Task extends $pb.GeneratedMessage { void clearDescription() => clearField(3); @$pb.TagNumber(4) - $24.TaskStatus get status => $_getN(3); + $25.TaskStatus get status => $_getN(3); @$pb.TagNumber(4) - set status($24.TaskStatus v) { setField(4, v); } + set status($25.TaskStatus v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasStatus() => $_has(3); @$pb.TagNumber(4) diff --git a/gen/go/libs/common/v1/types.pb.go b/gen/go/libs/common/v1/types.pb.go new file mode 100644 index 000000000..93ca20da2 --- /dev/null +++ b/gen/go/libs/common/v1/types.pb.go @@ -0,0 +1,158 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) +// source: libs/common/v1/types.proto + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Date struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // information more precise than date information shall be disregarded by clients + Date *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` +} + +func (x *Date) Reset() { + *x = Date{} + if protoimpl.UnsafeEnabled { + mi := &file_libs_common_v1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Date) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Date) ProtoMessage() {} + +func (x *Date) ProtoReflect() protoreflect.Message { + mi := &file_libs_common_v1_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Date.ProtoReflect.Descriptor instead. +func (*Date) Descriptor() ([]byte, []int) { + return file_libs_common_v1_types_proto_rawDescGZIP(), []int{0} +} + +func (x *Date) GetDate() *timestamppb.Timestamp { + if x != nil { + return x.Date + } + return nil +} + +var File_libs_common_v1_types_proto protoreflect.FileDescriptor + +var file_libs_common_v1_types_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, + 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, + 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, + 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x04, 0x64, 0x61, 0x74, 0x65, 0x42, 0x8e, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x69, + 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x2f, + 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_libs_common_v1_types_proto_rawDescOnce sync.Once + file_libs_common_v1_types_proto_rawDescData = file_libs_common_v1_types_proto_rawDesc +) + +func file_libs_common_v1_types_proto_rawDescGZIP() []byte { + file_libs_common_v1_types_proto_rawDescOnce.Do(func() { + file_libs_common_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_libs_common_v1_types_proto_rawDescData) + }) + return file_libs_common_v1_types_proto_rawDescData +} + +var file_libs_common_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_libs_common_v1_types_proto_goTypes = []interface{}{ + (*Date)(nil), // 0: libs.common.v1.Date + (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp +} +var file_libs_common_v1_types_proto_depIdxs = []int32{ + 1, // 0: libs.common.v1.Date.date:type_name -> google.protobuf.Timestamp + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_libs_common_v1_types_proto_init() } +func file_libs_common_v1_types_proto_init() { + if File_libs_common_v1_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_libs_common_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Date); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_libs_common_v1_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_libs_common_v1_types_proto_goTypes, + DependencyIndexes: file_libs_common_v1_types_proto_depIdxs, + MessageInfos: file_libs_common_v1_types_proto_msgTypes, + }.Build() + File_libs_common_v1_types_proto = out.File + file_libs_common_v1_types_proto_rawDesc = nil + file_libs_common_v1_types_proto_goTypes = nil + file_libs_common_v1_types_proto_depIdxs = nil +} diff --git a/gen/go/services/property_svc/v1/property_value_svc.pb.go b/gen/go/services/property_svc/v1/property_value_svc.pb.go index 4b0d48a31..88e1049c4 100644 --- a/gen/go/services/property_svc/v1/property_value_svc.pb.go +++ b/gen/go/services/property_svc/v1/property_value_svc.pb.go @@ -118,7 +118,7 @@ func (x *AttachPropertyValueRequest) GetBoolValue() bool { return false } -func (x *AttachPropertyValueRequest) GetDateValue() *Date { +func (x *AttachPropertyValueRequest) GetDateValue() *v1.Date { if x, ok := x.GetValue().(*AttachPropertyValueRequest_DateValue); ok { return x.DateValue } @@ -170,7 +170,7 @@ type AttachPropertyValueRequest_BoolValue struct { } type AttachPropertyValueRequest_DateValue struct { - DateValue *Date `protobuf:"bytes,6,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE + DateValue *v1.Date `protobuf:"bytes,6,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE } type AttachPropertyValueRequest_DateTimeValue struct { @@ -675,7 +675,7 @@ func (x *GetAttachedPropertyValuesResponse_Value) GetBoolValue() bool { return false } -func (x *GetAttachedPropertyValuesResponse_Value) GetDateValue() *Date { +func (x *GetAttachedPropertyValuesResponse_Value) GetDateValue() *v1.Date { if x, ok := x.GetValue().(*GetAttachedPropertyValuesResponse_Value_DateValue); ok { return x.DateValue } @@ -734,7 +734,7 @@ type GetAttachedPropertyValuesResponse_Value_BoolValue struct { } type GetAttachedPropertyValuesResponse_Value_DateValue struct { - DateValue *Date `protobuf:"bytes,9,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE + DateValue *v1.Date `protobuf:"bytes,9,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE } type GetAttachedPropertyValuesResponse_Value_DateTimeValue struct { @@ -894,196 +894,197 @@ var file_services_property_svc_v1_property_value_svc_proto_rawDesc = []byte{ 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x05, 0x0a, 0x1a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, - 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, - 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, - 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, - 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, - 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, - 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x75, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x73, - 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x45, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, - 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, - 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x75, 0x6c, 0x74, - 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x88, 0x01, 0x01, 0x1a, 0x69, 0x0a, 0x10, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, - 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, - 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x07, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0xb3, 0x01, 0x0a, 0x1b, 0x41, 0x74, 0x74, 0x61, - 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x65, - 0x72, 0x74, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, - 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x69, 0x0a, - 0x13, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, 0x74, + 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x87, 0x05, 0x0a, 0x1a, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1f, + 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, + 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0f, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x75, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, + 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x74, 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x88, 0x01, 0x01, 0x1a, 0x69, 0x0a, 0x10, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6c, + 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x30, + 0x0a, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0xb3, 0x01, 0x0a, 0x1b, 0x41, 0x74, + 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, + 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, + 0x69, 0x0a, 0x13, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x0a, + 0x0a, 0x08, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x22, 0x75, 0x0a, 0x16, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x88, 0x01, 0x01, - 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, - 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x22, 0x75, 0x0a, 0x16, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, - 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, - 0xde, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x61, 0x73, - 0x6b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x5b, 0x0a, 0x0f, 0x70, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, - 0x22, 0xb4, 0x09, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, + 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, + 0x69, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x22, 0xde, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, + 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x74, + 0x61, 0x73, 0x6b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x5b, 0x0a, 0x0f, 0x70, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x72, 0x22, 0xaa, 0x09, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, + 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x1a, 0xa9, 0x08, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x42, + 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, + 0x0b, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x1f, + 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, + 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0f, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x78, 0x0a, 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x0b, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x82, 0x01, 0x0a, + 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, + 0x10, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x31, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x13, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x12, 0x30, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x02, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x1a, 0x59, 0x0a, 0x11, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x1a, 0x8c, 0x01, 0x0a, 0x10, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x78, 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, + 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x32, + 0xb6, 0x02, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x13, 0x41, 0x74, 0x74, + 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, + 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x1a, 0xb3, 0x08, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0a, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x0b, 0x69, - 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x69, 0x73, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0a, - 0x74, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, - 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x78, 0x0a, 0x0c, 0x73, 0x65, - 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x53, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x73, - 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x52, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x53, 0x65, - 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x70, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, - 0x79, 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x30, 0x0a, 0x11, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x43, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x1a, 0x59, - 0x0a, 0x11, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x8c, 0x01, 0x0a, 0x10, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x78, - 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x32, 0xb6, 0x02, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x84, 0x01, 0x0a, 0x13, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, - 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x96, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3a, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, + 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xd1, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x96, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, - 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x3b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0xd1, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x42, 0x15, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1c, 0x67, 0x65, 0x6e, 0x2f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, - 0x79, 0x2d, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, - 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x5c, - 0x56, 0x31, 0xe2, 0x02, 0x23, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x50, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x1c, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2d, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x23, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, + 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x19, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1110,13 +1111,13 @@ var file_services_property_svc_v1_property_value_svc_proto_goTypes = []interface (*GetAttachedPropertyValuesResponse_Value)(nil), // 7: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value (*GetAttachedPropertyValuesResponse_Value_SelectValueOption)(nil), // 8: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.SelectValueOption (*GetAttachedPropertyValuesResponse_Value_MultiSelectValue)(nil), // 9: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.MultiSelectValue - (*Date)(nil), // 10: services.property_svc.v1.Date + (*v1.Date)(nil), // 10: libs.common.v1.Date (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp (*v1.Conflict)(nil), // 12: libs.common.v1.Conflict (FieldType)(0), // 13: services.property_svc.v1.FieldType } var file_services_property_svc_v1_property_value_svc_proto_depIdxs = []int32{ - 10, // 0: services.property_svc.v1.AttachPropertyValueRequest.date_value:type_name -> services.property_svc.v1.Date + 10, // 0: services.property_svc.v1.AttachPropertyValueRequest.date_value:type_name -> libs.common.v1.Date 11, // 1: services.property_svc.v1.AttachPropertyValueRequest.date_time_value:type_name -> google.protobuf.Timestamp 6, // 2: services.property_svc.v1.AttachPropertyValueRequest.multi_select_value:type_name -> services.property_svc.v1.AttachPropertyValueRequest.MultiSelectValue 12, // 3: services.property_svc.v1.AttachPropertyValueResponse.conflict:type_name -> libs.common.v1.Conflict @@ -1124,7 +1125,7 @@ var file_services_property_svc_v1_property_value_svc_proto_depIdxs = []int32{ 3, // 5: services.property_svc.v1.GetAttachedPropertyValuesRequest.patient_matcher:type_name -> services.property_svc.v1.PatientPropertyMatcher 7, // 6: services.property_svc.v1.GetAttachedPropertyValuesResponse.values:type_name -> services.property_svc.v1.GetAttachedPropertyValuesResponse.Value 13, // 7: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.field_type:type_name -> services.property_svc.v1.FieldType - 10, // 8: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.date_value:type_name -> services.property_svc.v1.Date + 10, // 8: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.date_value:type_name -> libs.common.v1.Date 11, // 9: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.date_time_value:type_name -> google.protobuf.Timestamp 8, // 10: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.select_value:type_name -> services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.SelectValueOption 9, // 11: services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.multi_select_value:type_name -> services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.MultiSelectValue diff --git a/gen/go/services/property_svc/v1/types.pb.go b/gen/go/services/property_svc/v1/types.pb.go index 519df131e..910213b7f 100644 --- a/gen/go/services/property_svc/v1/types.pb.go +++ b/gen/go/services/property_svc/v1/types.pb.go @@ -9,7 +9,6 @@ package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ) @@ -134,54 +133,6 @@ func (FieldType) EnumDescriptor() ([]byte, []int) { return file_services_property_svc_v1_types_proto_rawDescGZIP(), []int{1} } -type Date struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // information more precise than date information shall be disregarded by clients - Date *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` -} - -func (x *Date) Reset() { - *x = Date{} - if protoimpl.UnsafeEnabled { - mi := &file_services_property_svc_v1_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Date) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Date) ProtoMessage() {} - -func (x *Date) ProtoReflect() protoreflect.Message { - mi := &file_services_property_svc_v1_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Date.ProtoReflect.Descriptor instead. -func (*Date) Descriptor() ([]byte, []int) { - return file_services_property_svc_v1_types_proto_rawDescGZIP(), []int{0} -} - -func (x *Date) GetDate() *timestamppb.Timestamp { - if x != nil { - return x.Date - } - return nil -} - var File_services_property_svc_v1_types_proto protoreflect.FileDescriptor var file_services_property_svc_v1_types_proto_rawDesc = []byte{ @@ -189,44 +140,39 @@ var file_services_property_svc_v1_types_proto_rawDesc = []byte{ 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x36, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x2a, 0x5c, 0x0a, 0x0b, 0x53, 0x75, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x55, 0x42, 0x4a, - 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x55, 0x42, 0x4a, 0x45, 0x43, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x54, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x01, - 0x12, 0x15, 0x0a, 0x11, 0x53, 0x55, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x10, 0x02, 0x2a, 0xcf, 0x01, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x12, 0x17, 0x0a, - 0x13, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, - 0x4b, 0x42, 0x4f, 0x58, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x46, - 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, - 0x49, 0x4d, 0x45, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, - 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, - 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x07, 0x42, 0xc6, 0x01, 0x0a, 0x1c, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, - 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1c, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2d, - 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x50, 0x58, 0xaa, 0x02, 0x17, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, - 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x23, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2a, 0x5c, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1c, 0x0a, 0x18, 0x53, 0x55, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, + 0x14, 0x53, 0x55, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, + 0x54, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x55, 0x42, 0x4a, 0x45, + 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x41, 0x53, 0x4b, 0x10, 0x02, 0x2a, 0xcf, + 0x01, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, + 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x49, 0x45, 0x4c, + 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x15, 0x0a, + 0x11, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, + 0x45, 0x52, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x42, 0x4f, 0x58, 0x10, 0x03, 0x12, 0x13, 0x0a, + 0x0f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x45, + 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, + 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, + 0x54, 0x10, 0x06, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x07, + 0x42, 0xc6, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x1c, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2d, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x53, 0x50, 0x58, 0xaa, 0x02, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x17, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x79, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x23, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -242,20 +188,16 @@ func file_services_property_svc_v1_types_proto_rawDescGZIP() []byte { } var file_services_property_svc_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_services_property_svc_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_services_property_svc_v1_types_proto_goTypes = []interface{}{ - (SubjectType)(0), // 0: services.property_svc.v1.SubjectType - (FieldType)(0), // 1: services.property_svc.v1.FieldType - (*Date)(nil), // 2: services.property_svc.v1.Date - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (SubjectType)(0), // 0: services.property_svc.v1.SubjectType + (FieldType)(0), // 1: services.property_svc.v1.FieldType } var file_services_property_svc_v1_types_proto_depIdxs = []int32{ - 3, // 0: services.property_svc.v1.Date.date:type_name -> google.protobuf.Timestamp - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } func init() { file_services_property_svc_v1_types_proto_init() } @@ -263,34 +205,19 @@ func file_services_property_svc_v1_types_proto_init() { if File_services_property_svc_v1_types_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_services_property_svc_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Date); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_services_property_svc_v1_types_proto_rawDesc, NumEnums: 2, - NumMessages: 1, + NumMessages: 0, NumExtensions: 0, NumServices: 0, }, GoTypes: file_services_property_svc_v1_types_proto_goTypes, DependencyIndexes: file_services_property_svc_v1_types_proto_depIdxs, EnumInfos: file_services_property_svc_v1_types_proto_enumTypes, - MessageInfos: file_services_property_svc_v1_types_proto_msgTypes, }.Build() File_services_property_svc_v1_types_proto = out.File file_services_property_svc_v1_types_proto_rawDesc = nil diff --git a/gen/go/services/task_svc/v1/patient_svc.pb.go b/gen/go/services/task_svc/v1/patient_svc.pb.go index 02dc6c042..68fdaa3e7 100644 --- a/gen/go/services/task_svc/v1/patient_svc.pb.go +++ b/gen/go/services/task_svc/v1/patient_svc.pb.go @@ -7,6 +7,7 @@ package v1 import ( + v1 "gen/libs/common/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -20,6 +21,58 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type Gender int32 + +const ( + Gender_GENDER_UNSPECIFIED Gender = 0 + Gender_GENDER_FEMALE Gender = 1 + Gender_GENDER_MALE Gender = 2 + Gender_GENDER_DIVERSE Gender = 3 +) + +// Enum value maps for Gender. +var ( + Gender_name = map[int32]string{ + 0: "GENDER_UNSPECIFIED", + 1: "GENDER_FEMALE", + 2: "GENDER_MALE", + 3: "GENDER_DIVERSE", + } + Gender_value = map[string]int32{ + "GENDER_UNSPECIFIED": 0, + "GENDER_FEMALE": 1, + "GENDER_MALE": 2, + "GENDER_DIVERSE": 3, + } +) + +func (x Gender) Enum() *Gender { + p := new(Gender) + *p = x + return p +} + +func (x Gender) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Gender) Descriptor() protoreflect.EnumDescriptor { + return file_services_task_svc_v1_patient_svc_proto_enumTypes[0].Descriptor() +} + +func (Gender) Type() protoreflect.EnumType { + return &file_services_task_svc_v1_patient_svc_proto_enumTypes[0] +} + +func (x Gender) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Gender.Descriptor instead. +func (Gender) EnumDescriptor() ([]byte, []int) { + return file_services_task_svc_v1_patient_svc_proto_rawDescGZIP(), []int{0} +} + type GetPatientDetailsResponse_TaskStatus int32 const ( @@ -56,11 +109,11 @@ func (x GetPatientDetailsResponse_TaskStatus) String() string { } func (GetPatientDetailsResponse_TaskStatus) Descriptor() protoreflect.EnumDescriptor { - return file_services_task_svc_v1_patient_svc_proto_enumTypes[0].Descriptor() + return file_services_task_svc_v1_patient_svc_proto_enumTypes[1].Descriptor() } func (GetPatientDetailsResponse_TaskStatus) Type() protoreflect.EnumType { - return &file_services_task_svc_v1_patient_svc_proto_enumTypes[0] + return &file_services_task_svc_v1_patient_svc_proto_enumTypes[1] } func (x GetPatientDetailsResponse_TaskStatus) Number() protoreflect.EnumNumber { @@ -108,11 +161,11 @@ func (x GetPatientListResponse_TaskStatus) String() string { } func (GetPatientListResponse_TaskStatus) Descriptor() protoreflect.EnumDescriptor { - return file_services_task_svc_v1_patient_svc_proto_enumTypes[1].Descriptor() + return file_services_task_svc_v1_patient_svc_proto_enumTypes[2].Descriptor() } func (GetPatientListResponse_TaskStatus) Type() protoreflect.EnumType { - return &file_services_task_svc_v1_patient_svc_proto_enumTypes[1] + return &file_services_task_svc_v1_patient_svc_proto_enumTypes[2] } func (x GetPatientListResponse_TaskStatus) Number() protoreflect.EnumNumber { @@ -129,8 +182,10 @@ type CreatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" - Notes string `protobuf:"bytes,2,opt,name=notes,proto3" json:"notes,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" + Notes string `protobuf:"bytes,2,opt,name=notes,proto3" json:"notes,omitempty"` + Gender Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=services.task_svc.v1.Gender" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` } func (x *CreatePatientRequest) Reset() { @@ -179,6 +234,20 @@ func (x *CreatePatientRequest) GetNotes() string { return "" } +func (x *CreatePatientRequest) GetGender() Gender { + if x != nil { + return x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *CreatePatientRequest) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + type CreatePatientResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -284,9 +353,11 @@ type GetPatientResponse struct { // Deprecated: Marked as deprecated in services/task_svc/v1/patient_svc.proto. BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` // Deprecated: Marked as deprecated in services/task_svc/v1/patient_svc.proto. - WardId *string `protobuf:"bytes,5,opt,name=ward_id,json=wardId,proto3,oneof" json:"ward_id,omitempty"` - Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` - Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` + WardId *string `protobuf:"bytes,5,opt,name=ward_id,json=wardId,proto3,oneof" json:"ward_id,omitempty"` + Gender *Gender `protobuf:"varint,9,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,10,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` + Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` } func (x *GetPatientResponse) Reset() { @@ -358,6 +429,20 @@ func (x *GetPatientResponse) GetWardId() string { return "" } +func (x *GetPatientResponse) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *GetPatientResponse) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientResponse) GetRoom() *GetPatientResponse_Room { if x != nil { return x.Room @@ -510,10 +595,12 @@ type GetPatientByBedResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` } func (x *GetPatientByBedResponse) Reset() { @@ -569,6 +656,20 @@ func (x *GetPatientByBedResponse) GetNotes() string { return "" } +func (x *GetPatientByBedResponse) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *GetPatientByBedResponse) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientByBedResponse) GetBedId() string { if x != nil && x.BedId != nil { return *x.BedId @@ -854,9 +955,11 @@ type UpdatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" - HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` - Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" + HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` + Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + Gender *Gender `protobuf:"varint,4,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,5,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` } func (x *UpdatePatientRequest) Reset() { @@ -912,6 +1015,20 @@ func (x *UpdatePatientRequest) GetNotes() string { return "" } +func (x *UpdatePatientRequest) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *UpdatePatientRequest) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + type UpdatePatientResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1275,6 +1392,8 @@ type GetPatientDetailsResponse struct { Room *GetPatientDetailsResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetPatientDetailsResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` IsDischarged bool `protobuf:"varint,9,opt,name=is_discharged,json=isDischarged,proto3" json:"is_discharged,omitempty"` + Gender *Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,11,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` } func (x *GetPatientDetailsResponse) Reset() { @@ -1373,6 +1492,20 @@ func (x *GetPatientDetailsResponse) GetIsDischarged() bool { return false } +func (x *GetPatientDetailsResponse) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *GetPatientDetailsResponse) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + type GetPatientListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1691,10 +1824,12 @@ type GetPatientsByWardResponse_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` } func (x *GetPatientsByWardResponse_Patient) Reset() { @@ -1750,6 +1885,20 @@ func (x *GetPatientsByWardResponse_Patient) GetNotes() string { return "" } +func (x *GetPatientsByWardResponse_Patient) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *GetPatientsByWardResponse_Patient) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientsByWardResponse_Patient) GetBedId() string { if x != nil && x.BedId != nil { return *x.BedId @@ -2419,6 +2568,8 @@ type GetPatientListResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientListResponse_Task `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` } @@ -2475,6 +2626,20 @@ func (x *GetPatientListResponse_Patient) GetNotes() string { return "" } +func (x *GetPatientListResponse_Patient) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *GetPatientListResponse_Patient) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientListResponse_Patient) GetTasks() []*GetPatientListResponse_Task { if x != nil { return x.Tasks @@ -2610,6 +2775,8 @@ type GetPatientListResponse_PatientWithRoomAndBed struct { Room *GetPatientListResponse_Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` Bed *GetPatientListResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3" json:"bed,omitempty"` Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientListResponse_Task `protobuf:"bytes,6,rep,name=tasks,proto3" json:"tasks,omitempty"` } @@ -2680,6 +2847,20 @@ func (x *GetPatientListResponse_PatientWithRoomAndBed) GetNotes() string { return "" } +func (x *GetPatientListResponse_PatientWithRoomAndBed) GetGender() Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return Gender_GENDER_UNSPECIFIED +} + +func (x *GetPatientListResponse_PatientWithRoomAndBed) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientListResponse_PatientWithRoomAndBed) GetTasks() []*GetPatientListResponse_Task { if x != nil { return x.Tasks @@ -2859,257 +3040,313 @@ var file_services_task_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x0a, 0x26, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x22, 0x68, - 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, - 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, - 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x27, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xdd, 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, - 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, - 0x1e, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, - 0x20, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x02, 0x18, 0x01, 0x48, 0x01, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, - 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x02, - 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1a, + 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x01, 0x0a, 0x14, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, + 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, + 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0d, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, + 0x42, 0x69, 0x72, 0x74, 0x68, 0x22, 0x27, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x23, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0xf4, 0x04, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, + 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, + 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x06, + 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, + 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x07, + 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, + 0x01, 0x48, 0x01, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x39, + 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x02, 0x52, 0x06, + 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, + 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x42, 0x65, 0x64, 0x48, 0x03, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x1a, 0x43, - 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, - 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, - 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, - 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, - 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, - 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, - 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, - 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, - 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x33, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, - 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x22, 0x85, 0x02, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x53, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x92, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, - 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, - 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xce, 0x03, 0x0a, 0x22, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x53, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, - 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xd2, 0x02, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, + 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x04, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, + 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x05, 0x52, 0x03, 0x62, + 0x65, 0x64, 0x88, 0x01, 0x01, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x55, 0x0a, 0x04, 0x62, 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x41, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, - 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, 0x64, 0x73, 0x1a, 0xce, 0x01, 0x0a, 0x03, 0x42, 0x65, 0x64, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x1a, 0x2d, - 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, - 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf2, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, + 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, + 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, + 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, + 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xb9, 0x02, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, + 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, + 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, + 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, + 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, + 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, + 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, + 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0x9c, 0x03, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x08, 0x70, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x1a, 0xa9, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, + 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, + 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, + 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, + 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, + 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, + 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xce, 0x03, 0x0a, 0x22, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x53, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, + 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xd2, 0x02, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, 0x04, 0x62, 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, + 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, 0x64, 0x73, 0x1a, 0xce, 0x01, 0x0a, 0x03, 0x42, + 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, + 0x1a, 0x2d, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, + 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf2, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, + 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, + 0x6e, 0x64, 0x42, 0x65, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, + 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, + 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0xf4, 0x01, 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, + 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x04, 0x72, + 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, + 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x45, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x73, + 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x22, 0xc1, 0x02, 0x0a, + 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, + 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, + 0x02, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x61, 0x74, + 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, + 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, + 0x74, 0x65, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, + 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, + 0x22, 0x17, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x0a, 0x10, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, + 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, + 0x65, 0x64, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x12, 0x55, 0x6e, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x15, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, + 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x92, 0x0a, 0x0a, 0x19, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x68, + 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, + 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, + 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, - 0x42, 0x65, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x73, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x43, - 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, - 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, - 0x64, 0x49, 0x64, 0x1a, 0xf4, 0x01, 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, - 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, - 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x04, 0x72, 0x6f, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x77, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, + 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x04, 0x72, + 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, + 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x03, 0x62, 0x65, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, - 0x6f, 0x6f, 0x6d, 0x12, 0x45, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x33, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, - 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, - 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, - 0x1c, 0x0a, 0x1a, 0x5f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, 0x0a, - 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x39, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x24, 0x0a, 0x12, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x0a, - 0x17, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x22, 0xfb, 0x08, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, + 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, + 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, + 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x06, 0x67, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x03, 0x52, 0x06, 0x67, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, + 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x61, 0x74, 0x65, 0x48, 0x04, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, + 0x74, 0x68, 0x88, 0x01, 0x01, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, + 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0xb8, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x12, 0x20, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x58, + 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, - 0x01, 0x12, 0x4a, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, - 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, - 0x65, 0x64, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, - 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x1a, 0xb8, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x52, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x3a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x58, 0x0a, 0x08, 0x73, - 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x72, 0x0a, - 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x54, - 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, - 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, 0x4f, 0x10, 0x01, 0x12, 0x1b, - 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, - 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, - 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, - 0x03, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, - 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x41, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, + 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x22, 0x72, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, + 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, 0x4f, 0x10, + 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, + 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, + 0x4e, 0x45, 0x10, 0x03, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, + 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, + 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, + 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, - 0x64, 0x22, 0xe2, 0x0b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x64, 0x22, 0x90, 0x0e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, @@ -3129,198 +3366,222 @@ var file_services_task_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xb4, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xcb, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x29, 0x0a, - 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0xcd, 0x02, - 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, - 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, - 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, - 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x42, 0x0a, 0x03, 0x62, 0x65, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0xb2, 0x03, - 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, - 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x12, 0x55, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, - 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, - 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x22, 0x72, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, - 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, - 0x4f, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, - 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x18, - 0x0a, 0x16, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x0c, 0x0a, 0x0e, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, + 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, + 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, + 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, + 0x69, 0x72, 0x74, 0x68, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, + 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, + 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, + 0x72, 0x64, 0x49, 0x64, 0x1a, 0xe4, 0x03, 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, + 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x72, 0x6f, + 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, + 0x6d, 0x12, 0x42, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, 0x2c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, - 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, + 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x67, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, - 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, - 0x64, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x91, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, - 0x61, 0x72, 0x64, 0x12, 0x37, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, + 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, + 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x09, + 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x1a, 0xb2, 0x03, 0x0a, 0x04, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x12, 0x55, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, - 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x6a, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, + 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x22, 0x72, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, + 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, 0x4f, 0x10, + 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, + 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, + 0x4e, 0x45, 0x10, 0x03, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x18, 0x0a, 0x16, + 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x12, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, + 0x45, 0x52, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, + 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, + 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, + 0x32, 0xbe, 0x0c, 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x61, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x09, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x70, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, - 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0b, - 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x73, 0x65, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x91, 0x01, 0x0a, + 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x37, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x73, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, - 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2e, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x6d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, + 0x64, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0b, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x42, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x10, 0x44, 0x69, + 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, - 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, - 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0e, 0x52, 0x65, - 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb3, 0x01, 0x0a, 0x18, 0x63, 0x6f, - 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, - 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x18, 0x67, 0x65, 0x6e, 0x2f, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2d, 0x73, 0x76, 0x63, - 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, - 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, + 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x42, 0xb3, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x18, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x2d, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, + 0x58, 0xaa, 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x15, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3335,116 +3596,134 @@ func file_services_task_svc_v1_patient_svc_proto_rawDescGZIP() []byte { return file_services_task_svc_v1_patient_svc_proto_rawDescData } -var file_services_task_svc_v1_patient_svc_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_services_task_svc_v1_patient_svc_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_services_task_svc_v1_patient_svc_proto_msgTypes = make([]protoimpl.MessageInfo, 47) var file_services_task_svc_v1_patient_svc_proto_goTypes = []interface{}{ - (GetPatientDetailsResponse_TaskStatus)(0), // 0: services.task_svc.v1.GetPatientDetailsResponse.TaskStatus - (GetPatientListResponse_TaskStatus)(0), // 1: services.task_svc.v1.GetPatientListResponse.TaskStatus - (*CreatePatientRequest)(nil), // 2: services.task_svc.v1.CreatePatientRequest - (*CreatePatientResponse)(nil), // 3: services.task_svc.v1.CreatePatientResponse - (*GetPatientRequest)(nil), // 4: services.task_svc.v1.GetPatientRequest - (*GetPatientResponse)(nil), // 5: services.task_svc.v1.GetPatientResponse - (*DeletePatientRequest)(nil), // 6: services.task_svc.v1.DeletePatientRequest - (*DeletePatientResponse)(nil), // 7: services.task_svc.v1.DeletePatientResponse - (*GetPatientByBedRequest)(nil), // 8: services.task_svc.v1.GetPatientByBedRequest - (*GetPatientByBedResponse)(nil), // 9: services.task_svc.v1.GetPatientByBedResponse - (*GetPatientsByWardRequest)(nil), // 10: services.task_svc.v1.GetPatientsByWardRequest - (*GetPatientsByWardResponse)(nil), // 11: services.task_svc.v1.GetPatientsByWardResponse - (*GetPatientAssignmentByWardRequest)(nil), // 12: services.task_svc.v1.GetPatientAssignmentByWardRequest - (*GetPatientAssignmentByWardResponse)(nil), // 13: services.task_svc.v1.GetPatientAssignmentByWardResponse - (*GetRecentPatientsRequest)(nil), // 14: services.task_svc.v1.GetRecentPatientsRequest - (*GetRecentPatientsResponse)(nil), // 15: services.task_svc.v1.GetRecentPatientsResponse - (*UpdatePatientRequest)(nil), // 16: services.task_svc.v1.UpdatePatientRequest - (*UpdatePatientResponse)(nil), // 17: services.task_svc.v1.UpdatePatientResponse - (*AssignBedRequest)(nil), // 18: services.task_svc.v1.AssignBedRequest - (*AssignBedResponse)(nil), // 19: services.task_svc.v1.AssignBedResponse - (*UnassignBedRequest)(nil), // 20: services.task_svc.v1.UnassignBedRequest - (*UnassignBedResponse)(nil), // 21: services.task_svc.v1.UnassignBedResponse - (*DischargePatientRequest)(nil), // 22: services.task_svc.v1.DischargePatientRequest - (*DischargePatientResponse)(nil), // 23: services.task_svc.v1.DischargePatientResponse - (*GetPatientDetailsRequest)(nil), // 24: services.task_svc.v1.GetPatientDetailsRequest - (*GetPatientDetailsResponse)(nil), // 25: services.task_svc.v1.GetPatientDetailsResponse - (*GetPatientListRequest)(nil), // 26: services.task_svc.v1.GetPatientListRequest - (*GetPatientListResponse)(nil), // 27: services.task_svc.v1.GetPatientListResponse - (*ReadmitPatientRequest)(nil), // 28: services.task_svc.v1.ReadmitPatientRequest - (*ReadmitPatientResponse)(nil), // 29: services.task_svc.v1.ReadmitPatientResponse - (*GetPatientResponse_Room)(nil), // 30: services.task_svc.v1.GetPatientResponse.Room - (*GetPatientResponse_Bed)(nil), // 31: services.task_svc.v1.GetPatientResponse.Bed - (*GetPatientsByWardResponse_Patient)(nil), // 32: services.task_svc.v1.GetPatientsByWardResponse.Patient - (*GetPatientAssignmentByWardResponse_Room)(nil), // 33: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room - (*GetPatientAssignmentByWardResponse_Room_Bed)(nil), // 34: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed - (*GetPatientAssignmentByWardResponse_Room_Bed_Patient)(nil), // 35: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - (*GetRecentPatientsResponse_Bed)(nil), // 36: services.task_svc.v1.GetRecentPatientsResponse.Bed - (*GetRecentPatientsResponse_Room)(nil), // 37: services.task_svc.v1.GetRecentPatientsResponse.Room - (*GetRecentPatientsResponse_PatientWithRoomAndBed)(nil), // 38: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed - (*GetPatientDetailsResponse_Room)(nil), // 39: services.task_svc.v1.GetPatientDetailsResponse.Room - (*GetPatientDetailsResponse_Bed)(nil), // 40: services.task_svc.v1.GetPatientDetailsResponse.Bed - (*GetPatientDetailsResponse_Task)(nil), // 41: services.task_svc.v1.GetPatientDetailsResponse.Task - (*GetPatientDetailsResponse_Task_SubTask)(nil), // 42: services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask - (*GetPatientListResponse_Patient)(nil), // 43: services.task_svc.v1.GetPatientListResponse.Patient - (*GetPatientListResponse_Bed)(nil), // 44: services.task_svc.v1.GetPatientListResponse.Bed - (*GetPatientListResponse_Room)(nil), // 45: services.task_svc.v1.GetPatientListResponse.Room - (*GetPatientListResponse_PatientWithRoomAndBed)(nil), // 46: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed - (*GetPatientListResponse_Task)(nil), // 47: services.task_svc.v1.GetPatientListResponse.Task - (*GetPatientListResponse_Task_SubTask)(nil), // 48: services.task_svc.v1.GetPatientListResponse.Task.SubTask + (Gender)(0), // 0: services.task_svc.v1.Gender + (GetPatientDetailsResponse_TaskStatus)(0), // 1: services.task_svc.v1.GetPatientDetailsResponse.TaskStatus + (GetPatientListResponse_TaskStatus)(0), // 2: services.task_svc.v1.GetPatientListResponse.TaskStatus + (*CreatePatientRequest)(nil), // 3: services.task_svc.v1.CreatePatientRequest + (*CreatePatientResponse)(nil), // 4: services.task_svc.v1.CreatePatientResponse + (*GetPatientRequest)(nil), // 5: services.task_svc.v1.GetPatientRequest + (*GetPatientResponse)(nil), // 6: services.task_svc.v1.GetPatientResponse + (*DeletePatientRequest)(nil), // 7: services.task_svc.v1.DeletePatientRequest + (*DeletePatientResponse)(nil), // 8: services.task_svc.v1.DeletePatientResponse + (*GetPatientByBedRequest)(nil), // 9: services.task_svc.v1.GetPatientByBedRequest + (*GetPatientByBedResponse)(nil), // 10: services.task_svc.v1.GetPatientByBedResponse + (*GetPatientsByWardRequest)(nil), // 11: services.task_svc.v1.GetPatientsByWardRequest + (*GetPatientsByWardResponse)(nil), // 12: services.task_svc.v1.GetPatientsByWardResponse + (*GetPatientAssignmentByWardRequest)(nil), // 13: services.task_svc.v1.GetPatientAssignmentByWardRequest + (*GetPatientAssignmentByWardResponse)(nil), // 14: services.task_svc.v1.GetPatientAssignmentByWardResponse + (*GetRecentPatientsRequest)(nil), // 15: services.task_svc.v1.GetRecentPatientsRequest + (*GetRecentPatientsResponse)(nil), // 16: services.task_svc.v1.GetRecentPatientsResponse + (*UpdatePatientRequest)(nil), // 17: services.task_svc.v1.UpdatePatientRequest + (*UpdatePatientResponse)(nil), // 18: services.task_svc.v1.UpdatePatientResponse + (*AssignBedRequest)(nil), // 19: services.task_svc.v1.AssignBedRequest + (*AssignBedResponse)(nil), // 20: services.task_svc.v1.AssignBedResponse + (*UnassignBedRequest)(nil), // 21: services.task_svc.v1.UnassignBedRequest + (*UnassignBedResponse)(nil), // 22: services.task_svc.v1.UnassignBedResponse + (*DischargePatientRequest)(nil), // 23: services.task_svc.v1.DischargePatientRequest + (*DischargePatientResponse)(nil), // 24: services.task_svc.v1.DischargePatientResponse + (*GetPatientDetailsRequest)(nil), // 25: services.task_svc.v1.GetPatientDetailsRequest + (*GetPatientDetailsResponse)(nil), // 26: services.task_svc.v1.GetPatientDetailsResponse + (*GetPatientListRequest)(nil), // 27: services.task_svc.v1.GetPatientListRequest + (*GetPatientListResponse)(nil), // 28: services.task_svc.v1.GetPatientListResponse + (*ReadmitPatientRequest)(nil), // 29: services.task_svc.v1.ReadmitPatientRequest + (*ReadmitPatientResponse)(nil), // 30: services.task_svc.v1.ReadmitPatientResponse + (*GetPatientResponse_Room)(nil), // 31: services.task_svc.v1.GetPatientResponse.Room + (*GetPatientResponse_Bed)(nil), // 32: services.task_svc.v1.GetPatientResponse.Bed + (*GetPatientsByWardResponse_Patient)(nil), // 33: services.task_svc.v1.GetPatientsByWardResponse.Patient + (*GetPatientAssignmentByWardResponse_Room)(nil), // 34: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room + (*GetPatientAssignmentByWardResponse_Room_Bed)(nil), // 35: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed + (*GetPatientAssignmentByWardResponse_Room_Bed_Patient)(nil), // 36: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient + (*GetRecentPatientsResponse_Bed)(nil), // 37: services.task_svc.v1.GetRecentPatientsResponse.Bed + (*GetRecentPatientsResponse_Room)(nil), // 38: services.task_svc.v1.GetRecentPatientsResponse.Room + (*GetRecentPatientsResponse_PatientWithRoomAndBed)(nil), // 39: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed + (*GetPatientDetailsResponse_Room)(nil), // 40: services.task_svc.v1.GetPatientDetailsResponse.Room + (*GetPatientDetailsResponse_Bed)(nil), // 41: services.task_svc.v1.GetPatientDetailsResponse.Bed + (*GetPatientDetailsResponse_Task)(nil), // 42: services.task_svc.v1.GetPatientDetailsResponse.Task + (*GetPatientDetailsResponse_Task_SubTask)(nil), // 43: services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask + (*GetPatientListResponse_Patient)(nil), // 44: services.task_svc.v1.GetPatientListResponse.Patient + (*GetPatientListResponse_Bed)(nil), // 45: services.task_svc.v1.GetPatientListResponse.Bed + (*GetPatientListResponse_Room)(nil), // 46: services.task_svc.v1.GetPatientListResponse.Room + (*GetPatientListResponse_PatientWithRoomAndBed)(nil), // 47: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed + (*GetPatientListResponse_Task)(nil), // 48: services.task_svc.v1.GetPatientListResponse.Task + (*GetPatientListResponse_Task_SubTask)(nil), // 49: services.task_svc.v1.GetPatientListResponse.Task.SubTask + (*v1.Date)(nil), // 50: libs.common.v1.Date } var file_services_task_svc_v1_patient_svc_proto_depIdxs = []int32{ - 30, // 0: services.task_svc.v1.GetPatientResponse.room:type_name -> services.task_svc.v1.GetPatientResponse.Room - 31, // 1: services.task_svc.v1.GetPatientResponse.bed:type_name -> services.task_svc.v1.GetPatientResponse.Bed - 32, // 2: services.task_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.task_svc.v1.GetPatientsByWardResponse.Patient - 33, // 3: services.task_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room - 38, // 4: services.task_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed - 41, // 5: services.task_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task - 39, // 6: services.task_svc.v1.GetPatientDetailsResponse.room:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Room - 40, // 7: services.task_svc.v1.GetPatientDetailsResponse.bed:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Bed - 46, // 8: services.task_svc.v1.GetPatientListResponse.active:type_name -> services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed - 43, // 9: services.task_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient - 43, // 10: services.task_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient - 34, // 11: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed - 35, // 12: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - 37, // 13: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Room - 36, // 14: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Bed - 0, // 15: services.task_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.task_svc.v1.GetPatientDetailsResponse.TaskStatus - 42, // 16: services.task_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask - 47, // 17: services.task_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task - 45, // 18: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetPatientListResponse.Room - 44, // 19: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetPatientListResponse.Bed - 47, // 20: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task - 1, // 21: services.task_svc.v1.GetPatientListResponse.Task.status:type_name -> services.task_svc.v1.GetPatientListResponse.TaskStatus - 48, // 22: services.task_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task.SubTask - 2, // 23: services.task_svc.v1.PatientService.CreatePatient:input_type -> services.task_svc.v1.CreatePatientRequest - 4, // 24: services.task_svc.v1.PatientService.GetPatient:input_type -> services.task_svc.v1.GetPatientRequest - 8, // 25: services.task_svc.v1.PatientService.GetPatientByBed:input_type -> services.task_svc.v1.GetPatientByBedRequest - 10, // 26: services.task_svc.v1.PatientService.GetPatientsByWard:input_type -> services.task_svc.v1.GetPatientsByWardRequest - 12, // 27: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.task_svc.v1.GetPatientAssignmentByWardRequest - 14, // 28: services.task_svc.v1.PatientService.GetRecentPatients:input_type -> services.task_svc.v1.GetRecentPatientsRequest - 16, // 29: services.task_svc.v1.PatientService.UpdatePatient:input_type -> services.task_svc.v1.UpdatePatientRequest - 18, // 30: services.task_svc.v1.PatientService.AssignBed:input_type -> services.task_svc.v1.AssignBedRequest - 20, // 31: services.task_svc.v1.PatientService.UnassignBed:input_type -> services.task_svc.v1.UnassignBedRequest - 22, // 32: services.task_svc.v1.PatientService.DischargePatient:input_type -> services.task_svc.v1.DischargePatientRequest - 24, // 33: services.task_svc.v1.PatientService.GetPatientDetails:input_type -> services.task_svc.v1.GetPatientDetailsRequest - 26, // 34: services.task_svc.v1.PatientService.GetPatientList:input_type -> services.task_svc.v1.GetPatientListRequest - 6, // 35: services.task_svc.v1.PatientService.DeletePatient:input_type -> services.task_svc.v1.DeletePatientRequest - 28, // 36: services.task_svc.v1.PatientService.ReadmitPatient:input_type -> services.task_svc.v1.ReadmitPatientRequest - 3, // 37: services.task_svc.v1.PatientService.CreatePatient:output_type -> services.task_svc.v1.CreatePatientResponse - 5, // 38: services.task_svc.v1.PatientService.GetPatient:output_type -> services.task_svc.v1.GetPatientResponse - 9, // 39: services.task_svc.v1.PatientService.GetPatientByBed:output_type -> services.task_svc.v1.GetPatientByBedResponse - 11, // 40: services.task_svc.v1.PatientService.GetPatientsByWard:output_type -> services.task_svc.v1.GetPatientsByWardResponse - 13, // 41: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.task_svc.v1.GetPatientAssignmentByWardResponse - 15, // 42: services.task_svc.v1.PatientService.GetRecentPatients:output_type -> services.task_svc.v1.GetRecentPatientsResponse - 17, // 43: services.task_svc.v1.PatientService.UpdatePatient:output_type -> services.task_svc.v1.UpdatePatientResponse - 19, // 44: services.task_svc.v1.PatientService.AssignBed:output_type -> services.task_svc.v1.AssignBedResponse - 21, // 45: services.task_svc.v1.PatientService.UnassignBed:output_type -> services.task_svc.v1.UnassignBedResponse - 23, // 46: services.task_svc.v1.PatientService.DischargePatient:output_type -> services.task_svc.v1.DischargePatientResponse - 25, // 47: services.task_svc.v1.PatientService.GetPatientDetails:output_type -> services.task_svc.v1.GetPatientDetailsResponse - 27, // 48: services.task_svc.v1.PatientService.GetPatientList:output_type -> services.task_svc.v1.GetPatientListResponse - 7, // 49: services.task_svc.v1.PatientService.DeletePatient:output_type -> services.task_svc.v1.DeletePatientResponse - 29, // 50: services.task_svc.v1.PatientService.ReadmitPatient:output_type -> services.task_svc.v1.ReadmitPatientResponse - 37, // [37:51] is the sub-list for method output_type - 23, // [23:37] is the sub-list for method input_type - 23, // [23:23] is the sub-list for extension type_name - 23, // [23:23] is the sub-list for extension extendee - 0, // [0:23] is the sub-list for field type_name + 0, // 0: services.task_svc.v1.CreatePatientRequest.gender:type_name -> services.task_svc.v1.Gender + 50, // 1: services.task_svc.v1.CreatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date + 0, // 2: services.task_svc.v1.GetPatientResponse.gender:type_name -> services.task_svc.v1.Gender + 50, // 3: services.task_svc.v1.GetPatientResponse.date_of_birth:type_name -> libs.common.v1.Date + 31, // 4: services.task_svc.v1.GetPatientResponse.room:type_name -> services.task_svc.v1.GetPatientResponse.Room + 32, // 5: services.task_svc.v1.GetPatientResponse.bed:type_name -> services.task_svc.v1.GetPatientResponse.Bed + 0, // 6: services.task_svc.v1.GetPatientByBedResponse.gender:type_name -> services.task_svc.v1.Gender + 50, // 7: services.task_svc.v1.GetPatientByBedResponse.date_of_birth:type_name -> libs.common.v1.Date + 33, // 8: services.task_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.task_svc.v1.GetPatientsByWardResponse.Patient + 34, // 9: services.task_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room + 39, // 10: services.task_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed + 0, // 11: services.task_svc.v1.UpdatePatientRequest.gender:type_name -> services.task_svc.v1.Gender + 50, // 12: services.task_svc.v1.UpdatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date + 42, // 13: services.task_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task + 40, // 14: services.task_svc.v1.GetPatientDetailsResponse.room:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Room + 41, // 15: services.task_svc.v1.GetPatientDetailsResponse.bed:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Bed + 0, // 16: services.task_svc.v1.GetPatientDetailsResponse.gender:type_name -> services.task_svc.v1.Gender + 50, // 17: services.task_svc.v1.GetPatientDetailsResponse.date_of_birth:type_name -> libs.common.v1.Date + 47, // 18: services.task_svc.v1.GetPatientListResponse.active:type_name -> services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed + 44, // 19: services.task_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient + 44, // 20: services.task_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient + 0, // 21: services.task_svc.v1.GetPatientsByWardResponse.Patient.gender:type_name -> services.task_svc.v1.Gender + 50, // 22: services.task_svc.v1.GetPatientsByWardResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date + 35, // 23: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed + 36, // 24: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient + 38, // 25: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Room + 37, // 26: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Bed + 1, // 27: services.task_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.task_svc.v1.GetPatientDetailsResponse.TaskStatus + 43, // 28: services.task_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask + 0, // 29: services.task_svc.v1.GetPatientListResponse.Patient.gender:type_name -> services.task_svc.v1.Gender + 50, // 30: services.task_svc.v1.GetPatientListResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date + 48, // 31: services.task_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task + 46, // 32: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetPatientListResponse.Room + 45, // 33: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetPatientListResponse.Bed + 0, // 34: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.gender:type_name -> services.task_svc.v1.Gender + 50, // 35: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.date_of_birth:type_name -> libs.common.v1.Date + 48, // 36: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task + 2, // 37: services.task_svc.v1.GetPatientListResponse.Task.status:type_name -> services.task_svc.v1.GetPatientListResponse.TaskStatus + 49, // 38: services.task_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task.SubTask + 3, // 39: services.task_svc.v1.PatientService.CreatePatient:input_type -> services.task_svc.v1.CreatePatientRequest + 5, // 40: services.task_svc.v1.PatientService.GetPatient:input_type -> services.task_svc.v1.GetPatientRequest + 9, // 41: services.task_svc.v1.PatientService.GetPatientByBed:input_type -> services.task_svc.v1.GetPatientByBedRequest + 11, // 42: services.task_svc.v1.PatientService.GetPatientsByWard:input_type -> services.task_svc.v1.GetPatientsByWardRequest + 13, // 43: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.task_svc.v1.GetPatientAssignmentByWardRequest + 15, // 44: services.task_svc.v1.PatientService.GetRecentPatients:input_type -> services.task_svc.v1.GetRecentPatientsRequest + 17, // 45: services.task_svc.v1.PatientService.UpdatePatient:input_type -> services.task_svc.v1.UpdatePatientRequest + 19, // 46: services.task_svc.v1.PatientService.AssignBed:input_type -> services.task_svc.v1.AssignBedRequest + 21, // 47: services.task_svc.v1.PatientService.UnassignBed:input_type -> services.task_svc.v1.UnassignBedRequest + 23, // 48: services.task_svc.v1.PatientService.DischargePatient:input_type -> services.task_svc.v1.DischargePatientRequest + 25, // 49: services.task_svc.v1.PatientService.GetPatientDetails:input_type -> services.task_svc.v1.GetPatientDetailsRequest + 27, // 50: services.task_svc.v1.PatientService.GetPatientList:input_type -> services.task_svc.v1.GetPatientListRequest + 7, // 51: services.task_svc.v1.PatientService.DeletePatient:input_type -> services.task_svc.v1.DeletePatientRequest + 29, // 52: services.task_svc.v1.PatientService.ReadmitPatient:input_type -> services.task_svc.v1.ReadmitPatientRequest + 4, // 53: services.task_svc.v1.PatientService.CreatePatient:output_type -> services.task_svc.v1.CreatePatientResponse + 6, // 54: services.task_svc.v1.PatientService.GetPatient:output_type -> services.task_svc.v1.GetPatientResponse + 10, // 55: services.task_svc.v1.PatientService.GetPatientByBed:output_type -> services.task_svc.v1.GetPatientByBedResponse + 12, // 56: services.task_svc.v1.PatientService.GetPatientsByWard:output_type -> services.task_svc.v1.GetPatientsByWardResponse + 14, // 57: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.task_svc.v1.GetPatientAssignmentByWardResponse + 16, // 58: services.task_svc.v1.PatientService.GetRecentPatients:output_type -> services.task_svc.v1.GetRecentPatientsResponse + 18, // 59: services.task_svc.v1.PatientService.UpdatePatient:output_type -> services.task_svc.v1.UpdatePatientResponse + 20, // 60: services.task_svc.v1.PatientService.AssignBed:output_type -> services.task_svc.v1.AssignBedResponse + 22, // 61: services.task_svc.v1.PatientService.UnassignBed:output_type -> services.task_svc.v1.UnassignBedResponse + 24, // 62: services.task_svc.v1.PatientService.DischargePatient:output_type -> services.task_svc.v1.DischargePatientResponse + 26, // 63: services.task_svc.v1.PatientService.GetPatientDetails:output_type -> services.task_svc.v1.GetPatientDetailsResponse + 28, // 64: services.task_svc.v1.PatientService.GetPatientList:output_type -> services.task_svc.v1.GetPatientListResponse + 8, // 65: services.task_svc.v1.PatientService.DeletePatient:output_type -> services.task_svc.v1.DeletePatientResponse + 30, // 66: services.task_svc.v1.PatientService.ReadmitPatient:output_type -> services.task_svc.v1.ReadmitPatientResponse + 53, // [53:67] is the sub-list for method output_type + 39, // [39:53] is the sub-list for method input_type + 39, // [39:39] is the sub-list for extension type_name + 39, // [39:39] is the sub-list for extension extendee + 0, // [0:39] is the sub-list for field type_name } func init() { file_services_task_svc_v1_patient_svc_proto_init() } @@ -4026,13 +4305,15 @@ func file_services_task_svc_v1_patient_svc_proto_init() { file_services_task_svc_v1_patient_svc_proto_msgTypes[30].OneofWrappers = []interface{}{} file_services_task_svc_v1_patient_svc_proto_msgTypes[32].OneofWrappers = []interface{}{} file_services_task_svc_v1_patient_svc_proto_msgTypes[39].OneofWrappers = []interface{}{} + file_services_task_svc_v1_patient_svc_proto_msgTypes[41].OneofWrappers = []interface{}{} + file_services_task_svc_v1_patient_svc_proto_msgTypes[44].OneofWrappers = []interface{}{} file_services_task_svc_v1_patient_svc_proto_msgTypes[45].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_services_task_svc_v1_patient_svc_proto_rawDesc, - NumEnums: 2, + NumEnums: 3, NumMessages: 47, NumExtensions: 0, NumServices: 1, diff --git a/gen/ts/libs/common/v1/types_pb.d.ts b/gen/ts/libs/common/v1/types_pb.d.ts new file mode 100644 index 000000000..33a758204 --- /dev/null +++ b/gen/ts/libs/common/v1/types_pb.d.ts @@ -0,0 +1,25 @@ +import * as jspb from 'google-protobuf' + +import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto" + + +export class Date extends jspb.Message { + getDate(): google_protobuf_timestamp_pb.Timestamp | undefined; + setDate(value?: google_protobuf_timestamp_pb.Timestamp): Date; + hasDate(): boolean; + clearDate(): Date; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Date.AsObject; + static toObject(includeInstance: boolean, msg: Date): Date.AsObject; + static serializeBinaryToWriter(message: Date, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Date; + static deserializeBinaryFromReader(message: Date, reader: jspb.BinaryReader): Date; +} + +export namespace Date { + export type AsObject = { + date?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + diff --git a/gen/ts/libs/common/v1/types_pb.js b/gen/ts/libs/common/v1/types_pb.js new file mode 100644 index 000000000..877de0b9b --- /dev/null +++ b/gen/ts/libs/common/v1/types_pb.js @@ -0,0 +1,199 @@ +// source: libs/common/v1/types.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +goog.exportSymbol('proto.libs.common.v1.Date', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.libs.common.v1.Date = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.libs.common.v1.Date, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.libs.common.v1.Date.displayName = 'proto.libs.common.v1.Date'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.libs.common.v1.Date.prototype.toObject = function(opt_includeInstance) { + return proto.libs.common.v1.Date.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.libs.common.v1.Date} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.libs.common.v1.Date.toObject = function(includeInstance, msg) { + var f, obj = { + date: (f = msg.getDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.libs.common.v1.Date} + */ +proto.libs.common.v1.Date.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.libs.common.v1.Date; + return proto.libs.common.v1.Date.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.libs.common.v1.Date} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.libs.common.v1.Date} + */ +proto.libs.common.v1.Date.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.libs.common.v1.Date.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.libs.common.v1.Date.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.libs.common.v1.Date} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.libs.common.v1.Date.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDate(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.Timestamp date = 1; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.libs.common.v1.Date.prototype.getDate = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.libs.common.v1.Date} returns this +*/ +proto.libs.common.v1.Date.prototype.setDate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.libs.common.v1.Date} returns this + */ +proto.libs.common.v1.Date.prototype.clearDate = function() { + return this.setDate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.libs.common.v1.Date.prototype.hasDate = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +goog.object.extend(exports, proto.libs.common.v1); diff --git a/gen/ts/services/property_svc/v1/property_value_svc_grpc_web_pb.js b/gen/ts/services/property_svc/v1/property_value_svc_grpc_web_pb.js index e1181a89c..58d1940e0 100644 --- a/gen/ts/services/property_svc/v1/property_value_svc_grpc_web_pb.js +++ b/gen/ts/services/property_svc/v1/property_value_svc_grpc_web_pb.js @@ -25,6 +25,8 @@ var services_property_svc_v1_types_pb = require('../../../services/property_svc/ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js') var libs_common_v1_conflict_pb = require('../../../libs/common/v1/conflict_pb.js') + +var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js') const proto = {}; proto.services = {}; proto.services.property_svc = {}; diff --git a/gen/ts/services/property_svc/v1/property_value_svc_pb.d.ts b/gen/ts/services/property_svc/v1/property_value_svc_pb.d.ts index 373589c48..8b2772c4d 100644 --- a/gen/ts/services/property_svc/v1/property_value_svc_pb.d.ts +++ b/gen/ts/services/property_svc/v1/property_value_svc_pb.d.ts @@ -3,6 +3,7 @@ import * as jspb from 'google-protobuf' import * as services_property_svc_v1_types_pb from '../../../services/property_svc/v1/types_pb'; // proto import: "services/property_svc/v1/types.proto" import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto" import * as libs_common_v1_conflict_pb from '../../../libs/common/v1/conflict_pb'; // proto import: "libs/common/v1/conflict.proto" +import * as libs_common_v1_types_pb from '../../../libs/common/v1/types_pb'; // proto import: "libs/common/v1/types.proto" export class AttachPropertyValueRequest extends jspb.Message { @@ -21,8 +22,8 @@ export class AttachPropertyValueRequest extends jspb.Message { getBoolValue(): boolean; setBoolValue(value: boolean): AttachPropertyValueRequest; - getDateValue(): services_property_svc_v1_types_pb.Date | undefined; - setDateValue(value?: services_property_svc_v1_types_pb.Date): AttachPropertyValueRequest; + getDateValue(): libs_common_v1_types_pb.Date | undefined; + setDateValue(value?: libs_common_v1_types_pb.Date): AttachPropertyValueRequest; hasDateValue(): boolean; clearDateValue(): AttachPropertyValueRequest; @@ -61,7 +62,7 @@ export namespace AttachPropertyValueRequest { textValue: string, numberValue: number, boolValue: boolean, - dateValue?: services_property_svc_v1_types_pb.Date.AsObject, + dateValue?: libs_common_v1_types_pb.Date.AsObject, dateTimeValue?: google_protobuf_timestamp_pb.Timestamp.AsObject, selectValue: string, multiSelectValue?: AttachPropertyValueRequest.MultiSelectValue.AsObject, @@ -297,8 +298,8 @@ export namespace GetAttachedPropertyValuesResponse { getBoolValue(): boolean; setBoolValue(value: boolean): Value; - getDateValue(): services_property_svc_v1_types_pb.Date | undefined; - setDateValue(value?: services_property_svc_v1_types_pb.Date): Value; + getDateValue(): libs_common_v1_types_pb.Date | undefined; + setDateValue(value?: libs_common_v1_types_pb.Date): Value; hasDateValue(): boolean; clearDateValue(): Value; @@ -345,7 +346,7 @@ export namespace GetAttachedPropertyValuesResponse { textValue: string, numberValue: number, boolValue: boolean, - dateValue?: services_property_svc_v1_types_pb.Date.AsObject, + dateValue?: libs_common_v1_types_pb.Date.AsObject, dateTimeValue?: google_protobuf_timestamp_pb.Timestamp.AsObject, selectValue?: GetAttachedPropertyValuesResponse.Value.SelectValueOption.AsObject, multiSelectValue?: GetAttachedPropertyValuesResponse.Value.MultiSelectValue.AsObject, diff --git a/gen/ts/services/property_svc/v1/property_value_svc_pb.js b/gen/ts/services/property_svc/v1/property_value_svc_pb.js index 469399ba5..c8a6e0472 100644 --- a/gen/ts/services/property_svc/v1/property_value_svc_pb.js +++ b/gen/ts/services/property_svc/v1/property_value_svc_pb.js @@ -27,6 +27,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time goog.object.extend(proto, google_protobuf_timestamp_pb); var libs_common_v1_conflict_pb = require('../../../libs/common/v1/conflict_pb.js'); goog.object.extend(proto, libs_common_v1_conflict_pb); +var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js'); +goog.object.extend(proto, libs_common_v1_types_pb); goog.exportSymbol('proto.services.property_svc.v1.AttachPropertyValueRequest', null, global); goog.exportSymbol('proto.services.property_svc.v1.AttachPropertyValueRequest.MultiSelectValue', null, global); goog.exportSymbol('proto.services.property_svc.v1.AttachPropertyValueRequest.ValueCase', null, global); @@ -318,7 +320,7 @@ proto.services.property_svc.v1.AttachPropertyValueRequest.toObject = function(in textValue: jspb.Message.getFieldWithDefault(msg, 3, ""), numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - dateValue: (f = msg.getDateValue()) && services_property_svc_v1_types_pb.Date.toObject(includeInstance, f), + dateValue: (f = msg.getDateValue()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), dateTimeValue: (f = msg.getDateTimeValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), selectValue: jspb.Message.getFieldWithDefault(msg, 8, ""), multiSelectValue: (f = msg.getMultiSelectValue()) && proto.services.property_svc.v1.AttachPropertyValueRequest.MultiSelectValue.toObject(includeInstance, f), @@ -380,8 +382,8 @@ proto.services.property_svc.v1.AttachPropertyValueRequest.deserializeBinaryFromR msg.setBoolValue(value); break; case 6: - var value = new services_property_svc_v1_types_pb.Date; - reader.readMessage(value,services_property_svc_v1_types_pb.Date.deserializeBinaryFromReader); + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); msg.setDateValue(value); break; case 7: @@ -471,7 +473,7 @@ proto.services.property_svc.v1.AttachPropertyValueRequest.serializeBinaryToWrite writer.writeMessage( 6, f, - services_property_svc_v1_types_pb.Date.serializeBinaryToWriter + libs_common_v1_types_pb.Date.serializeBinaryToWriter ); } f = message.getDateTimeValue(); @@ -857,17 +859,17 @@ proto.services.property_svc.v1.AttachPropertyValueRequest.prototype.hasBoolValue /** - * optional Date date_value = 6; - * @return {?proto.services.property_svc.v1.Date} + * optional libs.common.v1.Date date_value = 6; + * @return {?proto.libs.common.v1.Date} */ proto.services.property_svc.v1.AttachPropertyValueRequest.prototype.getDateValue = function() { - return /** @type{?proto.services.property_svc.v1.Date} */ ( - jspb.Message.getWrapperField(this, services_property_svc_v1_types_pb.Date, 6)); + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); }; /** - * @param {?proto.services.property_svc.v1.Date|undefined} value + * @param {?proto.libs.common.v1.Date|undefined} value * @return {!proto.services.property_svc.v1.AttachPropertyValueRequest} returns this */ proto.services.property_svc.v1.AttachPropertyValueRequest.prototype.setDateValue = function(value) { @@ -2063,7 +2065,7 @@ proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.toObject textValue: jspb.Message.getFieldWithDefault(msg, 6, ""), numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - dateValue: (f = msg.getDateValue()) && services_property_svc_v1_types_pb.Date.toObject(includeInstance, f), + dateValue: (f = msg.getDateValue()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), dateTimeValue: (f = msg.getDateTimeValue()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), selectValue: (f = msg.getSelectValue()) && proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.SelectValueOption.toObject(includeInstance, f), multiSelectValue: (f = msg.getMultiSelectValue()) && proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.MultiSelectValue.toObject(includeInstance, f), @@ -2138,8 +2140,8 @@ proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.deseriali msg.setBoolValue(value); break; case 9: - var value = new services_property_svc_v1_types_pb.Date; - reader.readMessage(value,services_property_svc_v1_types_pb.Date.deserializeBinaryFromReader); + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); msg.setDateValue(value); break; case 10: @@ -2255,7 +2257,7 @@ proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.serialize writer.writeMessage( 9, f, - services_property_svc_v1_types_pb.Date.serializeBinaryToWriter + libs_common_v1_types_pb.Date.serializeBinaryToWriter ); } f = message.getDateTimeValue(); @@ -2866,17 +2868,17 @@ proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.prototype /** - * optional Date date_value = 9; - * @return {?proto.services.property_svc.v1.Date} + * optional libs.common.v1.Date date_value = 9; + * @return {?proto.libs.common.v1.Date} */ proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.prototype.getDateValue = function() { - return /** @type{?proto.services.property_svc.v1.Date} */ ( - jspb.Message.getWrapperField(this, services_property_svc_v1_types_pb.Date, 9)); + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 9)); }; /** - * @param {?proto.services.property_svc.v1.Date|undefined} value + * @param {?proto.libs.common.v1.Date|undefined} value * @return {!proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value} returns this */ proto.services.property_svc.v1.GetAttachedPropertyValuesResponse.Value.prototype.setDateValue = function(value) { diff --git a/gen/ts/services/property_svc/v1/types_pb.d.ts b/gen/ts/services/property_svc/v1/types_pb.d.ts index 68a785052..79b104c07 100644 --- a/gen/ts/services/property_svc/v1/types_pb.d.ts +++ b/gen/ts/services/property_svc/v1/types_pb.d.ts @@ -1,28 +1,7 @@ import * as jspb from 'google-protobuf' -import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto" -export class Date extends jspb.Message { - getDate(): google_protobuf_timestamp_pb.Timestamp | undefined; - setDate(value?: google_protobuf_timestamp_pb.Timestamp): Date; - hasDate(): boolean; - clearDate(): Date; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Date.AsObject; - static toObject(includeInstance: boolean, msg: Date): Date.AsObject; - static serializeBinaryToWriter(message: Date, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Date; - static deserializeBinaryFromReader(message: Date, reader: jspb.BinaryReader): Date; -} - -export namespace Date { - export type AsObject = { - date?: google_protobuf_timestamp_pb.Timestamp.AsObject, - } -} - export enum SubjectType { SUBJECT_TYPE_UNSPECIFIED = 0, SUBJECT_TYPE_PATIENT = 1, diff --git a/gen/ts/services/property_svc/v1/types_pb.js b/gen/ts/services/property_svc/v1/types_pb.js index e3d8523b0..3f9daa395 100644 --- a/gen/ts/services/property_svc/v1/types_pb.js +++ b/gen/ts/services/property_svc/v1/types_pb.js @@ -21,183 +21,8 @@ var global = (function () { return this; }).call(null) || Function('return this')(); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); -goog.exportSymbol('proto.services.property_svc.v1.Date', null, global); goog.exportSymbol('proto.services.property_svc.v1.FieldType', null, global); goog.exportSymbol('proto.services.property_svc.v1.SubjectType', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.services.property_svc.v1.Date = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.services.property_svc.v1.Date, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.services.property_svc.v1.Date.displayName = 'proto.services.property_svc.v1.Date'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.services.property_svc.v1.Date.prototype.toObject = function(opt_includeInstance) { - return proto.services.property_svc.v1.Date.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.services.property_svc.v1.Date} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.services.property_svc.v1.Date.toObject = function(includeInstance, msg) { - var f, obj = { - date: (f = msg.getDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.services.property_svc.v1.Date} - */ -proto.services.property_svc.v1.Date.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.services.property_svc.v1.Date; - return proto.services.property_svc.v1.Date.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.services.property_svc.v1.Date} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.services.property_svc.v1.Date} - */ -proto.services.property_svc.v1.Date.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDate(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.services.property_svc.v1.Date.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.services.property_svc.v1.Date.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.services.property_svc.v1.Date} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.services.property_svc.v1.Date.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDate(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } -}; - - -/** - * optional google.protobuf.Timestamp date = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.services.property_svc.v1.Date.prototype.getDate = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.services.property_svc.v1.Date} returns this -*/ -proto.services.property_svc.v1.Date.prototype.setDate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.property_svc.v1.Date} returns this - */ -proto.services.property_svc.v1.Date.prototype.clearDate = function() { - return this.setDate(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.property_svc.v1.Date.prototype.hasDate = function() { - return jspb.Message.getField(this, 1) != null; -}; - - /** * @enum {number} */ diff --git a/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js b/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js index c539aef27..55b2ac2c1 100644 --- a/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js +++ b/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js @@ -19,6 +19,8 @@ const grpc = {}; grpc.web = require('grpc-web'); + +var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js') const proto = {}; proto.services = {}; proto.services.task_svc = {}; diff --git a/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts b/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts index 6acef8f42..f5388a5ee 100644 --- a/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts +++ b/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts @@ -1,5 +1,6 @@ import * as jspb from 'google-protobuf' +import * as libs_common_v1_types_pb from '../../../libs/common/v1/types_pb'; // proto import: "libs/common/v1/types.proto" export class CreatePatientRequest extends jspb.Message { @@ -9,6 +10,14 @@ export class CreatePatientRequest extends jspb.Message { getNotes(): string; setNotes(value: string): CreatePatientRequest; + getGender(): Gender; + setGender(value: Gender): CreatePatientRequest; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): CreatePatientRequest; + hasDateOfBirth(): boolean; + clearDateOfBirth(): CreatePatientRequest; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreatePatientRequest.AsObject; static toObject(includeInstance: boolean, msg: CreatePatientRequest): CreatePatientRequest.AsObject; @@ -21,6 +30,8 @@ export namespace CreatePatientRequest { export type AsObject = { humanReadableIdentifier: string, notes: string, + gender: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } } @@ -80,6 +91,16 @@ export class GetPatientResponse extends jspb.Message { hasWardId(): boolean; clearWardId(): GetPatientResponse; + getGender(): Gender; + setGender(value: Gender): GetPatientResponse; + hasGender(): boolean; + clearGender(): GetPatientResponse; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientResponse; + hasDateOfBirth(): boolean; + clearDateOfBirth(): GetPatientResponse; + getRoom(): GetPatientResponse.Room | undefined; setRoom(value?: GetPatientResponse.Room): GetPatientResponse; hasRoom(): boolean; @@ -105,6 +126,8 @@ export namespace GetPatientResponse { notes: string, bedId?: string, wardId?: string, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientResponse.Room.AsObject, bed?: GetPatientResponse.Bed.AsObject, } @@ -169,6 +192,16 @@ export namespace GetPatientResponse { WARD_ID = 5, } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 9, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 10, + } + export enum RoomCase { _ROOM_NOT_SET = 0, ROOM = 7, @@ -240,6 +273,16 @@ export class GetPatientByBedResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientByBedResponse; + getGender(): Gender; + setGender(value: Gender): GetPatientByBedResponse; + hasGender(): boolean; + clearGender(): GetPatientByBedResponse; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientByBedResponse; + hasDateOfBirth(): boolean; + clearDateOfBirth(): GetPatientByBedResponse; + getBedId(): string; setBedId(value: string): GetPatientByBedResponse; hasBedId(): boolean; @@ -258,9 +301,21 @@ export namespace GetPatientByBedResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 5, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 6, + } + export enum BedIdCase { _BED_ID_NOT_SET = 0, BED_ID = 4, @@ -314,6 +369,16 @@ export namespace GetPatientsByWardResponse { getNotes(): string; setNotes(value: string): Patient; + getGender(): Gender; + setGender(value: Gender): Patient; + hasGender(): boolean; + clearGender(): Patient; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; + hasDateOfBirth(): boolean; + clearDateOfBirth(): Patient; + getBedId(): string; setBedId(value: string): Patient; hasBedId(): boolean; @@ -332,9 +397,21 @@ export namespace GetPatientsByWardResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 5, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 6, + } + export enum BedIdCase { _BED_ID_NOT_SET = 0, BED_ID = 4, @@ -600,6 +677,16 @@ export class UpdatePatientRequest extends jspb.Message { hasNotes(): boolean; clearNotes(): UpdatePatientRequest; + getGender(): Gender; + setGender(value: Gender): UpdatePatientRequest; + hasGender(): boolean; + clearGender(): UpdatePatientRequest; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): UpdatePatientRequest; + hasDateOfBirth(): boolean; + clearDateOfBirth(): UpdatePatientRequest; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UpdatePatientRequest.AsObject; static toObject(includeInstance: boolean, msg: UpdatePatientRequest): UpdatePatientRequest.AsObject; @@ -613,6 +700,8 @@ export namespace UpdatePatientRequest { id: string, humanReadableIdentifier?: string, notes?: string, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } export enum HumanReadableIdentifierCase { @@ -624,6 +713,16 @@ export namespace UpdatePatientRequest { _NOTES_NOT_SET = 0, NOTES = 3, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 4, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 5, + } } export class UpdatePatientResponse extends jspb.Message { @@ -794,6 +893,16 @@ export class GetPatientDetailsResponse extends jspb.Message { getIsDischarged(): boolean; setIsDischarged(value: boolean): GetPatientDetailsResponse; + getGender(): Gender; + setGender(value: Gender): GetPatientDetailsResponse; + hasGender(): boolean; + clearGender(): GetPatientDetailsResponse; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientDetailsResponse; + hasDateOfBirth(): boolean; + clearDateOfBirth(): GetPatientDetailsResponse; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetPatientDetailsResponse.AsObject; static toObject(includeInstance: boolean, msg: GetPatientDetailsResponse): GetPatientDetailsResponse.AsObject; @@ -813,6 +922,8 @@ export namespace GetPatientDetailsResponse { room?: GetPatientDetailsResponse.Room.AsObject, bed?: GetPatientDetailsResponse.Bed.AsObject, isDischarged: boolean, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } export class Room extends jspb.Message { @@ -969,6 +1080,16 @@ export namespace GetPatientDetailsResponse { _BED_NOT_SET = 0, BED = 8, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 10, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 11, + } } export class GetPatientListRequest extends jspb.Message { @@ -1037,6 +1158,16 @@ export namespace GetPatientListResponse { getNotes(): string; setNotes(value: string): Patient; + getGender(): Gender; + setGender(value: Gender): Patient; + hasGender(): boolean; + clearGender(): Patient; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; + hasDateOfBirth(): boolean; + clearDateOfBirth(): Patient; + getTasksList(): Array; setTasksList(value: Array): Patient; clearTasksList(): Patient; @@ -1055,8 +1186,20 @@ export namespace GetPatientListResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 5, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 6, + } } @@ -1130,6 +1273,16 @@ export namespace GetPatientListResponse { getNotes(): string; setNotes(value: string): PatientWithRoomAndBed; + getGender(): Gender; + setGender(value: Gender): PatientWithRoomAndBed; + hasGender(): boolean; + clearGender(): PatientWithRoomAndBed; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): PatientWithRoomAndBed; + hasDateOfBirth(): boolean; + clearDateOfBirth(): PatientWithRoomAndBed; + getTasksList(): Array; setTasksList(value: Array): PatientWithRoomAndBed; clearTasksList(): PatientWithRoomAndBed; @@ -1150,8 +1303,20 @@ export namespace GetPatientListResponse { room?: GetPatientListResponse.Room.AsObject, bed?: GetPatientListResponse.Bed.AsObject, notes: string, + gender?: Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 7, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 8, + } } @@ -1278,3 +1443,9 @@ export namespace ReadmitPatientResponse { } } +export enum Gender { + GENDER_UNSPECIFIED = 0, + GENDER_FEMALE = 1, + GENDER_MALE = 2, + GENDER_DIVERSE = 3, +} diff --git a/gen/ts/services/task_svc/v1/patient_svc_pb.js b/gen/ts/services/task_svc/v1/patient_svc_pb.js index b108ba2fb..d13edaf9f 100644 --- a/gen/ts/services/task_svc/v1/patient_svc_pb.js +++ b/gen/ts/services/task_svc/v1/patient_svc_pb.js @@ -21,6 +21,8 @@ var global = (function () { return this; }).call(null) || Function('return this')(); +var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js'); +goog.object.extend(proto, libs_common_v1_types_pb); goog.exportSymbol('proto.services.task_svc.v1.AssignBedRequest', null, global); goog.exportSymbol('proto.services.task_svc.v1.AssignBedResponse', null, global); goog.exportSymbol('proto.services.task_svc.v1.CreatePatientRequest', null, global); @@ -29,6 +31,7 @@ goog.exportSymbol('proto.services.task_svc.v1.DeletePatientRequest', null, globa goog.exportSymbol('proto.services.task_svc.v1.DeletePatientResponse', null, global); goog.exportSymbol('proto.services.task_svc.v1.DischargePatientRequest', null, global); goog.exportSymbol('proto.services.task_svc.v1.DischargePatientResponse', null, global); +goog.exportSymbol('proto.services.task_svc.v1.Gender', null, global); goog.exportSymbol('proto.services.task_svc.v1.GetPatientAssignmentByWardRequest', null, global); goog.exportSymbol('proto.services.task_svc.v1.GetPatientAssignmentByWardResponse', null, global); goog.exportSymbol('proto.services.task_svc.v1.GetPatientAssignmentByWardResponse.Room', null, global); @@ -1090,7 +1093,9 @@ proto.services.task_svc.v1.CreatePatientRequest.prototype.toObject = function(op proto.services.task_svc.v1.CreatePatientRequest.toObject = function(includeInstance, msg) { var f, obj = { humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 1, ""), - notes: jspb.Message.getFieldWithDefault(msg, 2, "") + notes: jspb.Message.getFieldWithDefault(msg, 2, ""), + gender: jspb.Message.getFieldWithDefault(msg, 3, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) }; if (includeInstance) { @@ -1135,6 +1140,15 @@ proto.services.task_svc.v1.CreatePatientRequest.deserializeBinaryFromReader = fu var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 3: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 4: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; default: reader.skipField(); break; @@ -1178,6 +1192,21 @@ proto.services.task_svc.v1.CreatePatientRequest.serializeBinaryToWriter = functi f ); } + f = message.getGender(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 4, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } }; @@ -1217,6 +1246,61 @@ proto.services.task_svc.v1.CreatePatientRequest.prototype.setNotes = function(va }; +/** + * optional Gender gender = 3; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.CreatePatientRequest.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.CreatePatientRequest} returns this + */ +proto.services.task_svc.v1.CreatePatientRequest.prototype.setGender = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 4; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.CreatePatientRequest.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 4)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.CreatePatientRequest} returns this +*/ +proto.services.task_svc.v1.CreatePatientRequest.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.CreatePatientRequest} returns this + */ +proto.services.task_svc.v1.CreatePatientRequest.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.CreatePatientRequest.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 4) != null; +}; + + @@ -1514,6 +1598,8 @@ proto.services.task_svc.v1.GetPatientResponse.toObject = function(includeInstanc notes: jspb.Message.getFieldWithDefault(msg, 3, ""), bedId: jspb.Message.getFieldWithDefault(msg, 4, ""), wardId: jspb.Message.getFieldWithDefault(msg, 5, ""), + gender: jspb.Message.getFieldWithDefault(msg, 9, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), room: (f = msg.getRoom()) && proto.services.task_svc.v1.GetPatientResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.task_svc.v1.GetPatientResponse.Bed.toObject(includeInstance, f) }; @@ -1572,6 +1658,15 @@ proto.services.task_svc.v1.GetPatientResponse.deserializeBinaryFromReader = func var value = /** @type {string} */ (reader.readString()); msg.setWardId(value); break; + case 9: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 10: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 7: var value = new proto.services.task_svc.v1.GetPatientResponse.Room; reader.readMessage(value,proto.services.task_svc.v1.GetPatientResponse.Room.deserializeBinaryFromReader); @@ -1646,6 +1741,21 @@ proto.services.task_svc.v1.GetPatientResponse.serializeBinaryToWriter = function f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeEnum( + 9, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 10, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = message.getRoom(); if (f != null) { writer.writeMessage( @@ -2141,6 +2251,79 @@ proto.services.task_svc.v1.GetPatientResponse.prototype.hasWardId = function() { }; +/** + * optional Gender gender = 9; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.setGender = function(value) { + return jspb.Message.setField(this, 9, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.clearGender = function() { + return jspb.Message.setField(this, 9, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.hasGender = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 10; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 10)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this +*/ +proto.services.task_svc.v1.GetPatientResponse.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientResponse.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 10) != null; +}; + + /** * optional Room room = 7; * @return {?proto.services.task_svc.v1.GetPatientResponse.Room} @@ -2611,6 +2794,8 @@ proto.services.task_svc.v1.GetPatientByBedResponse.toObject = function(includeIn id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 5, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -2660,6 +2845,15 @@ proto.services.task_svc.v1.GetPatientByBedResponse.deserializeBinaryFromReader = var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 5: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 6: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setBedId(value); @@ -2714,6 +2908,21 @@ proto.services.task_svc.v1.GetPatientByBedResponse.serializeBinaryToWriter = fun f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeEnum( + 5, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 6, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( @@ -2778,6 +2987,79 @@ proto.services.task_svc.v1.GetPatientByBedResponse.prototype.setNotes = function }; +/** + * optional Gender gender = 5; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.setGender = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.clearGender = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.hasGender = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 6; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this +*/ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientByBedResponse.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 6) != null; +}; + + /** * optional string bed_id = 4; * @return {string} @@ -3101,6 +3383,8 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.toObject = function id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 5, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -3150,6 +3434,15 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.deserializeBinaryFr var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 5: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 6: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setBedId(value); @@ -3204,6 +3497,21 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.serializeBinaryToWr f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeEnum( + 5, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 6, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( @@ -3268,6 +3576,79 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.setNotes }; +/** + * optional Gender gender = 5; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.setGender = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearGender = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasGender = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 6; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this +*/ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 6) != null; +}; + + /** * optional string bed_id = 4; * @return {string} @@ -5130,7 +5511,9 @@ proto.services.task_svc.v1.UpdatePatientRequest.toObject = function(includeInsta var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), - notes: jspb.Message.getFieldWithDefault(msg, 3, "") + notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 4, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) }; if (includeInstance) { @@ -5179,6 +5562,15 @@ proto.services.task_svc.v1.UpdatePatientRequest.deserializeBinaryFromReader = fu var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 4: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 5: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; default: reader.skipField(); break; @@ -5229,42 +5621,129 @@ proto.services.task_svc.v1.UpdatePatientRequest.serializeBinaryToWriter = functi f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeEnum( + 4, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 5, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string human_readable_identifier = 2; + * @return {string} + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getHumanReadableIdentifier = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setHumanReadableIdentifier = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearHumanReadableIdentifier = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasHumanReadableIdentifier = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string notes = 3; + * @return {string} + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setNotes = function(value) { + return jspb.Message.setField(this, 3, value); }; /** - * optional string id = 1; - * @return {string} + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearNotes = function() { + return jspb.Message.setField(this, 3, undefined); }; /** - * @param {string} value - * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasNotes = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional string human_readable_identifier = 2; - * @return {string} + * optional Gender gender = 4; + * @return {!proto.services.task_svc.v1.Gender} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getHumanReadableIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {string} value + * @param {!proto.services.task_svc.v1.Gender} value * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setHumanReadableIdentifier = function(value) { - return jspb.Message.setField(this, 2, value); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setGender = function(value) { + return jspb.Message.setField(this, 4, value); }; @@ -5272,8 +5751,8 @@ proto.services.task_svc.v1.UpdatePatientRequest.prototype.setHumanReadableIdenti * Clears the field making it undefined. * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearHumanReadableIdentifier = function() { - return jspb.Message.setField(this, 2, undefined); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearGender = function() { + return jspb.Message.setField(this, 4, undefined); }; @@ -5281,35 +5760,36 @@ proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearHumanReadableIden * Returns whether this field is set. * @return {boolean} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasHumanReadableIdentifier = function() { - return jspb.Message.getField(this, 2) != null; +proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasGender = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional string notes = 3; - * @return {string} + * optional libs.common.v1.Date date_of_birth = 5; + * @return {?proto.libs.common.v1.Date} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getNotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 5)); }; /** - * @param {string} value + * @param {?proto.libs.common.v1.Date|undefined} value * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setNotes = function(value) { - return jspb.Message.setField(this, 3, value); +*/ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * Clears the field making it undefined. + * Clears the message field making it undefined. * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearNotes = function() { - return jspb.Message.setField(this, 3, undefined); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); }; @@ -5317,8 +5797,8 @@ proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearNotes = function( * Returns whether this field is set. * @return {boolean} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasNotes = function() { - return jspb.Message.getField(this, 3) != null; +proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 5) != null; }; @@ -6324,7 +6804,9 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.toObject = function(include wardId: jspb.Message.getFieldWithDefault(msg, 6, ""), room: (f = msg.getRoom()) && proto.services.task_svc.v1.GetPatientDetailsResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.task_svc.v1.GetPatientDetailsResponse.Bed.toObject(includeInstance, f), - isDischarged: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) + isDischarged: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + gender: jspb.Message.getFieldWithDefault(msg, 10, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) }; if (includeInstance) { @@ -6400,6 +6882,15 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.deserializeBinaryFromReader var value = /** @type {boolean} */ (reader.readBool()); msg.setIsDischarged(value); break; + case 10: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 11: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; default: reader.skipField(); break; @@ -6495,6 +6986,21 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.serializeBinaryToWriter = f f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeEnum( + 10, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 11, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } }; @@ -7674,6 +8180,79 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.setIsDischarged = }; +/** + * optional Gender gender = 10; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.setGender = function(value) { + return jspb.Message.setField(this, 10, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.clearGender = function() { + return jspb.Message.setField(this, 10, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.hasGender = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 11; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 11)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this +*/ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 11) != null; +}; + + @@ -8026,6 +8605,8 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.toObject = function(in id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 5, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.task_svc.v1.GetPatientListResponse.Task.toObject, includeInstance) }; @@ -8076,6 +8657,15 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.deserializeBinaryFromR var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 5: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 6: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = new proto.services.task_svc.v1.GetPatientListResponse.Task; reader.readMessage(value,proto.services.task_svc.v1.GetPatientListResponse.Task.deserializeBinaryFromReader); @@ -8131,6 +8721,21 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.serializeBinaryToWrite f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeEnum( + 5, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 6, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = message.getTasksList(); if (f.length > 0) { writer.writeRepeatedMessage( @@ -8196,6 +8801,79 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.setNotes = f }; +/** + * optional Gender gender = 5; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.setGender = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.clearGender = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.hasGender = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 6; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this +*/ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 6) != null; +}; + + /** * repeated Task tasks = 4; * @return {!Array} @@ -8628,6 +9306,8 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.toObject room: (f = msg.getRoom()) && proto.services.task_svc.v1.GetPatientListResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.task_svc.v1.GetPatientListResponse.Bed.toObject(includeInstance, f), notes: jspb.Message.getFieldWithDefault(msg, 5, ""), + gender: jspb.Message.getFieldWithDefault(msg, 7, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.task_svc.v1.GetPatientListResponse.Task.toObject, includeInstance) }; @@ -8688,6 +9368,15 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.deserial var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 7: + var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 8: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 6: var value = new proto.services.task_svc.v1.GetPatientListResponse.Task; reader.readMessage(value,proto.services.task_svc.v1.GetPatientListResponse.Task.deserializeBinaryFromReader); @@ -8759,6 +9448,21 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.serializ f ); } + f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeEnum( + 7, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 8, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = message.getTasksList(); if (f.length > 0) { writer.writeRepeatedMessage( @@ -8898,6 +9602,79 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototyp }; +/** + * optional Gender gender = 7; + * @return {!proto.services.task_svc.v1.Gender} + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.getGender = function() { + return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {!proto.services.task_svc.v1.Gender} value + * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.setGender = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.clearGender = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.hasGender = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 8; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 8)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this +*/ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 8) != null; +}; + + /** * repeated Task tasks = 6; * @return {!Array} @@ -9859,4 +10636,14 @@ proto.services.task_svc.v1.ReadmitPatientResponse.serializeBinaryToWriter = func }; +/** + * @enum {number} + */ +proto.services.task_svc.v1.Gender = { + GENDER_UNSPECIFIED: 0, + GENDER_FEMALE: 1, + GENDER_MALE: 2, + GENDER_DIVERSE: 3 +}; + goog.object.extend(exports, proto.services.task_svc.v1); diff --git a/proto/libs/common/v1/types.proto b/proto/libs/common/v1/types.proto new file mode 100644 index 000000000..f3687f6ca --- /dev/null +++ b/proto/libs/common/v1/types.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package libs.common.v1; + +import "google/protobuf/timestamp.proto"; + +option go_package = "gen/libs/common/v1"; + +message Date { + // information more precise than date information shall be disregarded by clients + google.protobuf.Timestamp date = 1; +} diff --git a/proto/services/property_svc/v1/property_value_svc.proto b/proto/services/property_svc/v1/property_value_svc.proto index b48226412..230a4340c 100644 --- a/proto/services/property_svc/v1/property_value_svc.proto +++ b/proto/services/property_svc/v1/property_value_svc.proto @@ -5,6 +5,7 @@ package services.property_svc.v1; import "services/property_svc/v1/types.proto"; import "google/protobuf/timestamp.proto"; import "libs/common/v1/conflict.proto"; +import "libs/common/v1/types.proto"; option go_package = "gen/services/property-svc/v1"; @@ -19,7 +20,7 @@ message AttachPropertyValueRequest{ string text_value = 3; // @gotags: validate:"required" // FIELD_TYPE_TEXT double number_value = 4; // FIELD_TYPE_NUMBER bool bool_value = 5; // FIELD_TYPE_CHECKBOX - Date date_value = 6; // FIELD_TYPE_DATE + libs.common.v1.Date date_value = 6; // FIELD_TYPE_DATE google.protobuf.Timestamp date_time_value = 7; // FIELD_TYPE_DATE_TIME string select_value = 8; // @gotags: validate:"uuid4" // FIELD_TYPE_SELECT, id of option MultiSelectValue multi_select_value = 9; // FIELD_TYPE_MULTI_SELECT @@ -84,7 +85,7 @@ message GetAttachedPropertyValuesResponse { string text_value = 6; // FIELD_TYPE_TEXT double number_value = 7; // FIELD_TYPE_NUMBER bool bool_value = 8; // FIELD_TYPE_CHECKBOX - Date date_value = 9; // FIELD_TYPE_DATE + libs.common.v1.Date date_value = 9; // FIELD_TYPE_DATE google.protobuf.Timestamp date_time_value = 10; // FIELD_TYPE_DATE_TIME SelectValueOption select_value = 11; // FIELD_TYPE_SELECT, id of option MultiSelectValue multi_select_value = 12; diff --git a/proto/services/property_svc/v1/types.proto b/proto/services/property_svc/v1/types.proto index 94295c30b..8f6953268 100644 --- a/proto/services/property_svc/v1/types.proto +++ b/proto/services/property_svc/v1/types.proto @@ -4,13 +4,6 @@ package services.property_svc.v1; option go_package = "gen/services/property-svc/v1"; -import "google/protobuf/timestamp.proto"; - -message Date { - // information more precise than date information shall be disregarded by clients - google.protobuf.Timestamp date = 1; -} - enum SubjectType { SUBJECT_TYPE_UNSPECIFIED = 0; SUBJECT_TYPE_PATIENT = 1; diff --git a/proto/services/task_svc/v1/patient_svc.proto b/proto/services/task_svc/v1/patient_svc.proto index 8e566941c..d956a9807 100644 --- a/proto/services/task_svc/v1/patient_svc.proto +++ b/proto/services/task_svc/v1/patient_svc.proto @@ -4,6 +4,15 @@ package services.task_svc.v1; option go_package = "gen/services/task-svc/v1"; +import "libs/common/v1/types.proto"; + +enum Gender { + GENDER_UNSPECIFIED = 0; + GENDER_FEMALE = 1; + GENDER_MALE = 2; + GENDER_DIVERSE = 3; +} + // // CreatePatient // @@ -11,6 +20,8 @@ option go_package = "gen/services/task-svc/v1"; message CreatePatientRequest { string human_readable_identifier = 1; // @gotags: validate:"required" string notes = 2; + Gender gender = 3; + libs.common.v1.Date date_of_birth = 4; } message CreatePatientResponse { @@ -31,6 +42,8 @@ message GetPatientResponse { string notes = 3; optional string bed_id = 4 [deprecated=true]; optional string ward_id = 5 [deprecated=true]; + optional Gender gender = 9; + optional libs.common.v1.Date date_of_birth = 10; optional Room room = 7; optional Bed bed = 8; @@ -70,6 +83,8 @@ message GetPatientByBedResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional Gender gender = 5; + optional libs.common.v1.Date date_of_birth = 6; optional string bed_id = 4; } @@ -88,6 +103,8 @@ message GetPatientsByWardResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional Gender gender = 5; + optional libs.common.v1.Date date_of_birth = 6; optional string bed_id = 4; } } @@ -159,6 +176,8 @@ message UpdatePatientRequest { string id = 1; // @gotags: validate:"uuid4" optional string human_readable_identifier = 2; optional string notes = 3; + optional Gender gender = 4; + optional libs.common.v1.Date date_of_birth = 5; } message UpdatePatientResponse {} @@ -213,6 +232,8 @@ message GetPatientDetailsResponse { optional Room room = 7; optional Bed bed = 8; bool is_discharged = 9; + optional Gender gender = 10; + optional libs.common.v1.Date date_of_birth = 11; message Room { string id = 1; @@ -268,6 +289,8 @@ message GetPatientListResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional Gender gender = 5; + optional libs.common.v1.Date date_of_birth = 6; repeated Task tasks = 4; } @@ -288,6 +311,8 @@ message GetPatientListResponse { Room room = 3; Bed bed = 4; string notes = 5; + optional Gender gender = 7; + optional libs.common.v1.Date date_of_birth = 8; repeated Task tasks = 6; } From b17be8c9d2485c4e6512da7de005b59931117427 Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Thu, 12 Dec 2024 16:10:50 +0100 Subject: [PATCH 02/10] task*s* --- proto/libs/common/v1/types.proto | 7 +++++ proto/services/task_svc/v1/patient_svc.proto | 23 ---------------- proto/services/tasks_svc/v1/patient_svc.proto | 24 ++++++++++++++++- .../migrations/000030_gender_dob.down.sql | 2 ++ .../migrations/000030_gender_dob.up.sql | 2 ++ services/tasks-svc/repos/bed_repo/models.go | 2 ++ services/tasks-svc/repos/patient_repo.sql | 4 +-- .../tasks-svc/repos/patient_repo/models.go | 2 ++ .../repos/patient_repo/patient_repo.sql.go | 26 ++++++++++++++----- services/tasks-svc/repos/room_repo/models.go | 2 ++ services/tasks-svc/repos/task_repo/models.go | 2 ++ .../repos/task_repo/task_repo.sql.go | 8 ++++-- .../repos/task_template_repo/models.go | 2 ++ services/tasks-svc/repos/ward_repo/models.go | 2 ++ services/tasks-svc/schema.sql | 4 ++- 15 files changed, 77 insertions(+), 35 deletions(-) create mode 100644 services/tasks-svc/migrations/000030_gender_dob.down.sql create mode 100644 services/tasks-svc/migrations/000030_gender_dob.up.sql diff --git a/proto/libs/common/v1/types.proto b/proto/libs/common/v1/types.proto index f3687f6ca..a2395835b 100644 --- a/proto/libs/common/v1/types.proto +++ b/proto/libs/common/v1/types.proto @@ -10,3 +10,10 @@ message Date { // information more precise than date information shall be disregarded by clients google.protobuf.Timestamp date = 1; } + +enum Gender { + GENDER_UNSPECIFIED = 0; + GENDER_FEMALE = 1; + GENDER_MALE = 2; + GENDER_DIVERSE = 3; +} diff --git a/proto/services/task_svc/v1/patient_svc.proto b/proto/services/task_svc/v1/patient_svc.proto index d956a9807..3f6b1b909 100644 --- a/proto/services/task_svc/v1/patient_svc.proto +++ b/proto/services/task_svc/v1/patient_svc.proto @@ -6,13 +6,6 @@ option go_package = "gen/services/task-svc/v1"; import "libs/common/v1/types.proto"; -enum Gender { - GENDER_UNSPECIFIED = 0; - GENDER_FEMALE = 1; - GENDER_MALE = 2; - GENDER_DIVERSE = 3; -} - // // CreatePatient // @@ -20,8 +13,6 @@ enum Gender { message CreatePatientRequest { string human_readable_identifier = 1; // @gotags: validate:"required" string notes = 2; - Gender gender = 3; - libs.common.v1.Date date_of_birth = 4; } message CreatePatientResponse { @@ -42,8 +33,6 @@ message GetPatientResponse { string notes = 3; optional string bed_id = 4 [deprecated=true]; optional string ward_id = 5 [deprecated=true]; - optional Gender gender = 9; - optional libs.common.v1.Date date_of_birth = 10; optional Room room = 7; optional Bed bed = 8; @@ -83,8 +72,6 @@ message GetPatientByBedResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional Gender gender = 5; - optional libs.common.v1.Date date_of_birth = 6; optional string bed_id = 4; } @@ -103,8 +90,6 @@ message GetPatientsByWardResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional Gender gender = 5; - optional libs.common.v1.Date date_of_birth = 6; optional string bed_id = 4; } } @@ -176,8 +161,6 @@ message UpdatePatientRequest { string id = 1; // @gotags: validate:"uuid4" optional string human_readable_identifier = 2; optional string notes = 3; - optional Gender gender = 4; - optional libs.common.v1.Date date_of_birth = 5; } message UpdatePatientResponse {} @@ -232,8 +215,6 @@ message GetPatientDetailsResponse { optional Room room = 7; optional Bed bed = 8; bool is_discharged = 9; - optional Gender gender = 10; - optional libs.common.v1.Date date_of_birth = 11; message Room { string id = 1; @@ -289,8 +270,6 @@ message GetPatientListResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional Gender gender = 5; - optional libs.common.v1.Date date_of_birth = 6; repeated Task tasks = 4; } @@ -311,8 +290,6 @@ message GetPatientListResponse { Room room = 3; Bed bed = 4; string notes = 5; - optional Gender gender = 7; - optional libs.common.v1.Date date_of_birth = 8; repeated Task tasks = 6; } diff --git a/proto/services/tasks_svc/v1/patient_svc.proto b/proto/services/tasks_svc/v1/patient_svc.proto index dd394dbec..444381c9d 100644 --- a/proto/services/tasks_svc/v1/patient_svc.proto +++ b/proto/services/tasks_svc/v1/patient_svc.proto @@ -4,6 +4,7 @@ package services.tasks_svc.v1; import "services/tasks_svc/v1/types.proto"; import "libs/common/v1/conflict.proto"; +import "libs/common/v1/types.proto"; option go_package = "gen/services/tasks-svc/v1"; @@ -14,6 +15,8 @@ option go_package = "gen/services/tasks-svc/v1"; message CreatePatientRequest { string human_readable_identifier = 1; // @gotags: validate:"required" optional string notes = 2; + optional libs.common.v1.Gender gender = 3; + optional libs.common.v1.Date date_of_birth = 4; } message CreatePatientResponse { @@ -33,6 +36,9 @@ message GetPatientResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional libs.common.v1.Gender gender = 10; + optional libs.common.v1.Date date_of_birth = 11; + optional Room room = 7; optional Bed bed = 8; @@ -65,6 +71,9 @@ message GetPatientByBedResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional libs.common.v1.Gender gender = 6; + optional libs.common.v1.Date date_of_birth = 7; + string bed_id = 4; string consistency = 5; } @@ -84,7 +93,10 @@ message GetPatientsByWardResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional libs.common.v1.Gender gender = 6; + optional libs.common.v1.Date date_of_birth = 7; optional string bed_id = 4; + string consistency = 5; } } @@ -134,6 +146,9 @@ message GetPatientDetailsResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; + optional libs.common.v1.Gender gender = 9; + optional libs.common.v1.Date date_of_birth = 10; + repeated Task tasks = 4; optional Room room = 5; optional Bed bed = 6; @@ -201,10 +216,15 @@ message GetPatientListResponse { message Patient { string id = 1; string human_readable_identifier = 2; + + string notes = 5; + optional libs.common.v1.Gender gender = 8; + optional libs.common.v1.Date date_of_birth = 9; + Room room = 3; Bed bed = 4; - string notes = 5; repeated Task tasks = 6; + string consistency = 7; } @@ -268,6 +288,8 @@ message UpdatePatientRequest { string id = 1; // @gotags: validate:"uuid4" optional string human_readable_identifier = 2; optional string notes = 3; + optional libs.common.v1.Gender gender = 5; + optional libs.common.v1.Date date_of_birth = 6; optional string consistency = 4; // no conflict detection, if not provided } diff --git a/services/tasks-svc/migrations/000030_gender_dob.down.sql b/services/tasks-svc/migrations/000030_gender_dob.down.sql new file mode 100644 index 000000000..ea936dd85 --- /dev/null +++ b/services/tasks-svc/migrations/000030_gender_dob.down.sql @@ -0,0 +1,2 @@ +ALTER TABLE patients DROP COLUMN IF EXISTS date_of_birth; +ALTER TABLE patients DROP COLUMN IF EXISTS gender; diff --git a/services/tasks-svc/migrations/000030_gender_dob.up.sql b/services/tasks-svc/migrations/000030_gender_dob.up.sql new file mode 100644 index 000000000..94f38b029 --- /dev/null +++ b/services/tasks-svc/migrations/000030_gender_dob.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE patients ADD COLUMN IF NOT EXISTS gender integer; +ALTER TABLE patients ADD COLUMN IF NOT EXISTS date_of_birth date; diff --git a/services/tasks-svc/repos/bed_repo/models.go b/services/tasks-svc/repos/bed_repo/models.go index 9ce5e44b9..0019994b6 100644 --- a/services/tasks-svc/repos/bed_repo/models.go +++ b/services/tasks-svc/repos/bed_repo/models.go @@ -26,6 +26,8 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date } type Room struct { diff --git a/services/tasks-svc/repos/patient_repo.sql b/services/tasks-svc/repos/patient_repo.sql index 6b2446e35..8278d1438 100644 --- a/services/tasks-svc/repos/patient_repo.sql +++ b/services/tasks-svc/repos/patient_repo.sql @@ -1,7 +1,7 @@ -- name: CreatePatient :exec INSERT INTO patients - (id, human_readable_identifier, notes, created_at, updated_at, consistency, organization_id) -VALUES ($1, $2, $3, $4, $5, $6, $7); + (id, human_readable_identifier, notes, gender, date_of_birth, created_at, updated_at, consistency, organization_id) +VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9); -- name: UpdatePatient :exec UPDATE patients diff --git a/services/tasks-svc/repos/patient_repo/models.go b/services/tasks-svc/repos/patient_repo/models.go index 621b22b94..07062369d 100644 --- a/services/tasks-svc/repos/patient_repo/models.go +++ b/services/tasks-svc/repos/patient_repo/models.go @@ -26,6 +26,8 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date } type Room struct { diff --git a/services/tasks-svc/repos/patient_repo/patient_repo.sql.go b/services/tasks-svc/repos/patient_repo/patient_repo.sql.go index 6614e5145..90292565e 100644 --- a/services/tasks-svc/repos/patient_repo/patient_repo.sql.go +++ b/services/tasks-svc/repos/patient_repo/patient_repo.sql.go @@ -14,14 +14,16 @@ import ( const createPatient = `-- name: CreatePatient :exec INSERT INTO patients - (id, human_readable_identifier, notes, created_at, updated_at, consistency, organization_id) -VALUES ($1, $2, $3, $4, $5, $6, $7) + (id, human_readable_identifier, notes, gender, date_of_birth, created_at, updated_at, consistency, organization_id) +VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) ` type CreatePatientParams struct { ID uuid.UUID HumanReadableIdentifier string Notes string + Gender *int32 + DateOfBirth pgtype.Date CreatedAt pgtype.Timestamp UpdatedAt pgtype.Timestamp Consistency int64 @@ -33,6 +35,8 @@ func (q *Queries) CreatePatient(ctx context.Context, arg CreatePatientParams) er arg.ID, arg.HumanReadableIdentifier, arg.Notes, + arg.Gender, + arg.DateOfBirth, arg.CreatedAt, arg.UpdatedAt, arg.Consistency, @@ -52,7 +56,7 @@ func (q *Queries) DeletePatient(ctx context.Context, id uuid.UUID) error { const getAllPatientsWithTasksBedAndRoom = `-- name: GetAllPatientsWithTasksBedAndRoom :many SELECT - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, tasks.id as task_id, tasks.name as task_name, tasks.description as task_description, @@ -118,6 +122,8 @@ func (q *Queries) GetAllPatientsWithTasksBedAndRoom(ctx context.Context, organiz &i.Patient.IsDischarged, &i.Patient.Consistency, &i.Patient.OrganizationID, + &i.Patient.Gender, + &i.Patient.DateOfBirth, &i.TaskID, &i.TaskName, &i.TaskDescription, @@ -147,7 +153,7 @@ func (q *Queries) GetAllPatientsWithTasksBedAndRoom(ctx context.Context, organiz } const getPatientByBed = `-- name: GetPatientByBed :one -SELECT patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id +SELECT patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth FROM patients WHERE bed_id = $1 LIMIT 1 @@ -166,13 +172,15 @@ func (q *Queries) GetPatientByBed(ctx context.Context, bedID uuid.NullUUID) (Pat &i.IsDischarged, &i.Consistency, &i.OrganizationID, + &i.Gender, + &i.DateOfBirth, ) return i, err } const getPatientWithBedAndRoom = `-- name: GetPatientWithBedAndRoom :one SELECT - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, beds.name as bed_name, beds.consistency as bed_consistency, rooms.id as room_id, @@ -196,6 +204,8 @@ type GetPatientWithBedAndRoomRow struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date BedName *string BedConsistency *int64 RoomID uuid.NullUUID @@ -217,6 +227,8 @@ func (q *Queries) GetPatientWithBedAndRoom(ctx context.Context, patientID uuid.U &i.IsDischarged, &i.Consistency, &i.OrganizationID, + &i.Gender, + &i.DateOfBirth, &i.BedName, &i.BedConsistency, &i.RoomID, @@ -229,7 +241,7 @@ func (q *Queries) GetPatientWithBedAndRoom(ctx context.Context, patientID uuid.U const getPatientsByWard = `-- name: GetPatientsByWard :many SELECT - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth FROM patients JOIN beds ON patients.bed_id = beds.id JOIN rooms ON beds.room_id = rooms.id @@ -255,6 +267,8 @@ func (q *Queries) GetPatientsByWard(ctx context.Context, wardID uuid.UUID) ([]Pa &i.IsDischarged, &i.Consistency, &i.OrganizationID, + &i.Gender, + &i.DateOfBirth, ); err != nil { return nil, err } diff --git a/services/tasks-svc/repos/room_repo/models.go b/services/tasks-svc/repos/room_repo/models.go index 1d9724a93..7ce726d1c 100644 --- a/services/tasks-svc/repos/room_repo/models.go +++ b/services/tasks-svc/repos/room_repo/models.go @@ -26,6 +26,8 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date } type Room struct { diff --git a/services/tasks-svc/repos/task_repo/models.go b/services/tasks-svc/repos/task_repo/models.go index 246e9c07b..81e1133ed 100644 --- a/services/tasks-svc/repos/task_repo/models.go +++ b/services/tasks-svc/repos/task_repo/models.go @@ -26,6 +26,8 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date } type Room struct { diff --git a/services/tasks-svc/repos/task_repo/task_repo.sql.go b/services/tasks-svc/repos/task_repo/task_repo.sql.go index 3b9b703d5..aa33dbbf6 100644 --- a/services/tasks-svc/repos/task_repo/task_repo.sql.go +++ b/services/tasks-svc/repos/task_repo/task_repo.sql.go @@ -108,7 +108,7 @@ func (q *Queries) DeleteTask(ctx context.Context, id uuid.UUID) error { const getTaskWithPatientById = `-- name: GetTaskWithPatientById :many SELECT tasks.id, tasks.name, tasks.description, tasks.status, tasks.assigned_user_id, tasks.patient_id, tasks.public, tasks.created_by, tasks.due_at, tasks.created_at, tasks.consistency, - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, subtasks.id as subtask_id, subtasks.name as subtask_name, subtasks.done as subtask_done, @@ -158,6 +158,8 @@ func (q *Queries) GetTaskWithPatientById(ctx context.Context, id uuid.UUID) ([]G &i.Patient.IsDischarged, &i.Patient.Consistency, &i.Patient.OrganizationID, + &i.Patient.Gender, + &i.Patient.DateOfBirth, &i.SubtaskID, &i.SubtaskName, &i.SubtaskDone, @@ -176,7 +178,7 @@ func (q *Queries) GetTaskWithPatientById(ctx context.Context, id uuid.UUID) ([]G const getTasksWithPatientByAssignee = `-- name: GetTasksWithPatientByAssignee :many SELECT tasks.id, tasks.name, tasks.description, tasks.status, tasks.assigned_user_id, tasks.patient_id, tasks.public, tasks.created_by, tasks.due_at, tasks.created_at, tasks.consistency, - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, subtasks.id as subtask_id, subtasks.name as subtask_name, subtasks.done as subtask_done, @@ -226,6 +228,8 @@ func (q *Queries) GetTasksWithPatientByAssignee(ctx context.Context, assignedUse &i.Patient.IsDischarged, &i.Patient.Consistency, &i.Patient.OrganizationID, + &i.Patient.Gender, + &i.Patient.DateOfBirth, &i.SubtaskID, &i.SubtaskName, &i.SubtaskDone, diff --git a/services/tasks-svc/repos/task_template_repo/models.go b/services/tasks-svc/repos/task_template_repo/models.go index c02b6c49f..1043d971e 100644 --- a/services/tasks-svc/repos/task_template_repo/models.go +++ b/services/tasks-svc/repos/task_template_repo/models.go @@ -26,6 +26,8 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date } type Room struct { diff --git a/services/tasks-svc/repos/ward_repo/models.go b/services/tasks-svc/repos/ward_repo/models.go index 31178babb..815bc5284 100644 --- a/services/tasks-svc/repos/ward_repo/models.go +++ b/services/tasks-svc/repos/ward_repo/models.go @@ -26,6 +26,8 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID + Gender *int32 + DateOfBirth pgtype.Date } type Room struct { diff --git a/services/tasks-svc/schema.sql b/services/tasks-svc/schema.sql index 27e4b37e3..984819d6a 100644 --- a/services/tasks-svc/schema.sql +++ b/services/tasks-svc/schema.sql @@ -59,7 +59,9 @@ CREATE TABLE public.patients ( updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, is_discharged boolean DEFAULT false NOT NULL, consistency bigint DEFAULT 0 NOT NULL, - organization_id uuid NOT NULL + organization_id uuid NOT NULL, + gender integer, + date_of_birth date ); From 6afd1d642d57f4045fa4d47770f7f5a31517781d Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Thu, 12 Dec 2024 16:11:35 +0100 Subject: [PATCH 03/10] remove import --- proto/services/task_svc/v1/patient_svc.proto | 2 -- 1 file changed, 2 deletions(-) diff --git a/proto/services/task_svc/v1/patient_svc.proto b/proto/services/task_svc/v1/patient_svc.proto index 3f6b1b909..8e566941c 100644 --- a/proto/services/task_svc/v1/patient_svc.proto +++ b/proto/services/task_svc/v1/patient_svc.proto @@ -4,8 +4,6 @@ package services.task_svc.v1; option go_package = "gen/services/task-svc/v1"; -import "libs/common/v1/types.proto"; - // // CreatePatient // From f0aaf0c385988fc695cb86eb49a5e5f5a0349e6d Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Thu, 12 Dec 2024 16:12:13 +0100 Subject: [PATCH 04/10] protos --- gen/dart/lib/libs/common/v1/types.pb.dart | 2 + gen/dart/lib/libs/common/v1/types.pbenum.dart | 25 + gen/dart/lib/libs/common/v1/types.pbjson.dart | 16 + .../services/task_svc/v1/patient_svc.pb.dart | 241 --- .../task_svc/v1/patient_svc.pbenum.dart | 19 - .../task_svc/v1/patient_svc.pbjson.dart | 173 +-- .../services/tasks_svc/v1/patient_svc.pb.dart | 212 +++ .../tasks_svc/v1/patient_svc.pbjson.dart | 163 +- gen/go/libs/common/v1/types.pb.go | 89 +- gen/go/services/task_svc/v1/patient_svc.pb.go | 1359 +++++++---------- .../services/tasks_svc/v1/patient_svc.pb.go | 1281 +++++++++------- gen/ts/libs/common/v1/types_pb.d.ts | 6 + gen/ts/libs/common/v1/types_pb.js | 11 + .../task_svc/v1/patient_svc_grpc_web_pb.js | 2 - .../services/task_svc/v1/patient_svc_pb.d.ts | 171 --- gen/ts/services/task_svc/v1/patient_svc_pb.js | 865 +---------- .../tasks_svc/v1/patient_svc_grpc_web_pb.js | 2 + .../services/tasks_svc/v1/patient_svc_pb.d.ts | 163 +- .../services/tasks_svc/v1/patient_svc_pb.js | 767 +++++++++- 19 files changed, 2712 insertions(+), 2855 deletions(-) diff --git a/gen/dart/lib/libs/common/v1/types.pb.dart b/gen/dart/lib/libs/common/v1/types.pb.dart index bec635236..534d064cd 100644 --- a/gen/dart/lib/libs/common/v1/types.pb.dart +++ b/gen/dart/lib/libs/common/v1/types.pb.dart @@ -15,6 +15,8 @@ import 'package:protobuf/protobuf.dart' as $pb; import '../../../google/protobuf/timestamp.pb.dart' as $21; +export 'types.pbenum.dart'; + class Date extends $pb.GeneratedMessage { factory Date({ $21.Timestamp? date, diff --git a/gen/dart/lib/libs/common/v1/types.pbenum.dart b/gen/dart/lib/libs/common/v1/types.pbenum.dart index 8dd68ba7c..7deb84246 100644 --- a/gen/dart/lib/libs/common/v1/types.pbenum.dart +++ b/gen/dart/lib/libs/common/v1/types.pbenum.dart @@ -9,3 +9,28 @@ // 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 Gender extends $pb.ProtobufEnum { + static const Gender GENDER_UNSPECIFIED = Gender._(0, _omitEnumNames ? '' : 'GENDER_UNSPECIFIED'); + static const Gender GENDER_FEMALE = Gender._(1, _omitEnumNames ? '' : 'GENDER_FEMALE'); + static const Gender GENDER_MALE = Gender._(2, _omitEnumNames ? '' : 'GENDER_MALE'); + static const Gender GENDER_DIVERSE = Gender._(3, _omitEnumNames ? '' : 'GENDER_DIVERSE'); + + static const $core.List values = [ + GENDER_UNSPECIFIED, + GENDER_FEMALE, + GENDER_MALE, + GENDER_DIVERSE, + ]; + + static final $core.Map<$core.int, Gender> _byValue = $pb.ProtobufEnum.initByValue(values); + static Gender? valueOf($core.int value) => _byValue[value]; + + const Gender._($core.int v, $core.String n) : super(v, n); +} + + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/gen/dart/lib/libs/common/v1/types.pbjson.dart b/gen/dart/lib/libs/common/v1/types.pbjson.dart index 1cd4197c2..3d8f9a512 100644 --- a/gen/dart/lib/libs/common/v1/types.pbjson.dart +++ b/gen/dart/lib/libs/common/v1/types.pbjson.dart @@ -13,6 +13,22 @@ import 'dart:convert' as $convert; import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; +@$core.Deprecated('Use genderDescriptor instead') +const Gender$json = { + '1': 'Gender', + '2': [ + {'1': 'GENDER_UNSPECIFIED', '2': 0}, + {'1': 'GENDER_FEMALE', '2': 1}, + {'1': 'GENDER_MALE', '2': 2}, + {'1': 'GENDER_DIVERSE', '2': 3}, + ], +}; + +/// Descriptor for `Gender`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List genderDescriptor = $convert.base64Decode( + 'CgZHZW5kZXISFgoSR0VOREVSX1VOU1BFQ0lGSUVEEAASEQoNR0VOREVSX0ZFTUFMRRABEg8KC0' + 'dFTkRFUl9NQUxFEAISEgoOR0VOREVSX0RJVkVSU0UQAw=='); + @$core.Deprecated('Use dateDescriptor instead') const Date$json = { '1': 'Date', diff --git a/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart b/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart index c590b5e9f..38c6c5cef 100644 --- a/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart +++ b/gen/dart/lib/services/task_svc/v1/patient_svc.pb.dart @@ -13,7 +13,6 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../libs/common/v1/types.pb.dart' as $24; import 'patient_svc.pbenum.dart'; export 'patient_svc.pbenum.dart'; @@ -22,8 +21,6 @@ class CreatePatientRequest extends $pb.GeneratedMessage { factory CreatePatientRequest({ $core.String? humanReadableIdentifier, $core.String? notes, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (humanReadableIdentifier != null) { @@ -32,12 +29,6 @@ class CreatePatientRequest extends $pb.GeneratedMessage { if (notes != null) { $result.notes = notes; } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } CreatePatientRequest._() : super(); @@ -47,8 +38,6 @@ class CreatePatientRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePatientRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'services.task_svc.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(2, _omitFieldNames ? '' : 'notes') - ..e(3, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(4, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -90,26 +79,6 @@ class CreatePatientRequest extends $pb.GeneratedMessage { $core.bool hasNotes() => $_has(1); @$pb.TagNumber(2) void clearNotes() => clearField(2); - - @$pb.TagNumber(3) - Gender get gender => $_getN(2); - @$pb.TagNumber(3) - set gender(Gender v) { setField(3, v); } - @$pb.TagNumber(3) - $core.bool hasGender() => $_has(2); - @$pb.TagNumber(3) - void clearGender() => clearField(3); - - @$pb.TagNumber(4) - $24.Date get dateOfBirth => $_getN(3); - @$pb.TagNumber(4) - set dateOfBirth($24.Date v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasDateOfBirth() => $_has(3); - @$pb.TagNumber(4) - void clearDateOfBirth() => clearField(4); - @$pb.TagNumber(4) - $24.Date ensureDateOfBirth() => $_ensure(3); } class CreatePatientResponse extends $pb.GeneratedMessage { @@ -365,8 +334,6 @@ class GetPatientResponse extends $pb.GeneratedMessage { $core.String? wardId, GetPatientResponse_Room? room, GetPatientResponse_Bed? bed, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -392,12 +359,6 @@ class GetPatientResponse extends $pb.GeneratedMessage { if (bed != null) { $result.bed = bed; } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } GetPatientResponse._() : super(); @@ -412,8 +373,6 @@ class GetPatientResponse extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'wardId') ..aOM(7, _omitFieldNames ? '' : 'room', subBuilder: GetPatientResponse_Room.create) ..aOM(8, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientResponse_Bed.create) - ..e(9, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(10, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -512,26 +471,6 @@ class GetPatientResponse extends $pb.GeneratedMessage { void clearBed() => clearField(8); @$pb.TagNumber(8) GetPatientResponse_Bed ensureBed() => $_ensure(6); - - @$pb.TagNumber(9) - Gender get gender => $_getN(7); - @$pb.TagNumber(9) - set gender(Gender v) { setField(9, v); } - @$pb.TagNumber(9) - $core.bool hasGender() => $_has(7); - @$pb.TagNumber(9) - void clearGender() => clearField(9); - - @$pb.TagNumber(10) - $24.Date get dateOfBirth => $_getN(8); - @$pb.TagNumber(10) - set dateOfBirth($24.Date v) { setField(10, v); } - @$pb.TagNumber(10) - $core.bool hasDateOfBirth() => $_has(8); - @$pb.TagNumber(10) - void clearDateOfBirth() => clearField(10); - @$pb.TagNumber(10) - $24.Date ensureDateOfBirth() => $_ensure(8); } /// @@ -674,8 +613,6 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.String? bedId, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -690,12 +627,6 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { if (bedId != null) { $result.bedId = bedId; } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } GetPatientByBedResponse._() : super(); @@ -707,8 +638,6 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') - ..e(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -768,26 +697,6 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.bool hasBedId() => $_has(3); @$pb.TagNumber(4) void clearBedId() => clearField(4); - - @$pb.TagNumber(5) - Gender get gender => $_getN(4); - @$pb.TagNumber(5) - set gender(Gender v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasGender() => $_has(4); - @$pb.TagNumber(5) - void clearGender() => clearField(5); - - @$pb.TagNumber(6) - $24.Date get dateOfBirth => $_getN(5); - @$pb.TagNumber(6) - set dateOfBirth($24.Date v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasDateOfBirth() => $_has(5); - @$pb.TagNumber(6) - void clearDateOfBirth() => clearField(6); - @$pb.TagNumber(6) - $24.Date ensureDateOfBirth() => $_ensure(5); } class GetPatientsByWardRequest extends $pb.GeneratedMessage { @@ -846,8 +755,6 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.String? bedId, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -862,12 +769,6 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { if (bedId != null) { $result.bedId = bedId; } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } GetPatientsByWardResponse_Patient._() : super(); @@ -879,8 +780,6 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') - ..e(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -940,26 +839,6 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.bool hasBedId() => $_has(3); @$pb.TagNumber(4) void clearBedId() => clearField(4); - - @$pb.TagNumber(5) - Gender get gender => $_getN(4); - @$pb.TagNumber(5) - set gender(Gender v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasGender() => $_has(4); - @$pb.TagNumber(5) - void clearGender() => clearField(5); - - @$pb.TagNumber(6) - $24.Date get dateOfBirth => $_getN(5); - @$pb.TagNumber(6) - set dateOfBirth($24.Date v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasDateOfBirth() => $_has(5); - @$pb.TagNumber(6) - void clearDateOfBirth() => clearField(6); - @$pb.TagNumber(6) - $24.Date ensureDateOfBirth() => $_ensure(5); } class GetPatientsByWardResponse extends $pb.GeneratedMessage { @@ -1635,8 +1514,6 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.String? id, $core.String? humanReadableIdentifier, $core.String? notes, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -1648,12 +1525,6 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { if (notes != null) { $result.notes = notes; } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } UpdatePatientRequest._() : super(); @@ -1664,8 +1535,6 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') - ..e(4, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(5, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -1716,26 +1585,6 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.bool hasNotes() => $_has(2); @$pb.TagNumber(3) void clearNotes() => clearField(3); - - @$pb.TagNumber(4) - Gender get gender => $_getN(3); - @$pb.TagNumber(4) - set gender(Gender v) { setField(4, v); } - @$pb.TagNumber(4) - $core.bool hasGender() => $_has(3); - @$pb.TagNumber(4) - void clearGender() => clearField(4); - - @$pb.TagNumber(5) - $24.Date get dateOfBirth => $_getN(4); - @$pb.TagNumber(5) - set dateOfBirth($24.Date v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasDateOfBirth() => $_has(4); - @$pb.TagNumber(5) - void clearDateOfBirth() => clearField(5); - @$pb.TagNumber(5) - $24.Date ensureDateOfBirth() => $_ensure(4); } class UpdatePatientResponse extends $pb.GeneratedMessage { @@ -2454,8 +2303,6 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { GetPatientDetailsResponse_Room? room, GetPatientDetailsResponse_Bed? bed, $core.bool? isDischarged, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2486,12 +2333,6 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { if (isDischarged != null) { $result.isDischarged = isDischarged; } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } GetPatientDetailsResponse._() : super(); @@ -2508,8 +2349,6 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { ..aOM(7, _omitFieldNames ? '' : 'room', subBuilder: GetPatientDetailsResponse_Room.create) ..aOM(8, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientDetailsResponse_Bed.create) ..aOB(9, _omitFieldNames ? '' : 'isDischarged') - ..e(10, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(11, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2616,26 +2455,6 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { $core.bool hasIsDischarged() => $_has(8); @$pb.TagNumber(9) void clearIsDischarged() => clearField(9); - - @$pb.TagNumber(10) - Gender get gender => $_getN(9); - @$pb.TagNumber(10) - set gender(Gender v) { setField(10, v); } - @$pb.TagNumber(10) - $core.bool hasGender() => $_has(9); - @$pb.TagNumber(10) - void clearGender() => clearField(10); - - @$pb.TagNumber(11) - $24.Date get dateOfBirth => $_getN(10); - @$pb.TagNumber(11) - set dateOfBirth($24.Date v) { setField(11, v); } - @$pb.TagNumber(11) - $core.bool hasDateOfBirth() => $_has(10); - @$pb.TagNumber(11) - void clearDateOfBirth() => clearField(11); - @$pb.TagNumber(11) - $24.Date ensureDateOfBirth() => $_ensure(10); } class GetPatientListRequest extends $pb.GeneratedMessage { @@ -2694,8 +2513,6 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.Iterable? tasks, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2710,12 +2527,6 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { if (tasks != null) { $result.tasks.addAll(tasks); } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } GetPatientListResponse_Patient._() : super(); @@ -2727,8 +2538,6 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..pc(4, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: GetPatientListResponse_Task.create) - ..e(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2782,26 +2591,6 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.List get tasks => $_getList(3); - - @$pb.TagNumber(5) - Gender get gender => $_getN(4); - @$pb.TagNumber(5) - set gender(Gender v) { setField(5, v); } - @$pb.TagNumber(5) - $core.bool hasGender() => $_has(4); - @$pb.TagNumber(5) - void clearGender() => clearField(5); - - @$pb.TagNumber(6) - $24.Date get dateOfBirth => $_getN(5); - @$pb.TagNumber(6) - set dateOfBirth($24.Date v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasDateOfBirth() => $_has(5); - @$pb.TagNumber(6) - void clearDateOfBirth() => clearField(6); - @$pb.TagNumber(6) - $24.Date ensureDateOfBirth() => $_ensure(5); } class GetPatientListResponse_Bed extends $pb.GeneratedMessage { @@ -2954,8 +2743,6 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage GetPatientListResponse_Bed? bed, $core.String? notes, $core.Iterable? tasks, - Gender? gender, - $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2976,12 +2763,6 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage if (tasks != null) { $result.tasks.addAll(tasks); } - if (gender != null) { - $result.gender = gender; - } - if (dateOfBirth != null) { - $result.dateOfBirth = dateOfBirth; - } return $result; } GetPatientListResponse_PatientWithRoomAndBed._() : super(); @@ -2995,8 +2776,6 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage ..aOM(4, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientListResponse_Bed.create) ..aOS(5, _omitFieldNames ? '' : 'notes') ..pc(6, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: GetPatientListResponse_Task.create) - ..e(7, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: Gender.GENDER_UNSPECIFIED, valueOf: Gender.valueOf, enumValues: Gender.values) - ..aOM<$24.Date>(8, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -3072,26 +2851,6 @@ class GetPatientListResponse_PatientWithRoomAndBed extends $pb.GeneratedMessage @$pb.TagNumber(6) $core.List get tasks => $_getList(5); - - @$pb.TagNumber(7) - Gender get gender => $_getN(6); - @$pb.TagNumber(7) - set gender(Gender v) { setField(7, v); } - @$pb.TagNumber(7) - $core.bool hasGender() => $_has(6); - @$pb.TagNumber(7) - void clearGender() => clearField(7); - - @$pb.TagNumber(8) - $24.Date get dateOfBirth => $_getN(7); - @$pb.TagNumber(8) - set dateOfBirth($24.Date v) { setField(8, v); } - @$pb.TagNumber(8) - $core.bool hasDateOfBirth() => $_has(7); - @$pb.TagNumber(8) - void clearDateOfBirth() => clearField(8); - @$pb.TagNumber(8) - $24.Date ensureDateOfBirth() => $_ensure(7); } class GetPatientListResponse_Task_SubTask extends $pb.GeneratedMessage { diff --git a/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart b/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart index 493630de7..76c60751e 100644 --- a/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart +++ b/gen/dart/lib/services/task_svc/v1/patient_svc.pbenum.dart @@ -13,25 +13,6 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -class Gender extends $pb.ProtobufEnum { - static const Gender GENDER_UNSPECIFIED = Gender._(0, _omitEnumNames ? '' : 'GENDER_UNSPECIFIED'); - static const Gender GENDER_FEMALE = Gender._(1, _omitEnumNames ? '' : 'GENDER_FEMALE'); - static const Gender GENDER_MALE = Gender._(2, _omitEnumNames ? '' : 'GENDER_MALE'); - static const Gender GENDER_DIVERSE = Gender._(3, _omitEnumNames ? '' : 'GENDER_DIVERSE'); - - static const $core.List values = [ - GENDER_UNSPECIFIED, - GENDER_FEMALE, - GENDER_MALE, - GENDER_DIVERSE, - ]; - - static final $core.Map<$core.int, Gender> _byValue = $pb.ProtobufEnum.initByValue(values); - static Gender? valueOf($core.int value) => _byValue[value]; - - const Gender._($core.int v, $core.String n) : super(v, n); -} - class GetPatientDetailsResponse_TaskStatus extends $pb.ProtobufEnum { static const GetPatientDetailsResponse_TaskStatus TASK_STATUS_UNSPECIFIED = GetPatientDetailsResponse_TaskStatus._(0, _omitEnumNames ? '' : 'TASK_STATUS_UNSPECIFIED'); static const GetPatientDetailsResponse_TaskStatus TASK_STATUS_TODO = GetPatientDetailsResponse_TaskStatus._(1, _omitEnumNames ? '' : 'TASK_STATUS_TODO'); diff --git a/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart b/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart index e0d16ad13..742d61717 100644 --- a/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart +++ b/gen/dart/lib/services/task_svc/v1/patient_svc.pbjson.dart @@ -13,39 +13,19 @@ import 'dart:convert' as $convert; import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; -@$core.Deprecated('Use genderDescriptor instead') -const Gender$json = { - '1': 'Gender', - '2': [ - {'1': 'GENDER_UNSPECIFIED', '2': 0}, - {'1': 'GENDER_FEMALE', '2': 1}, - {'1': 'GENDER_MALE', '2': 2}, - {'1': 'GENDER_DIVERSE', '2': 3}, - ], -}; - -/// Descriptor for `Gender`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List genderDescriptor = $convert.base64Decode( - 'CgZHZW5kZXISFgoSR0VOREVSX1VOU1BFQ0lGSUVEEAASEQoNR0VOREVSX0ZFTUFMRRABEg8KC0' - 'dFTkRFUl9NQUxFEAISEgoOR0VOREVSX0RJVkVSU0UQAw=='); - @$core.Deprecated('Use createPatientRequestDescriptor instead') const CreatePatientRequest$json = { '1': 'CreatePatientRequest', '2': [ {'1': 'human_readable_identifier', '3': 1, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 2, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 3, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '10': 'gender'}, - {'1': 'date_of_birth', '3': 4, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '10': 'dateOfBirth'}, ], }; /// Descriptor for `CreatePatientRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createPatientRequestDescriptor = $convert.base64Decode( 'ChRDcmVhdGVQYXRpZW50UmVxdWVzdBI6ChlodW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyGAEgAS' - 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3RlcxgCIAEoCVIFbm90ZXMSNAoGZ2Vu' - 'ZGVyGAMgASgOMhwuc2VydmljZXMudGFza19zdmMudjEuR2VuZGVyUgZnZW5kZXISOAoNZGF0ZV' - '9vZl9iaXJ0aBgEIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVSC2RhdGVPZkJpcnRo'); + 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3RlcxgCIAEoCVIFbm90ZXM='); @$core.Deprecated('Use createPatientResponseDescriptor instead') const CreatePatientResponse$json = { @@ -98,17 +78,13 @@ const GetPatientResponse$json = { '10': 'wardId', '17': true, }, - {'1': 'gender', '3': 9, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 2, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 10, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 3, '10': 'dateOfBirth', '17': true}, - {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Room', '9': 4, '10': 'room', '17': true}, - {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Bed', '9': 5, '10': 'bed', '17': true}, + {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Room', '9': 2, '10': 'room', '17': true}, + {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientResponse.Bed', '9': 3, '10': 'bed', '17': true}, ], '3': [GetPatientResponse_Room$json, GetPatientResponse_Bed$json], '8': [ {'1': '_bed_id'}, {'1': '_ward_id'}, - {'1': '_gender'}, - {'1': '_date_of_birth'}, {'1': '_room'}, {'1': '_bed'}, ], @@ -138,15 +114,12 @@ final $typed_data.Uint8List getPatientResponseDescriptor = $convert.base64Decode 'ChJHZXRQYXRpZW50UmVzcG9uc2USDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2' 'lkZW50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJ' 'UgVub3RlcxIeCgZiZWRfaWQYBCABKAlCAhgBSABSBWJlZElkiAEBEiAKB3dhcmRfaWQYBSABKA' - 'lCAhgBSAFSBndhcmRJZIgBARI5CgZnZW5kZXIYCSABKA4yHC5zZXJ2aWNlcy50YXNrX3N2Yy52' - 'MS5HZW5kZXJIAlIGZ2VuZGVyiAEBEj0KDWRhdGVfb2ZfYmlydGgYCiABKAsyFC5saWJzLmNvbW' - '1vbi52MS5EYXRlSANSC2RhdGVPZkJpcnRoiAEBEkYKBHJvb20YByABKAsyLS5zZXJ2aWNlcy50' - 'YXNrX3N2Yy52MS5HZXRQYXRpZW50UmVzcG9uc2UuUm9vbUgEUgRyb29tiAEBEkMKA2JlZBgIIA' - 'EoCzIsLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRSZXNwb25zZS5CZWRIBVIDYmVk' - 'iAEBGkMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF' - '9pZBgDIAEoCVIGd2FyZElkGikKA0JlZBIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIE' - 'bmFtZUIJCgdfYmVkX2lkQgoKCF93YXJkX2lkQgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydG' - 'hCBwoFX3Jvb21CBgoEX2JlZA=='); + 'lCAhgBSAFSBndhcmRJZIgBARJGCgRyb29tGAcgASgLMi0uc2VydmljZXMudGFza19zdmMudjEu' + 'R2V0UGF0aWVudFJlc3BvbnNlLlJvb21IAlIEcm9vbYgBARJDCgNiZWQYCCABKAsyLC5zZXJ2aW' + 'Nlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50UmVzcG9uc2UuQmVkSANSA2JlZIgBARpDCgRSb29t' + 'Eg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBn' + 'dhcmRJZBopCgNCZWQSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWVCCQoHX2Jl' + 'ZF9pZEIKCghfd2FyZF9pZEIHCgVfcm9vbUIGCgRfYmVk'); @$core.Deprecated('Use deletePatientRequestDescriptor instead') const DeletePatientRequest$json = { @@ -188,13 +161,9 @@ const GetPatientByBedResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, - {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'bedId', '17': true}, + {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'bedId', '17': true}, ], '8': [ - {'1': '_gender'}, - {'1': '_date_of_birth'}, {'1': '_bed_id'}, ], }; @@ -203,10 +172,7 @@ const GetPatientByBedResponse$json = { final $typed_data.Uint8List getPatientByBedResponseDescriptor = $convert.base64Decode( 'ChdHZXRQYXRpZW50QnlCZWRSZXNwb25zZRIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZG' 'FibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMY' - 'AyABKAlSBW5vdGVzEjkKBmdlbmRlchgFIAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbm' - 'RlckgAUgZnZW5kZXKIAQESPQoNZGF0ZV9vZl9iaXJ0aBgGIAEoCzIULmxpYnMuY29tbW9uLnYx' - 'LkRhdGVIAVILZGF0ZU9mQmlydGiIAQESGgoGYmVkX2lkGAQgASgJSAJSBWJlZElkiAEBQgkKB1' - '9nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGhCCQoHX2JlZF9pZA=='); + 'AyABKAlSBW5vdGVzEhoKBmJlZF9pZBgEIAEoCUgAUgViZWRJZIgBAUIJCgdfYmVkX2lk'); @$core.Deprecated('Use getPatientsByWardRequestDescriptor instead') const GetPatientsByWardRequest$json = { @@ -236,13 +202,9 @@ const GetPatientsByWardResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, - {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'bedId', '17': true}, + {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'bedId', '17': true}, ], '8': [ - {'1': '_gender'}, - {'1': '_date_of_birth'}, {'1': '_bed_id'}, ], }; @@ -251,12 +213,9 @@ const GetPatientsByWardResponse_Patient$json = { final $typed_data.Uint8List getPatientsByWardResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50c0J5V2FyZFJlc3BvbnNlElMKCHBhdGllbnRzGAEgAygLMjcuc2VydmljZX' 'MudGFza19zdmMudjEuR2V0UGF0aWVudHNCeVdhcmRSZXNwb25zZS5QYXRpZW50UghwYXRpZW50' - 'cxqpAgoHUGF0aWVudBIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZGFibGVfaWRlbnRpZm' + 'cxqSAQoHUGF0aWVudBIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZGFibGVfaWRlbnRpZm' 'llchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMYAyABKAlSBW5vdGVz' - 'EjkKBmdlbmRlchgFIAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbmRlckgAUgZnZW5kZX' - 'KIAQESPQoNZGF0ZV9vZl9iaXJ0aBgGIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAVILZGF0' - 'ZU9mQmlydGiIAQESGgoGYmVkX2lkGAQgASgJSAJSBWJlZElkiAEBQgkKB19nZW5kZXJCEAoOX2' - 'RhdGVfb2ZfYmlydGhCCQoHX2JlZF9pZA=='); + 'EhoKBmJlZF9pZBgEIAEoCUgAUgViZWRJZIgBAUIJCgdfYmVkX2lk'); @$core.Deprecated('Use getPatientAssignmentByWardRequestDescriptor instead') const GetPatientAssignmentByWardRequest$json = { @@ -393,14 +352,10 @@ const UpdatePatientRequest$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'humanReadableIdentifier', '17': true}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'notes', '17': true}, - {'1': 'gender', '3': 4, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 2, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 5, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 3, '10': 'dateOfBirth', '17': true}, ], '8': [ {'1': '_human_readable_identifier'}, {'1': '_notes'}, - {'1': '_gender'}, - {'1': '_date_of_birth'}, ], }; @@ -408,10 +363,8 @@ const UpdatePatientRequest$json = { final $typed_data.Uint8List updatePatientRequestDescriptor = $convert.base64Decode( 'ChRVcGRhdGVQYXRpZW50UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSPwoZaHVtYW5fcmVhZGFibG' 'VfaWRlbnRpZmllchgCIAEoCUgAUhdodW1hblJlYWRhYmxlSWRlbnRpZmllcogBARIZCgVub3Rl' - 'cxgDIAEoCUgBUgVub3Rlc4gBARI5CgZnZW5kZXIYBCABKA4yHC5zZXJ2aWNlcy50YXNrX3N2Yy' - '52MS5HZW5kZXJIAlIGZ2VuZGVyiAEBEj0KDWRhdGVfb2ZfYmlydGgYBSABKAsyFC5saWJzLmNv' - 'bW1vbi52MS5EYXRlSANSC2RhdGVPZkJpcnRoiAEBQhwKGl9odW1hbl9yZWFkYWJsZV9pZGVudG' - 'lmaWVyQggKBl9ub3Rlc0IJCgdfZ2VuZGVyQhAKDl9kYXRlX29mX2JpcnRo'); + 'cxgDIAEoCUgBUgVub3Rlc4gBAUIcChpfaHVtYW5fcmVhZGFibGVfaWRlbnRpZmllckIICgZfbm' + '90ZXM='); @$core.Deprecated('Use updatePatientResponseDescriptor instead') const UpdatePatientResponse$json = { @@ -521,8 +474,6 @@ const GetPatientDetailsResponse$json = { {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientDetailsResponse.Room', '9': 1, '10': 'room', '17': true}, {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientDetailsResponse.Bed', '9': 2, '10': 'bed', '17': true}, {'1': 'is_discharged', '3': 9, '4': 1, '5': 8, '10': 'isDischarged'}, - {'1': 'gender', '3': 10, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 3, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 11, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 4, '10': 'dateOfBirth', '17': true}, ], '3': [GetPatientDetailsResponse_Room$json, GetPatientDetailsResponse_Bed$json, GetPatientDetailsResponse_Task$json], '4': [GetPatientDetailsResponse_TaskStatus$json], @@ -530,8 +481,6 @@ const GetPatientDetailsResponse$json = { {'1': '_ward_id'}, {'1': '_room'}, {'1': '_bed'}, - {'1': '_gender'}, - {'1': '_date_of_birth'}, ], }; @@ -604,22 +553,19 @@ final $typed_data.Uint8List getPatientDetailsResponseDescriptor = $convert.base6 'Nlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlJvb21IAVIEcm9vbYgB' 'ARJKCgNiZWQYCCABKAsyMy5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1' 'Jlc3BvbnNlLkJlZEgCUgNiZWSIAQESIwoNaXNfZGlzY2hhcmdlZBgJIAEoCFIMaXNEaXNjaGFy' - 'Z2VkEjkKBmdlbmRlchgKIAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbmRlckgDUgZnZW' - '5kZXKIAQESPQoNZGF0ZV9vZl9iaXJ0aBgLIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIBFIL' - 'ZGF0ZU9mQmlydGiIAQEaQwoEUm9vbRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbm' - 'FtZRIXCgd3YXJkX2lkGAMgASgJUgZ3YXJkSWQaKQoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRu' - 'YW1lGAIgASgJUgRuYW1lGrgDCgRUYXNrEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUg' - 'RuYW1lEiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhJSCgZzdGF0dXMYBCABKA4y' - 'Oi5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2tTdG' - 'F0dXNSBnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVkVXNlcklk' - 'iAEBEh0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKAhSBnB1Ym' - 'xpYxJYCghzdWJ0YXNrcxgIIAMoCzI8LnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRE' - 'ZXRhaWxzUmVzcG9uc2UuVGFzay5TdWJUYXNrUghzdWJ0YXNrcxpBCgdTdWJUYXNrEg4KAmlkGA' - 'EgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhIKBGRvbmUYAyABKAhSBGRvbmVCEwoRX2Fz' - 'c2lnbmVkX3VzZXJfaWQicgoKVGFza1N0YXR1cxIbChdUQVNLX1NUQVRVU19VTlNQRUNJRklFRB' - 'AAEhQKEFRBU0tfU1RBVFVTX1RPRE8QARIbChdUQVNLX1NUQVRVU19JTl9QUk9HUkVTUxACEhQK' - 'EFRBU0tfU1RBVFVTX0RPTkUQA0IKCghfd2FyZF9pZEIHCgVfcm9vbUIGCgRfYmVkQgkKB19nZW' - '5kZXJCEAoOX2RhdGVfb2ZfYmlydGg='); + 'Z2VkGkMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF' + '9pZBgDIAEoCVIGd2FyZElkGikKA0JlZBIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIE' + 'bmFtZRq4AwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZX' + 'NjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SUgoGc3RhdHVzGAQgASgOMjouc2VydmljZXMu' + 'dGFza19zdmMudjEuR2V0UGF0aWVudERldGFpbHNSZXNwb25zZS5UYXNrU3RhdHVzUgZzdGF0dX' + 'MSLQoQYXNzaWduZWRfdXNlcl9pZBgFIAEoCUgAUg5hc3NpZ25lZFVzZXJJZIgBARIdCgpwYXRp' + 'ZW50X2lkGAYgASgJUglwYXRpZW50SWQSFgoGcHVibGljGAcgASgIUgZwdWJsaWMSWAoIc3VidG' + 'Fza3MYCCADKAsyPC5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3Bv' + 'bnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MaQQoHU3ViVGFzaxIOCgJpZBgBIAEoCVICaWQSEg' + 'oEbmFtZRgCIAEoCVIEbmFtZRISCgRkb25lGAMgASgIUgRkb25lQhMKEV9hc3NpZ25lZF91c2Vy' + 'X2lkInIKClRhc2tTdGF0dXMSGwoXVEFTS19TVEFUVVNfVU5TUEVDSUZJRUQQABIUChBUQVNLX1' + 'NUQVRVU19UT0RPEAESGwoXVEFTS19TVEFUVVNfSU5fUFJPR1JFU1MQAhIUChBUQVNLX1NUQVRV' + 'U19ET05FEANCCgoIX3dhcmRfaWRCBwoFX3Jvb21CBgoEX2JlZA=='); @$core.Deprecated('Use getPatientListRequestDescriptor instead') const GetPatientListRequest$json = { @@ -656,14 +602,8 @@ const GetPatientListResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 4, '4': 3, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Task', '10': 'tasks'}, ], - '8': [ - {'1': '_gender'}, - {'1': '_date_of_birth'}, - ], }; @$core.Deprecated('Use getPatientListResponseDescriptor instead') @@ -694,14 +634,8 @@ const GetPatientListResponse_PatientWithRoomAndBed$json = { {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Room', '10': 'room'}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Bed', '10': 'bed'}, {'1': 'notes', '3': 5, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 7, '4': 1, '5': 14, '6': '.services.task_svc.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 8, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 6, '4': 3, '5': 11, '6': '.services.task_svc.v1.GetPatientListResponse.Task', '10': 'tasks'}, ], - '8': [ - {'1': '_gender'}, - {'1': '_date_of_birth'}, - ], }; @$core.Deprecated('Use getPatientListResponseDescriptor instead') @@ -751,34 +685,29 @@ final $typed_data.Uint8List getPatientListResponseDescriptor = $convert.base64De 'Y3RpdmUSZQoTdW5hc3NpZ25lZF9wYXRpZW50cxgCIAMoCzI0LnNlcnZpY2VzLnRhc2tfc3ZjLn' 'YxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuUGF0aWVudFISdW5hc3NpZ25lZFBhdGllbnRzEmUK' 'E2Rpc2NoYXJnZWRfcGF0aWVudHMYAyADKAsyNC5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYX' - 'RpZW50TGlzdFJlc3BvbnNlLlBhdGllbnRSEmRpc2NoYXJnZWRQYXRpZW50cxrLAgoHUGF0aWVu' + 'RpZW50TGlzdFJlc3BvbnNlLlBhdGllbnRSEmRpc2NoYXJnZWRQYXRpZW50cxq0AQoHUGF0aWVu' 'dBIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZGFibGVfaWRlbnRpZmllchgCIAEoCVIXaH' - 'VtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMYAyABKAlSBW5vdGVzEjkKBmdlbmRlchgF' - 'IAEoDjIcLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdlbmRlckgAUgZnZW5kZXKIAQESPQoNZGF0ZV' - '9vZl9iaXJ0aBgGIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAVILZGF0ZU9mQmlydGiIAQES' - 'RwoFdGFza3MYBCADKAsyMS5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3' - 'BvbnNlLlRhc2tSBXRhc2tzQgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGgaKQoDQmVkEg4K' - 'AmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lGkMKBFJvb20SDgoCaWQYASABKAlSAm' - 'lkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF9pZBgDIAEoCVIGd2FyZElkGuQDChVQYXRp' - 'ZW50V2l0aFJvb21BbmRCZWQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW' - '50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEkUKBHJvb20YAyABKAsyMS5z' - 'ZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlJvb21SBHJvb20SQg' - 'oDYmVkGAQgASgLMjAuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25z' - 'ZS5CZWRSA2JlZBIUCgVub3RlcxgFIAEoCVIFbm90ZXMSOQoGZ2VuZGVyGAcgASgOMhwuc2Vydm' - 'ljZXMudGFza19zdmMudjEuR2VuZGVySABSBmdlbmRlcogBARI9Cg1kYXRlX29mX2JpcnRoGAgg' - 'ASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgBUgtkYXRlT2ZCaXJ0aIgBARJHCgV0YXNrcxgGIA' - 'MoCzIxLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVGFza1IF' - 'dGFza3NCCQoHX2dlbmRlckIQCg5fZGF0ZV9vZl9iaXJ0aBqyAwoEVGFzaxIOCgJpZBgBIAEoCV' - 'ICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRp' - 'b24STwoGc3RhdHVzGAQgASgOMjcuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3' - 'RSZXNwb25zZS5UYXNrU3RhdHVzUgZzdGF0dXMSLQoQYXNzaWduZWRfdXNlcl9pZBgFIAEoCUgA' - 'Ug5hc3NpZ25lZFVzZXJJZIgBARIdCgpwYXRpZW50X2lkGAYgASgJUglwYXRpZW50SWQSFgoGcH' - 'VibGljGAcgASgIUgZwdWJsaWMSVQoIc3VidGFza3MYCCADKAsyOS5zZXJ2aWNlcy50YXNrX3N2' - 'Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MaQQoHU3' - 'ViVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRISCgRkb25lGAMgASgI' - 'UgRkb25lQhMKEV9hc3NpZ25lZF91c2VyX2lkInIKClRhc2tTdGF0dXMSGwoXVEFTS19TVEFUVV' - 'NfVU5TUEVDSUZJRUQQABIUChBUQVNLX1NUQVRVU19UT0RPEAESGwoXVEFTS19TVEFUVVNfSU5f' - 'UFJPR1JFU1MQAhIUChBUQVNLX1NUQVRVU19ET05FEAM='); + 'VtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMYAyABKAlSBW5vdGVzEkcKBXRhc2tzGAQg' + 'AygLMjEuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25zZS5UYXNrUg' + 'V0YXNrcxopCgNCZWQSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUaQwoEUm9v' + 'bRIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIXCgd3YXJkX2lkGAMgASgJUg' + 'Z3YXJkSWQazQIKFVBhdGllbnRXaXRoUm9vbUFuZEJlZBIOCgJpZBgBIAEoCVICaWQSOgoZaHVt' + 'YW5fcmVhZGFibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISRQ' + 'oEcm9vbRgDIAEoCzIxLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9u' + 'c2UuUm9vbVIEcm9vbRJCCgNiZWQYBCABKAsyMC5zZXJ2aWNlcy50YXNrX3N2Yy52MS5HZXRQYX' + 'RpZW50TGlzdFJlc3BvbnNlLkJlZFIDYmVkEhQKBW5vdGVzGAUgASgJUgVub3RlcxJHCgV0YXNr' + 'cxgGIAMoCzIxLnNlcnZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVG' + 'Fza1IFdGFza3MasgMKBFRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUS' + 'IAoLZGVzY3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEk8KBnN0YXR1cxgEIAEoDjI3LnNlcn' + 'ZpY2VzLnRhc2tfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVGFza1N0YXR1c1IGc3Rh' + 'dHVzEi0KEGFzc2lnbmVkX3VzZXJfaWQYBSABKAlIAFIOYXNzaWduZWRVc2VySWSIAQESHQoKcG' + 'F0aWVudF9pZBgGIAEoCVIJcGF0aWVudElkEhYKBnB1YmxpYxgHIAEoCFIGcHVibGljElUKCHN1' + 'YnRhc2tzGAggAygLMjkuc2VydmljZXMudGFza19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb2' + '5zZS5UYXNrLlN1YlRhc2tSCHN1YnRhc2tzGkEKB1N1YlRhc2sSDgoCaWQYASABKAlSAmlkEhIK' + 'BG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZWRfdXNlcl' + '9pZCJyCgpUYXNrU3RhdHVzEhsKF1RBU0tfU1RBVFVTX1VOU1BFQ0lGSUVEEAASFAoQVEFTS19T' + 'VEFUVVNfVE9ETxABEhsKF1RBU0tfU1RBVFVTX0lOX1BST0dSRVNTEAISFAoQVEFTS19TVEFUVV' + 'NfRE9ORRAD'); @$core.Deprecated('Use readmitPatientRequestDescriptor instead') const ReadmitPatientRequest$json = { diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart index 44e2f2f9c..164e73379 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart @@ -14,12 +14,16 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; import '../../../libs/common/v1/conflict.pb.dart' as $22; +import '../../../libs/common/v1/types.pb.dart' as $24; +import '../../../libs/common/v1/types.pbenum.dart' as $24; import 'types.pbenum.dart' as $25; class CreatePatientRequest extends $pb.GeneratedMessage { factory CreatePatientRequest({ $core.String? humanReadableIdentifier, $core.String? notes, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (humanReadableIdentifier != null) { @@ -28,6 +32,12 @@ class CreatePatientRequest extends $pb.GeneratedMessage { if (notes != null) { $result.notes = notes; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } CreatePatientRequest._() : super(); @@ -37,6 +47,8 @@ class CreatePatientRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePatientRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'services.tasks_svc.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(2, _omitFieldNames ? '' : 'notes') + ..e<$24.Gender>(3, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(4, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -78,6 +90,26 @@ class CreatePatientRequest extends $pb.GeneratedMessage { $core.bool hasNotes() => $_has(1); @$pb.TagNumber(2) void clearNotes() => clearField(2); + + @$pb.TagNumber(3) + $24.Gender get gender => $_getN(2); + @$pb.TagNumber(3) + set gender($24.Gender v) { setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasGender() => $_has(2); + @$pb.TagNumber(3) + void clearGender() => clearField(3); + + @$pb.TagNumber(4) + $24.Date get dateOfBirth => $_getN(3); + @$pb.TagNumber(4) + set dateOfBirth($24.Date v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasDateOfBirth() => $_has(3); + @$pb.TagNumber(4) + void clearDateOfBirth() => clearField(4); + @$pb.TagNumber(4) + $24.Date ensureDateOfBirth() => $_ensure(3); } class CreatePatientResponse extends $pb.GeneratedMessage { @@ -372,6 +404,8 @@ class GetPatientResponse extends $pb.GeneratedMessage { GetPatientResponse_Room? room, GetPatientResponse_Bed? bed, $core.String? consistency, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -392,6 +426,12 @@ class GetPatientResponse extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientResponse._() : super(); @@ -405,6 +445,8 @@ class GetPatientResponse extends $pb.GeneratedMessage { ..aOM(7, _omitFieldNames ? '' : 'room', subBuilder: GetPatientResponse_Room.create) ..aOM(8, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientResponse_Bed.create) ..aOS(9, _omitFieldNames ? '' : 'consistency') + ..e<$24.Gender>(10, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(11, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -486,6 +528,26 @@ class GetPatientResponse extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(5); @$pb.TagNumber(9) void clearConsistency() => clearField(9); + + @$pb.TagNumber(10) + $24.Gender get gender => $_getN(6); + @$pb.TagNumber(10) + set gender($24.Gender v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasGender() => $_has(6); + @$pb.TagNumber(10) + void clearGender() => clearField(10); + + @$pb.TagNumber(11) + $24.Date get dateOfBirth => $_getN(7); + @$pb.TagNumber(11) + set dateOfBirth($24.Date v) { setField(11, v); } + @$pb.TagNumber(11) + $core.bool hasDateOfBirth() => $_has(7); + @$pb.TagNumber(11) + void clearDateOfBirth() => clearField(11); + @$pb.TagNumber(11) + $24.Date ensureDateOfBirth() => $_ensure(7); } class GetPatientByBedRequest extends $pb.GeneratedMessage { @@ -545,6 +607,8 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.String? notes, $core.String? bedId, $core.String? consistency, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -562,6 +626,12 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientByBedResponse._() : super(); @@ -574,6 +644,8 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') ..aOS(5, _omitFieldNames ? '' : 'consistency') + ..e<$24.Gender>(6, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(7, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -642,6 +714,26 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(4); @$pb.TagNumber(5) void clearConsistency() => clearField(5); + + @$pb.TagNumber(6) + $24.Gender get gender => $_getN(5); + @$pb.TagNumber(6) + set gender($24.Gender v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasGender() => $_has(5); + @$pb.TagNumber(6) + void clearGender() => clearField(6); + + @$pb.TagNumber(7) + $24.Date get dateOfBirth => $_getN(6); + @$pb.TagNumber(7) + set dateOfBirth($24.Date v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasDateOfBirth() => $_has(6); + @$pb.TagNumber(7) + void clearDateOfBirth() => clearField(7); + @$pb.TagNumber(7) + $24.Date ensureDateOfBirth() => $_ensure(6); } class GetPatientsByWardRequest extends $pb.GeneratedMessage { @@ -701,6 +793,8 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.String? notes, $core.String? bedId, $core.String? consistency, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -718,6 +812,12 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientsByWardResponse_Patient._() : super(); @@ -730,6 +830,8 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') ..aOS(5, _omitFieldNames ? '' : 'consistency') + ..e<$24.Gender>(6, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(7, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -798,6 +900,26 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(4); @$pb.TagNumber(5) void clearConsistency() => clearField(5); + + @$pb.TagNumber(6) + $24.Gender get gender => $_getN(5); + @$pb.TagNumber(6) + set gender($24.Gender v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasGender() => $_has(5); + @$pb.TagNumber(6) + void clearGender() => clearField(6); + + @$pb.TagNumber(7) + $24.Date get dateOfBirth => $_getN(6); + @$pb.TagNumber(7) + set dateOfBirth($24.Date v) { setField(7, v); } + @$pb.TagNumber(7) + $core.bool hasDateOfBirth() => $_has(6); + @$pb.TagNumber(7) + void clearDateOfBirth() => clearField(7); + @$pb.TagNumber(7) + $24.Date ensureDateOfBirth() => $_ensure(6); } class GetPatientsByWardResponse extends $pb.GeneratedMessage { @@ -1660,6 +1782,8 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { GetPatientDetailsResponse_Bed? bed, $core.bool? isDischarged, $core.String? consistency, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -1686,6 +1810,12 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientDetailsResponse._() : super(); @@ -1701,6 +1831,8 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { ..aOM(6, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientDetailsResponse_Bed.create) ..aOB(7, _omitFieldNames ? '' : 'isDischarged') ..aOS(8, _omitFieldNames ? '' : 'consistency') + ..e<$24.Gender>(9, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(10, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -1794,6 +1926,26 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(7); @$pb.TagNumber(8) void clearConsistency() => clearField(8); + + @$pb.TagNumber(9) + $24.Gender get gender => $_getN(8); + @$pb.TagNumber(9) + set gender($24.Gender v) { setField(9, v); } + @$pb.TagNumber(9) + $core.bool hasGender() => $_has(8); + @$pb.TagNumber(9) + void clearGender() => clearField(9); + + @$pb.TagNumber(10) + $24.Date get dateOfBirth => $_getN(9); + @$pb.TagNumber(10) + set dateOfBirth($24.Date v) { setField(10, v); } + @$pb.TagNumber(10) + $core.bool hasDateOfBirth() => $_has(9); + @$pb.TagNumber(10) + void clearDateOfBirth() => clearField(10); + @$pb.TagNumber(10) + $24.Date ensureDateOfBirth() => $_ensure(9); } class GetPatientListRequest extends $pb.GeneratedMessage { @@ -2025,6 +2177,8 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { $core.String? notes, $core.Iterable? tasks, $core.String? consistency, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2048,6 +2202,12 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } GetPatientListResponse_Patient._() : super(); @@ -2062,6 +2222,8 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'notes') ..pc(6, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: GetPatientListResponse_Task.create) ..aOS(7, _omitFieldNames ? '' : 'consistency') + ..e<$24.Gender>(8, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(9, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2146,6 +2308,26 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(6); @$pb.TagNumber(7) void clearConsistency() => clearField(7); + + @$pb.TagNumber(8) + $24.Gender get gender => $_getN(7); + @$pb.TagNumber(8) + set gender($24.Gender v) { setField(8, v); } + @$pb.TagNumber(8) + $core.bool hasGender() => $_has(7); + @$pb.TagNumber(8) + void clearGender() => clearField(8); + + @$pb.TagNumber(9) + $24.Date get dateOfBirth => $_getN(8); + @$pb.TagNumber(9) + set dateOfBirth($24.Date v) { setField(9, v); } + @$pb.TagNumber(9) + $core.bool hasDateOfBirth() => $_has(8); + @$pb.TagNumber(9) + void clearDateOfBirth() => clearField(9); + @$pb.TagNumber(9) + $24.Date ensureDateOfBirth() => $_ensure(8); } class GetPatientListResponse_Task_SubTask extends $pb.GeneratedMessage { @@ -2804,6 +2986,8 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.String? consistency, + $24.Gender? gender, + $24.Date? dateOfBirth, }) { final $result = create(); if (id != null) { @@ -2818,6 +3002,12 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } return $result; } UpdatePatientRequest._() : super(); @@ -2829,6 +3019,8 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'consistency') + ..e<$24.Gender>(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $24.Gender.GENDER_UNSPECIFIED, valueOf: $24.Gender.valueOf, enumValues: $24.Gender.values) + ..aOM<$24.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $24.Date.create) ..hasRequiredFields = false ; @@ -2888,6 +3080,26 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(3); @$pb.TagNumber(4) void clearConsistency() => clearField(4); + + @$pb.TagNumber(5) + $24.Gender get gender => $_getN(4); + @$pb.TagNumber(5) + set gender($24.Gender v) { setField(5, v); } + @$pb.TagNumber(5) + $core.bool hasGender() => $_has(4); + @$pb.TagNumber(5) + void clearGender() => clearField(5); + + @$pb.TagNumber(6) + $24.Date get dateOfBirth => $_getN(5); + @$pb.TagNumber(6) + set dateOfBirth($24.Date v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasDateOfBirth() => $_has(5); + @$pb.TagNumber(6) + void clearDateOfBirth() => clearField(6); + @$pb.TagNumber(6) + $24.Date ensureDateOfBirth() => $_ensure(5); } class UpdatePatientResponse extends $pb.GeneratedMessage { diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart index 6cd2bc537..5952ecbc4 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart @@ -19,17 +19,23 @@ const CreatePatientRequest$json = { '2': [ {'1': 'human_readable_identifier', '3': 1, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'notes', '17': true}, + {'1': 'gender', '3': 3, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 1, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 4, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 2, '10': 'dateOfBirth', '17': true}, ], '8': [ {'1': '_notes'}, + {'1': '_gender'}, + {'1': '_date_of_birth'}, ], }; /// Descriptor for `CreatePatientRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createPatientRequestDescriptor = $convert.base64Decode( 'ChRDcmVhdGVQYXRpZW50UmVxdWVzdBI6ChlodW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyGAEgAS' - 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIZCgVub3RlcxgCIAEoCUgAUgVub3Rlc4gBAUII' - 'CgZfbm90ZXM='); + 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIZCgVub3RlcxgCIAEoCUgAUgVub3Rlc4gBARIz' + 'CgZnZW5kZXIYAyABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAVIGZ2VuZGVyiAEBEj0KDW' + 'RhdGVfb2ZfYmlydGgYBCABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAJSC2RhdGVPZkJpcnRo' + 'iAEBQggKBl9ub3Rlc0IJCgdfZ2VuZGVyQhAKDl9kYXRlX29mX2JpcnRo'); @$core.Deprecated('Use createPatientResponseDescriptor instead') const CreatePatientResponse$json = { @@ -64,12 +70,16 @@ const GetPatientResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Room', '9': 0, '10': 'room', '17': true}, - {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Bed', '9': 1, '10': 'bed', '17': true}, + {'1': 'gender', '3': 10, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 11, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Room', '9': 2, '10': 'room', '17': true}, + {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Bed', '9': 3, '10': 'bed', '17': true}, {'1': 'consistency', '3': 9, '4': 1, '5': 9, '10': 'consistency'}, ], '3': [GetPatientResponse_Room$json, GetPatientResponse_Bed$json], '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_room'}, {'1': '_bed'}, ], @@ -100,13 +110,16 @@ const GetPatientResponse_Bed$json = { final $typed_data.Uint8List getPatientResponseDescriptor = $convert.base64Decode( 'ChJHZXRQYXRpZW50UmVzcG9uc2USDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2' 'lkZW50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJ' - 'UgVub3RlcxJHCgRyb29tGAcgASgLMi4uc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbn' - 'RSZXNwb25zZS5Sb29tSABSBHJvb22IAQESRAoDYmVkGAggASgLMi0uc2VydmljZXMudGFza3Nf' - 'c3ZjLnYxLkdldFBhdGllbnRSZXNwb25zZS5CZWRIAVIDYmVkiAEBEiAKC2NvbnNpc3RlbmN5GA' - 'kgASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJ' - 'UgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY2' - '9uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEiAK' - 'C2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeUIHCgVfcm9vbUIGCgRfYmVk'); + 'UgVub3RlcxIzCgZnZW5kZXIYCiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAFIGZ2VuZG' + 'VyiAEBEj0KDWRhdGVfb2ZfYmlydGgYCyABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAFSC2Rh' + 'dGVPZkJpcnRoiAEBEkcKBHJvb20YByABKAsyLi5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UG' + 'F0aWVudFJlc3BvbnNlLlJvb21IAlIEcm9vbYgBARJECgNiZWQYCCABKAsyLS5zZXJ2aWNlcy50' + 'YXNrc19zdmMudjEuR2V0UGF0aWVudFJlc3BvbnNlLkJlZEgDUgNiZWSIAQESIAoLY29uc2lzdG' + 'VuY3kYCSABKAlSC2NvbnNpc3RlbmN5GmUKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUY' + 'AiABKAlSBG5hbWUSFwoHd2FyZF9pZBgDIAEoCVIGd2FyZElkEiAKC2NvbnNpc3RlbmN5GAQgAS' + 'gJUgtjb25zaXN0ZW5jeRpLCgNCZWQSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5h' + 'bWUSIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3RlbmN5QgkKB19nZW5kZXJCEAoOX2RhdG' + 'Vfb2ZfYmlydGhCBwoFX3Jvb21CBgoEX2JlZA=='); @$core.Deprecated('Use getPatientByBedRequestDescriptor instead') const GetPatientByBedRequest$json = { @@ -127,17 +140,25 @@ const GetPatientByBedResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, + {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '10': 'bedId'}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, ], + '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, + ], }; /// Descriptor for `GetPatientByBedResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPatientByBedResponseDescriptor = $convert.base64Decode( 'ChdHZXRQYXRpZW50QnlCZWRSZXNwb25zZRIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZG' 'FibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMY' - 'AyABKAlSBW5vdGVzEhUKBmJlZF9pZBgEIAEoCVIFYmVkSWQSIAoLY29uc2lzdGVuY3kYBSABKA' - 'lSC2NvbnNpc3RlbmN5'); + 'AyABKAlSBW5vdGVzEjMKBmdlbmRlchgGIAEoDjIWLmxpYnMuY29tbW9uLnYxLkdlbmRlckgAUg' + 'ZnZW5kZXKIAQESPQoNZGF0ZV9vZl9iaXJ0aBgHIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVI' + 'AVILZGF0ZU9mQmlydGiIAQESFQoGYmVkX2lkGAQgASgJUgViZWRJZBIgCgtjb25zaXN0ZW5jeR' + 'gFIAEoCVILY29uc2lzdGVuY3lCCQoHX2dlbmRlckIQCg5fZGF0ZV9vZl9iaXJ0aA=='); @$core.Deprecated('Use getPatientsByWardRequestDescriptor instead') const GetPatientsByWardRequest$json = { @@ -167,10 +188,14 @@ const GetPatientsByWardResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'bedId', '17': true}, + {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'bedId', '17': true}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, ], '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_bed_id'}, ], }; @@ -179,10 +204,12 @@ const GetPatientsByWardResponse_Patient$json = { final $typed_data.Uint8List getPatientsByWardResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50c0J5V2FyZFJlc3BvbnNlElQKCHBhdGllbnRzGAEgAygLMjguc2VydmljZX' 'MudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRzQnlXYXJkUmVzcG9uc2UuUGF0aWVudFIIcGF0aWVu' - 'dHMatAEKB1BhdGllbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aW' + 'dHMaxQIKB1BhdGllbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aW' 'ZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJUgVub3Rl' - 'cxIaCgZiZWRfaWQYBCABKAlIAFIFYmVkSWSIAQESIAoLY29uc2lzdGVuY3kYBSABKAlSC2Nvbn' - 'Npc3RlbmN5QgkKB19iZWRfaWQ='); + 'cxIzCgZnZW5kZXIYBiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAFIGZ2VuZGVyiAEBEj' + '0KDWRhdGVfb2ZfYmlydGgYByABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAFSC2RhdGVPZkJp' + 'cnRoiAEBEhoKBmJlZF9pZBgEIAEoCUgCUgViZWRJZIgBARIgCgtjb25zaXN0ZW5jeRgFIAEoCV' + 'ILY29uc2lzdGVuY3lCCQoHX2dlbmRlckIQCg5fZGF0ZV9vZl9iaXJ0aEIJCgdfYmVkX2lk'); @$core.Deprecated('Use getPatientAssignmentByWardRequestDescriptor instead') const GetPatientAssignmentByWardRequest$json = { @@ -276,14 +303,18 @@ const GetPatientDetailsResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, + {'1': 'gender', '3': 9, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 10, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 4, '4': 3, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Task', '10': 'tasks'}, - {'1': 'room', '3': 5, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Room', '9': 0, '10': 'room', '17': true}, - {'1': 'bed', '3': 6, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Bed', '9': 1, '10': 'bed', '17': true}, + {'1': 'room', '3': 5, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Room', '9': 2, '10': 'room', '17': true}, + {'1': 'bed', '3': 6, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Bed', '9': 3, '10': 'bed', '17': true}, {'1': 'is_discharged', '3': 7, '4': 1, '5': 8, '10': 'isDischarged'}, {'1': 'consistency', '3': 8, '4': 1, '5': 9, '10': 'consistency'}, ], '3': [GetPatientDetailsResponse_Room$json, GetPatientDetailsResponse_Bed$json, GetPatientDetailsResponse_Task$json], '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_room'}, {'1': '_bed'}, ], @@ -344,24 +375,27 @@ const GetPatientDetailsResponse_Task_SubTask$json = { final $typed_data.Uint8List getPatientDetailsResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlEg4KAmlkGAEgASgJUgJpZBI6ChlodW1hbl9yZW' 'FkYWJsZV9pZGVudGlmaWVyGAIgASgJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3Rl' - 'cxgDIAEoCVIFbm90ZXMSSwoFdGFza3MYBCADKAsyNS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2' - 'V0UGF0aWVudERldGFpbHNSZXNwb25zZS5UYXNrUgV0YXNrcxJOCgRyb29tGAUgASgLMjUuc2Vy' - 'dmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnREZXRhaWxzUmVzcG9uc2UuUm9vbUgAUgRyb2' - '9tiAEBEksKA2JlZBgGIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50RGV0' - 'YWlsc1Jlc3BvbnNlLkJlZEgBUgNiZWSIAQESIwoNaXNfZGlzY2hhcmdlZBgHIAEoCFIMaXNEaX' - 'NjaGFyZ2VkEiAKC2NvbnNpc3RlbmN5GAggASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlk' - 'GAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZB' - 'IgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJp' - 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeR' - 'rCAwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlw' - 'dGlvbhgDIAEoCVILZGVzY3JpcHRpb24SOQoGc3RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3' - 'Nfc3ZjLnYxLlRhc2tTdGF0dXNSBnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABS' - 'DmFzc2lnbmVkVXNlcklkiAEBEh0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdW' - 'JsaWMYByABKAhSBnB1YmxpYxJZCghzdWJ0YXNrcxgIIAMoCzI9LnNlcnZpY2VzLnRhc2tzX3N2' - 'Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MSIA' - 'oLY29uc2lzdGVuY3kYCSABKAlSC2NvbnNpc3RlbmN5GkEKB1N1YlRhc2sSDgoCaWQYASABKAlS' - 'AmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZW' - 'RfdXNlcl9pZEIHCgVfcm9vbUIGCgRfYmVk'); + 'cxgDIAEoCVIFbm90ZXMSMwoGZ2VuZGVyGAkgASgOMhYubGlicy5jb21tb24udjEuR2VuZGVySA' + 'BSBmdlbmRlcogBARI9Cg1kYXRlX29mX2JpcnRoGAogASgLMhQubGlicy5jb21tb24udjEuRGF0' + 'ZUgBUgtkYXRlT2ZCaXJ0aIgBARJLCgV0YXNrcxgEIAMoCzI1LnNlcnZpY2VzLnRhc2tzX3N2Yy' + '52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2tSBXRhc2tzEk4KBHJvb20YBSABKAsy' + 'NS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudERldGFpbHNSZXNwb25zZS5Sb29tSA' + 'JSBHJvb22IAQESSwoDYmVkGAYgASgLMjQuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGll' + 'bnREZXRhaWxzUmVzcG9uc2UuQmVkSANSA2JlZIgBARIjCg1pc19kaXNjaGFyZ2VkGAcgASgIUg' + 'xpc0Rpc2NoYXJnZWQSIAoLY29uc2lzdGVuY3kYCCABKAlSC2NvbnNpc3RlbmN5GmUKBFJvb20S' + 'DgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF9pZBgDIAEoCVIGd2' + 'FyZElkEiAKC2NvbnNpc3RlbmN5GAQgASgJUgtjb25zaXN0ZW5jeRpLCgNCZWQSDgoCaWQYASAB' + 'KAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3' + 'RlbmN5GsIDCgRUYXNrEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2Rl' + 'c2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhI5CgZzdGF0dXMYBCABKA4yIS5zZXJ2aWNlcy' + '50YXNrc19zdmMudjEuVGFza1N0YXR1c1IGc3RhdHVzEi0KEGFzc2lnbmVkX3VzZXJfaWQYBSAB' + 'KAlIAFIOYXNzaWduZWRVc2VySWSIAQESHQoKcGF0aWVudF9pZBgGIAEoCVIJcGF0aWVudElkEh' + 'YKBnB1YmxpYxgHIAEoCFIGcHVibGljElkKCHN1YnRhc2tzGAggAygLMj0uc2VydmljZXMudGFz' + 'a3Nfc3ZjLnYxLkdldFBhdGllbnREZXRhaWxzUmVzcG9uc2UuVGFzay5TdWJUYXNrUghzdWJ0YX' + 'NrcxIgCgtjb25zaXN0ZW5jeRgJIAEoCVILY29uc2lzdGVuY3kaQQoHU3ViVGFzaxIOCgJpZBgB' + 'IAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRISCgRkb25lGAMgASgIUgRkb25lQhMKEV9hc3' + 'NpZ25lZF91c2VyX2lkQgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGhCBwoFX3Jvb21CBgoE' + 'X2JlZA=='); @$core.Deprecated('Use getPatientListRequestDescriptor instead') const GetPatientListRequest$json = { @@ -417,12 +451,18 @@ const GetPatientListResponse_Patient$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, + {'1': 'notes', '3': 5, '4': 1, '5': 9, '10': 'notes'}, + {'1': 'gender', '3': 8, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 9, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Room', '10': 'room'}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Bed', '10': 'bed'}, - {'1': 'notes', '3': 5, '4': 1, '5': 9, '10': 'notes'}, {'1': 'tasks', '3': 6, '4': 3, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Task', '10': 'tasks'}, {'1': 'consistency', '3': 7, '4': 1, '5': 9, '10': 'consistency'}, ], + '8': [ + {'1': '_gender'}, + {'1': '_date_of_birth'}, + ], }; @$core.Deprecated('Use getPatientListResponseDescriptor instead') @@ -465,22 +505,25 @@ final $typed_data.Uint8List getPatientListResponseDescriptor = $convert.base64De 'Nwb25zZS5QYXRpZW50UhJkaXNjaGFyZ2VkUGF0aWVudHMaSwoDQmVkEg4KAmlkGAEgASgJUgJp' 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeR' 'plCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQY' - 'AyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3ka5AIKB1BhdG' + 'AyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3ka9QMKB1BhdG' 'llbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aWZpZXIYAiABKAlS' - 'F2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEkYKBHJvb20YAyABKAsyMi5zZXJ2aWNlcy50YXNrc1' - '9zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25zZS5Sb29tUgRyb29tEkMKA2JlZBgEIAEoCzIx' - 'LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLkJlZFIDYmVkEh' - 'QKBW5vdGVzGAUgASgJUgVub3RlcxJICgV0YXNrcxgGIAMoCzIyLnNlcnZpY2VzLnRhc2tzX3N2' - 'Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlRhc2tSBXRhc2tzEiAKC2NvbnNpc3RlbmN5GA' - 'cgASgJUgtjb25zaXN0ZW5jeRq/AwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEo' - 'CVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SOQoGc3RhdHVzGAQgAS' - 'gOMiEuc2VydmljZXMudGFza3Nfc3ZjLnYxLlRhc2tTdGF0dXNSBnN0YXR1cxItChBhc3NpZ25l' - 'ZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVkVXNlcklkiAEBEh0KCnBhdGllbnRfaWQYBiABKA' - 'lSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKAhSBnB1YmxpYxJWCghzdWJ0YXNrcxgIIAMoCzI6' - 'LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlRhc2suU3ViVG' - 'Fza1IIc3VidGFza3MSIAoLY29uc2lzdGVuY3kYCSABKAlSC2NvbnNpc3RlbmN5GkEKB1N1YlRh' - 'c2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG' - '9uZUITChFfYXNzaWduZWRfdXNlcl9pZA=='); + 'F2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAUgASgJUgVub3RlcxIzCgZnZW5kZX' + 'IYCCABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAFIGZ2VuZGVyiAEBEj0KDWRhdGVfb2Zf' + 'YmlydGgYCSABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAFSC2RhdGVPZkJpcnRoiAEBEkYKBH' + 'Jvb20YAyABKAsyMi5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25z' + 'ZS5Sb29tUgRyb29tEkMKA2JlZBgEIAEoCzIxLnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYX' + 'RpZW50TGlzdFJlc3BvbnNlLkJlZFIDYmVkEkgKBXRhc2tzGAYgAygLMjIuc2VydmljZXMudGFz' + 'a3Nfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVGFza1IFdGFza3MSIAoLY29uc2lzdG' + 'VuY3kYByABKAlSC2NvbnNpc3RlbmN5QgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGgavwMK' + 'BFRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb2' + '4YAyABKAlSC2Rlc2NyaXB0aW9uEjkKBnN0YXR1cxgEIAEoDjIhLnNlcnZpY2VzLnRhc2tzX3N2' + 'Yy52MS5UYXNrU3RhdHVzUgZzdGF0dXMSLQoQYXNzaWduZWRfdXNlcl9pZBgFIAEoCUgAUg5hc3' + 'NpZ25lZFVzZXJJZIgBARIdCgpwYXRpZW50X2lkGAYgASgJUglwYXRpZW50SWQSFgoGcHVibGlj' + 'GAcgASgIUgZwdWJsaWMSVgoIc3VidGFza3MYCCADKAsyOi5zZXJ2aWNlcy50YXNrc19zdmMudj' + 'EuR2V0UGF0aWVudExpc3RSZXNwb25zZS5UYXNrLlN1YlRhc2tSCHN1YnRhc2tzEiAKC2NvbnNp' + 'c3RlbmN5GAkgASgJUgtjb25zaXN0ZW5jeRpBCgdTdWJUYXNrEg4KAmlkGAEgASgJUgJpZBISCg' + 'RuYW1lGAIgASgJUgRuYW1lEhIKBGRvbmUYAyABKAhSBGRvbmVCEwoRX2Fzc2lnbmVkX3VzZXJf' + 'aWQ='); @$core.Deprecated('Use getRecentPatientsRequestDescriptor instead') const GetRecentPatientsRequest$json = { @@ -558,11 +601,15 @@ const UpdatePatientRequest$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'humanReadableIdentifier', '17': true}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'notes', '17': true}, - {'1': 'consistency', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'consistency', '17': true}, + {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 2, '10': 'gender', '17': true}, + {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 3, '10': 'dateOfBirth', '17': true}, + {'1': 'consistency', '3': 4, '4': 1, '5': 9, '9': 4, '10': 'consistency', '17': true}, ], '8': [ {'1': '_human_readable_identifier'}, {'1': '_notes'}, + {'1': '_gender'}, + {'1': '_date_of_birth'}, {'1': '_consistency'}, ], }; @@ -571,9 +618,11 @@ const UpdatePatientRequest$json = { final $typed_data.Uint8List updatePatientRequestDescriptor = $convert.base64Decode( 'ChRVcGRhdGVQYXRpZW50UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSPwoZaHVtYW5fcmVhZGFibG' 'VfaWRlbnRpZmllchgCIAEoCUgAUhdodW1hblJlYWRhYmxlSWRlbnRpZmllcogBARIZCgVub3Rl' - 'cxgDIAEoCUgBUgVub3Rlc4gBARIlCgtjb25zaXN0ZW5jeRgEIAEoCUgCUgtjb25zaXN0ZW5jeY' - 'gBAUIcChpfaHVtYW5fcmVhZGFibGVfaWRlbnRpZmllckIICgZfbm90ZXNCDgoMX2NvbnNpc3Rl' - 'bmN5'); + 'cxgDIAEoCUgBUgVub3Rlc4gBARIzCgZnZW5kZXIYBSABKA4yFi5saWJzLmNvbW1vbi52MS5HZW' + '5kZXJIAlIGZ2VuZGVyiAEBEj0KDWRhdGVfb2ZfYmlydGgYBiABKAsyFC5saWJzLmNvbW1vbi52' + 'MS5EYXRlSANSC2RhdGVPZkJpcnRoiAEBEiUKC2NvbnNpc3RlbmN5GAQgASgJSARSC2NvbnNpc3' + 'RlbmN5iAEBQhwKGl9odW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyQggKBl9ub3Rlc0IJCgdfZ2Vu' + 'ZGVyQhAKDl9kYXRlX29mX2JpcnRoQg4KDF9jb25zaXN0ZW5jeQ=='); @$core.Deprecated('Use updatePatientResponseDescriptor instead') const UpdatePatientResponse$json = { diff --git a/gen/go/libs/common/v1/types.pb.go b/gen/go/libs/common/v1/types.pb.go index 93ca20da2..579e36244 100644 --- a/gen/go/libs/common/v1/types.pb.go +++ b/gen/go/libs/common/v1/types.pb.go @@ -21,6 +21,58 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type Gender int32 + +const ( + Gender_GENDER_UNSPECIFIED Gender = 0 + Gender_GENDER_FEMALE Gender = 1 + Gender_GENDER_MALE Gender = 2 + Gender_GENDER_DIVERSE Gender = 3 +) + +// Enum value maps for Gender. +var ( + Gender_name = map[int32]string{ + 0: "GENDER_UNSPECIFIED", + 1: "GENDER_FEMALE", + 2: "GENDER_MALE", + 3: "GENDER_DIVERSE", + } + Gender_value = map[string]int32{ + "GENDER_UNSPECIFIED": 0, + "GENDER_FEMALE": 1, + "GENDER_MALE": 2, + "GENDER_DIVERSE": 3, + } +) + +func (x Gender) Enum() *Gender { + p := new(Gender) + *p = x + return p +} + +func (x Gender) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Gender) Descriptor() protoreflect.EnumDescriptor { + return file_libs_common_v1_types_proto_enumTypes[0].Descriptor() +} + +func (Gender) Type() protoreflect.EnumType { + return &file_libs_common_v1_types_proto_enumTypes[0] +} + +func (x Gender) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Gender.Descriptor instead. +func (Gender) EnumDescriptor() ([]byte, []int) { + return file_libs_common_v1_types_proto_rawDescGZIP(), []int{0} +} + type Date struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -80,16 +132,22 @@ var file_libs_common_v1_types_proto_rawDesc = []byte{ 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x65, 0x42, 0x8e, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x69, - 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x2f, - 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x04, 0x64, 0x61, 0x74, 0x65, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, + 0x16, 0x0a, 0x12, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, 0x45, + 0x52, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45, + 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47, + 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, 0x42, + 0x8e, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, + 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1a, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, + 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -104,13 +162,15 @@ func file_libs_common_v1_types_proto_rawDescGZIP() []byte { return file_libs_common_v1_types_proto_rawDescData } +var file_libs_common_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_libs_common_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_libs_common_v1_types_proto_goTypes = []interface{}{ - (*Date)(nil), // 0: libs.common.v1.Date - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (Gender)(0), // 0: libs.common.v1.Gender + (*Date)(nil), // 1: libs.common.v1.Date + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp } var file_libs_common_v1_types_proto_depIdxs = []int32{ - 1, // 0: libs.common.v1.Date.date:type_name -> google.protobuf.Timestamp + 2, // 0: libs.common.v1.Date.date:type_name -> google.protobuf.Timestamp 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -142,13 +202,14 @@ func file_libs_common_v1_types_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_libs_common_v1_types_proto_rawDesc, - NumEnums: 0, + NumEnums: 1, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_libs_common_v1_types_proto_goTypes, DependencyIndexes: file_libs_common_v1_types_proto_depIdxs, + EnumInfos: file_libs_common_v1_types_proto_enumTypes, MessageInfos: file_libs_common_v1_types_proto_msgTypes, }.Build() File_libs_common_v1_types_proto = out.File diff --git a/gen/go/services/task_svc/v1/patient_svc.pb.go b/gen/go/services/task_svc/v1/patient_svc.pb.go index 68fdaa3e7..02dc6c042 100644 --- a/gen/go/services/task_svc/v1/patient_svc.pb.go +++ b/gen/go/services/task_svc/v1/patient_svc.pb.go @@ -7,7 +7,6 @@ package v1 import ( - v1 "gen/libs/common/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -21,58 +20,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type Gender int32 - -const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 -) - -// Enum value maps for Gender. -var ( - Gender_name = map[int32]string{ - 0: "GENDER_UNSPECIFIED", - 1: "GENDER_FEMALE", - 2: "GENDER_MALE", - 3: "GENDER_DIVERSE", - } - Gender_value = map[string]int32{ - "GENDER_UNSPECIFIED": 0, - "GENDER_FEMALE": 1, - "GENDER_MALE": 2, - "GENDER_DIVERSE": 3, - } -) - -func (x Gender) Enum() *Gender { - p := new(Gender) - *p = x - return p -} - -func (x Gender) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Gender) Descriptor() protoreflect.EnumDescriptor { - return file_services_task_svc_v1_patient_svc_proto_enumTypes[0].Descriptor() -} - -func (Gender) Type() protoreflect.EnumType { - return &file_services_task_svc_v1_patient_svc_proto_enumTypes[0] -} - -func (x Gender) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Gender.Descriptor instead. -func (Gender) EnumDescriptor() ([]byte, []int) { - return file_services_task_svc_v1_patient_svc_proto_rawDescGZIP(), []int{0} -} - type GetPatientDetailsResponse_TaskStatus int32 const ( @@ -109,11 +56,11 @@ func (x GetPatientDetailsResponse_TaskStatus) String() string { } func (GetPatientDetailsResponse_TaskStatus) Descriptor() protoreflect.EnumDescriptor { - return file_services_task_svc_v1_patient_svc_proto_enumTypes[1].Descriptor() + return file_services_task_svc_v1_patient_svc_proto_enumTypes[0].Descriptor() } func (GetPatientDetailsResponse_TaskStatus) Type() protoreflect.EnumType { - return &file_services_task_svc_v1_patient_svc_proto_enumTypes[1] + return &file_services_task_svc_v1_patient_svc_proto_enumTypes[0] } func (x GetPatientDetailsResponse_TaskStatus) Number() protoreflect.EnumNumber { @@ -161,11 +108,11 @@ func (x GetPatientListResponse_TaskStatus) String() string { } func (GetPatientListResponse_TaskStatus) Descriptor() protoreflect.EnumDescriptor { - return file_services_task_svc_v1_patient_svc_proto_enumTypes[2].Descriptor() + return file_services_task_svc_v1_patient_svc_proto_enumTypes[1].Descriptor() } func (GetPatientListResponse_TaskStatus) Type() protoreflect.EnumType { - return &file_services_task_svc_v1_patient_svc_proto_enumTypes[2] + return &file_services_task_svc_v1_patient_svc_proto_enumTypes[1] } func (x GetPatientListResponse_TaskStatus) Number() protoreflect.EnumNumber { @@ -182,10 +129,8 @@ type CreatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" - Notes string `protobuf:"bytes,2,opt,name=notes,proto3" json:"notes,omitempty"` - Gender Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=services.task_svc.v1.Gender" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" + Notes string `protobuf:"bytes,2,opt,name=notes,proto3" json:"notes,omitempty"` } func (x *CreatePatientRequest) Reset() { @@ -234,20 +179,6 @@ func (x *CreatePatientRequest) GetNotes() string { return "" } -func (x *CreatePatientRequest) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *CreatePatientRequest) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - type CreatePatientResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -353,11 +284,9 @@ type GetPatientResponse struct { // Deprecated: Marked as deprecated in services/task_svc/v1/patient_svc.proto. BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` // Deprecated: Marked as deprecated in services/task_svc/v1/patient_svc.proto. - WardId *string `protobuf:"bytes,5,opt,name=ward_id,json=wardId,proto3,oneof" json:"ward_id,omitempty"` - Gender *Gender `protobuf:"varint,9,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,10,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` - Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` + WardId *string `protobuf:"bytes,5,opt,name=ward_id,json=wardId,proto3,oneof" json:"ward_id,omitempty"` + Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` + Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` } func (x *GetPatientResponse) Reset() { @@ -429,20 +358,6 @@ func (x *GetPatientResponse) GetWardId() string { return "" } -func (x *GetPatientResponse) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *GetPatientResponse) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - func (x *GetPatientResponse) GetRoom() *GetPatientResponse_Room { if x != nil { return x.Room @@ -595,12 +510,10 @@ type GetPatientByBedResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` } func (x *GetPatientByBedResponse) Reset() { @@ -656,20 +569,6 @@ func (x *GetPatientByBedResponse) GetNotes() string { return "" } -func (x *GetPatientByBedResponse) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *GetPatientByBedResponse) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - func (x *GetPatientByBedResponse) GetBedId() string { if x != nil && x.BedId != nil { return *x.BedId @@ -955,11 +854,9 @@ type UpdatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" - HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` - Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` - Gender *Gender `protobuf:"varint,4,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,5,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" + HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` + Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` } func (x *UpdatePatientRequest) Reset() { @@ -1015,20 +912,6 @@ func (x *UpdatePatientRequest) GetNotes() string { return "" } -func (x *UpdatePatientRequest) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *UpdatePatientRequest) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - type UpdatePatientResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1392,8 +1275,6 @@ type GetPatientDetailsResponse struct { Room *GetPatientDetailsResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetPatientDetailsResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` IsDischarged bool `protobuf:"varint,9,opt,name=is_discharged,json=isDischarged,proto3" json:"is_discharged,omitempty"` - Gender *Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,11,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` } func (x *GetPatientDetailsResponse) Reset() { @@ -1492,20 +1373,6 @@ func (x *GetPatientDetailsResponse) GetIsDischarged() bool { return false } -func (x *GetPatientDetailsResponse) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *GetPatientDetailsResponse) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - type GetPatientListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1824,12 +1691,10 @@ type GetPatientsByWardResponse_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` } func (x *GetPatientsByWardResponse_Patient) Reset() { @@ -1885,20 +1750,6 @@ func (x *GetPatientsByWardResponse_Patient) GetNotes() string { return "" } -func (x *GetPatientsByWardResponse_Patient) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *GetPatientsByWardResponse_Patient) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - func (x *GetPatientsByWardResponse_Patient) GetBedId() string { if x != nil && x.BedId != nil { return *x.BedId @@ -2568,8 +2419,6 @@ type GetPatientListResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientListResponse_Task `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` } @@ -2626,20 +2475,6 @@ func (x *GetPatientListResponse_Patient) GetNotes() string { return "" } -func (x *GetPatientListResponse_Patient) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *GetPatientListResponse_Patient) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - func (x *GetPatientListResponse_Patient) GetTasks() []*GetPatientListResponse_Task { if x != nil { return x.Tasks @@ -2775,8 +2610,6 @@ type GetPatientListResponse_PatientWithRoomAndBed struct { Room *GetPatientListResponse_Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` Bed *GetPatientListResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3" json:"bed,omitempty"` Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=services.task_svc.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientListResponse_Task `protobuf:"bytes,6,rep,name=tasks,proto3" json:"tasks,omitempty"` } @@ -2847,20 +2680,6 @@ func (x *GetPatientListResponse_PatientWithRoomAndBed) GetNotes() string { return "" } -func (x *GetPatientListResponse_PatientWithRoomAndBed) GetGender() Gender { - if x != nil && x.Gender != nil { - return *x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *GetPatientListResponse_PatientWithRoomAndBed) GetDateOfBirth() *v1.Date { - if x != nil { - return x.DateOfBirth - } - return nil -} - func (x *GetPatientListResponse_PatientWithRoomAndBed) GetTasks() []*GetPatientListResponse_Task { if x != nil { return x.Tasks @@ -3040,313 +2859,257 @@ var file_services_task_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x0a, 0x26, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1a, - 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x01, 0x0a, 0x14, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, - 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, - 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, - 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0d, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, - 0x42, 0x69, 0x72, 0x74, 0x68, 0x22, 0x27, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x23, - 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x22, 0xf4, 0x04, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, - 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, - 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x06, - 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, - 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x07, - 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, - 0x01, 0x48, 0x01, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x39, - 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x02, 0x52, 0x06, - 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, - 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x22, 0x68, + 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, + 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, + 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x27, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xdd, 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, + 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, + 0x1e, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x20, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x02, 0x18, 0x01, 0x48, 0x01, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x02, + 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x04, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, - 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x05, 0x52, 0x03, 0x62, - 0x65, 0x64, 0x88, 0x01, 0x01, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, + 0x2e, 0x42, 0x65, 0x64, 0x48, 0x03, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x1a, 0x43, + 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, + 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, + 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, + 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, + 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, + 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, + 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x33, 0x0a, + 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, + 0x49, 0x64, 0x22, 0x85, 0x02, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x53, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x92, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, + 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xce, 0x03, 0x0a, 0x22, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x53, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, + 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xd2, 0x02, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, - 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, - 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, - 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, - 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xb9, 0x02, 0x0a, - 0x17, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, - 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, - 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, - 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, - 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, - 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, - 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, - 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0x9c, 0x03, - 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x08, 0x70, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x1a, 0xa9, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, - 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, - 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, - 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, - 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, - 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, - 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xce, 0x03, 0x0a, 0x22, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x53, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, - 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xd2, 0x02, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x55, 0x0a, 0x04, 0x62, 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x41, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, - 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, 0x64, 0x73, 0x1a, 0xce, 0x01, 0x0a, 0x03, 0x42, - 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, - 0x1a, 0x2d, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, - 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf2, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, - 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, - 0x6e, 0x64, 0x42, 0x65, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, - 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, - 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0xf4, 0x01, 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x04, 0x72, - 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, - 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x45, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x12, 0x55, 0x0a, 0x04, 0x62, 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x41, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, + 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, 0x64, 0x73, 0x1a, 0xce, 0x01, 0x0a, 0x03, 0x42, 0x65, 0x64, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x68, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x1a, 0x2d, + 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, + 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf2, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x22, 0xc1, 0x02, 0x0a, - 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, - 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, - 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, - 0x01, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, - 0x02, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, - 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x61, 0x74, - 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, - 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, - 0x74, 0x65, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, - 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, - 0x22, 0x17, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x0a, 0x10, 0x41, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, - 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, - 0x65, 0x64, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x0a, 0x12, 0x55, 0x6e, 0x61, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x15, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, - 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x92, 0x0a, 0x0a, 0x19, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x68, - 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, - 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, - 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, + 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x07, 0x77, 0x61, 0x72, - 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, - 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x04, 0x72, - 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, - 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4a, 0x0a, 0x03, 0x62, 0x65, - 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, + 0x42, 0x65, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x73, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x43, + 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, + 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, + 0x64, 0x49, 0x64, 0x1a, 0xf4, 0x01, 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, + 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x04, 0x72, 0x6f, 0x6f, + 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, - 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, - 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x06, 0x67, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x03, 0x52, 0x06, 0x67, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, - 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x61, 0x74, 0x65, 0x48, 0x04, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, - 0x74, 0x68, 0x88, 0x01, 0x01, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, - 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0xb8, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, + 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, + 0x6f, 0x6f, 0x6d, 0x12, 0x45, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x22, 0xaa, 0x01, 0x0a, 0x14, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, + 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, + 0x1c, 0x0a, 0x1a, 0x5f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, 0x0a, + 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x39, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x24, 0x0a, 0x12, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x0a, + 0x17, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x22, 0xfb, 0x08, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x52, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x58, - 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, + 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, + 0x6f, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x12, 0x20, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, - 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x22, 0x72, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, - 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, - 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, 0x4f, 0x10, - 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, - 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, - 0x4e, 0x45, 0x10, 0x03, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, - 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, - 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, - 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x22, 0x41, + 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, + 0x01, 0x12, 0x4a, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, + 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, + 0x65, 0x64, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, + 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x1a, 0xb8, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x52, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x3a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x58, 0x0a, 0x08, 0x73, + 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x72, 0x0a, + 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, 0x4f, 0x10, 0x01, 0x12, 0x1b, + 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, + 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, + 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, 0x4e, 0x45, 0x10, + 0x03, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, + 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, - 0x64, 0x22, 0x90, 0x0e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x64, 0x22, 0xe2, 0x0b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, @@ -3366,222 +3129,198 @@ var file_services_task_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xcb, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xb4, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, - 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, - 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, - 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, - 0x69, 0x72, 0x74, 0x68, 0x1a, 0x29, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, - 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, - 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, - 0x72, 0x64, 0x49, 0x64, 0x1a, 0xe4, 0x03, 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, - 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x72, 0x6f, - 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x29, 0x0a, + 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x43, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x1a, 0xcd, 0x02, + 0x0a, 0x15, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x6f, 0x6f, + 0x6d, 0x41, 0x6e, 0x64, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, + 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, + 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x42, 0x0a, 0x03, 0x62, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, + 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0xb2, 0x03, + 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, + 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x12, 0x55, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, + 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, + 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, + 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x22, 0x72, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, + 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, + 0x4f, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x18, + 0x0a, 0x16, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x0c, 0x0a, 0x0e, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, - 0x6d, 0x12, 0x42, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, - 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x67, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x0f, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, 0x2c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, + 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, - 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, - 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x09, - 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x1a, 0xb2, 0x03, 0x0a, 0x04, - 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x12, 0x55, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, + 0x64, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x91, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, + 0x61, 0x72, 0x64, 0x12, 0x37, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, - 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x22, 0x72, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, - 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, - 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x4f, 0x44, 0x4f, 0x10, - 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x12, 0x14, - 0x0a, 0x10, 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x4f, - 0x4e, 0x45, 0x10, 0x03, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x18, 0x0a, 0x16, - 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x12, 0x16, 0x0a, 0x12, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, - 0x45, 0x52, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, - 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, - 0x32, 0xbe, 0x0c, 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x61, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, + 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x70, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x91, 0x01, 0x0a, - 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x37, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x6a, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x09, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, - 0x64, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, - 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0b, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x42, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x73, 0x0a, 0x10, 0x44, 0x69, - 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2d, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0b, + 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x28, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x73, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, + 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, + 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2e, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x6d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x76, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, + 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, + 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0e, 0x52, 0x65, + 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, - 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0xb3, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x18, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x2d, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, - 0x58, 0xaa, 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x15, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, - 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb3, 0x01, 0x0a, 0x18, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, + 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x18, 0x67, 0x65, 0x6e, 0x2f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2d, 0x73, 0x76, 0x63, + 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, + 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3596,134 +3335,116 @@ func file_services_task_svc_v1_patient_svc_proto_rawDescGZIP() []byte { return file_services_task_svc_v1_patient_svc_proto_rawDescData } -var file_services_task_svc_v1_patient_svc_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_services_task_svc_v1_patient_svc_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_services_task_svc_v1_patient_svc_proto_msgTypes = make([]protoimpl.MessageInfo, 47) var file_services_task_svc_v1_patient_svc_proto_goTypes = []interface{}{ - (Gender)(0), // 0: services.task_svc.v1.Gender - (GetPatientDetailsResponse_TaskStatus)(0), // 1: services.task_svc.v1.GetPatientDetailsResponse.TaskStatus - (GetPatientListResponse_TaskStatus)(0), // 2: services.task_svc.v1.GetPatientListResponse.TaskStatus - (*CreatePatientRequest)(nil), // 3: services.task_svc.v1.CreatePatientRequest - (*CreatePatientResponse)(nil), // 4: services.task_svc.v1.CreatePatientResponse - (*GetPatientRequest)(nil), // 5: services.task_svc.v1.GetPatientRequest - (*GetPatientResponse)(nil), // 6: services.task_svc.v1.GetPatientResponse - (*DeletePatientRequest)(nil), // 7: services.task_svc.v1.DeletePatientRequest - (*DeletePatientResponse)(nil), // 8: services.task_svc.v1.DeletePatientResponse - (*GetPatientByBedRequest)(nil), // 9: services.task_svc.v1.GetPatientByBedRequest - (*GetPatientByBedResponse)(nil), // 10: services.task_svc.v1.GetPatientByBedResponse - (*GetPatientsByWardRequest)(nil), // 11: services.task_svc.v1.GetPatientsByWardRequest - (*GetPatientsByWardResponse)(nil), // 12: services.task_svc.v1.GetPatientsByWardResponse - (*GetPatientAssignmentByWardRequest)(nil), // 13: services.task_svc.v1.GetPatientAssignmentByWardRequest - (*GetPatientAssignmentByWardResponse)(nil), // 14: services.task_svc.v1.GetPatientAssignmentByWardResponse - (*GetRecentPatientsRequest)(nil), // 15: services.task_svc.v1.GetRecentPatientsRequest - (*GetRecentPatientsResponse)(nil), // 16: services.task_svc.v1.GetRecentPatientsResponse - (*UpdatePatientRequest)(nil), // 17: services.task_svc.v1.UpdatePatientRequest - (*UpdatePatientResponse)(nil), // 18: services.task_svc.v1.UpdatePatientResponse - (*AssignBedRequest)(nil), // 19: services.task_svc.v1.AssignBedRequest - (*AssignBedResponse)(nil), // 20: services.task_svc.v1.AssignBedResponse - (*UnassignBedRequest)(nil), // 21: services.task_svc.v1.UnassignBedRequest - (*UnassignBedResponse)(nil), // 22: services.task_svc.v1.UnassignBedResponse - (*DischargePatientRequest)(nil), // 23: services.task_svc.v1.DischargePatientRequest - (*DischargePatientResponse)(nil), // 24: services.task_svc.v1.DischargePatientResponse - (*GetPatientDetailsRequest)(nil), // 25: services.task_svc.v1.GetPatientDetailsRequest - (*GetPatientDetailsResponse)(nil), // 26: services.task_svc.v1.GetPatientDetailsResponse - (*GetPatientListRequest)(nil), // 27: services.task_svc.v1.GetPatientListRequest - (*GetPatientListResponse)(nil), // 28: services.task_svc.v1.GetPatientListResponse - (*ReadmitPatientRequest)(nil), // 29: services.task_svc.v1.ReadmitPatientRequest - (*ReadmitPatientResponse)(nil), // 30: services.task_svc.v1.ReadmitPatientResponse - (*GetPatientResponse_Room)(nil), // 31: services.task_svc.v1.GetPatientResponse.Room - (*GetPatientResponse_Bed)(nil), // 32: services.task_svc.v1.GetPatientResponse.Bed - (*GetPatientsByWardResponse_Patient)(nil), // 33: services.task_svc.v1.GetPatientsByWardResponse.Patient - (*GetPatientAssignmentByWardResponse_Room)(nil), // 34: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room - (*GetPatientAssignmentByWardResponse_Room_Bed)(nil), // 35: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed - (*GetPatientAssignmentByWardResponse_Room_Bed_Patient)(nil), // 36: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - (*GetRecentPatientsResponse_Bed)(nil), // 37: services.task_svc.v1.GetRecentPatientsResponse.Bed - (*GetRecentPatientsResponse_Room)(nil), // 38: services.task_svc.v1.GetRecentPatientsResponse.Room - (*GetRecentPatientsResponse_PatientWithRoomAndBed)(nil), // 39: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed - (*GetPatientDetailsResponse_Room)(nil), // 40: services.task_svc.v1.GetPatientDetailsResponse.Room - (*GetPatientDetailsResponse_Bed)(nil), // 41: services.task_svc.v1.GetPatientDetailsResponse.Bed - (*GetPatientDetailsResponse_Task)(nil), // 42: services.task_svc.v1.GetPatientDetailsResponse.Task - (*GetPatientDetailsResponse_Task_SubTask)(nil), // 43: services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask - (*GetPatientListResponse_Patient)(nil), // 44: services.task_svc.v1.GetPatientListResponse.Patient - (*GetPatientListResponse_Bed)(nil), // 45: services.task_svc.v1.GetPatientListResponse.Bed - (*GetPatientListResponse_Room)(nil), // 46: services.task_svc.v1.GetPatientListResponse.Room - (*GetPatientListResponse_PatientWithRoomAndBed)(nil), // 47: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed - (*GetPatientListResponse_Task)(nil), // 48: services.task_svc.v1.GetPatientListResponse.Task - (*GetPatientListResponse_Task_SubTask)(nil), // 49: services.task_svc.v1.GetPatientListResponse.Task.SubTask - (*v1.Date)(nil), // 50: libs.common.v1.Date + (GetPatientDetailsResponse_TaskStatus)(0), // 0: services.task_svc.v1.GetPatientDetailsResponse.TaskStatus + (GetPatientListResponse_TaskStatus)(0), // 1: services.task_svc.v1.GetPatientListResponse.TaskStatus + (*CreatePatientRequest)(nil), // 2: services.task_svc.v1.CreatePatientRequest + (*CreatePatientResponse)(nil), // 3: services.task_svc.v1.CreatePatientResponse + (*GetPatientRequest)(nil), // 4: services.task_svc.v1.GetPatientRequest + (*GetPatientResponse)(nil), // 5: services.task_svc.v1.GetPatientResponse + (*DeletePatientRequest)(nil), // 6: services.task_svc.v1.DeletePatientRequest + (*DeletePatientResponse)(nil), // 7: services.task_svc.v1.DeletePatientResponse + (*GetPatientByBedRequest)(nil), // 8: services.task_svc.v1.GetPatientByBedRequest + (*GetPatientByBedResponse)(nil), // 9: services.task_svc.v1.GetPatientByBedResponse + (*GetPatientsByWardRequest)(nil), // 10: services.task_svc.v1.GetPatientsByWardRequest + (*GetPatientsByWardResponse)(nil), // 11: services.task_svc.v1.GetPatientsByWardResponse + (*GetPatientAssignmentByWardRequest)(nil), // 12: services.task_svc.v1.GetPatientAssignmentByWardRequest + (*GetPatientAssignmentByWardResponse)(nil), // 13: services.task_svc.v1.GetPatientAssignmentByWardResponse + (*GetRecentPatientsRequest)(nil), // 14: services.task_svc.v1.GetRecentPatientsRequest + (*GetRecentPatientsResponse)(nil), // 15: services.task_svc.v1.GetRecentPatientsResponse + (*UpdatePatientRequest)(nil), // 16: services.task_svc.v1.UpdatePatientRequest + (*UpdatePatientResponse)(nil), // 17: services.task_svc.v1.UpdatePatientResponse + (*AssignBedRequest)(nil), // 18: services.task_svc.v1.AssignBedRequest + (*AssignBedResponse)(nil), // 19: services.task_svc.v1.AssignBedResponse + (*UnassignBedRequest)(nil), // 20: services.task_svc.v1.UnassignBedRequest + (*UnassignBedResponse)(nil), // 21: services.task_svc.v1.UnassignBedResponse + (*DischargePatientRequest)(nil), // 22: services.task_svc.v1.DischargePatientRequest + (*DischargePatientResponse)(nil), // 23: services.task_svc.v1.DischargePatientResponse + (*GetPatientDetailsRequest)(nil), // 24: services.task_svc.v1.GetPatientDetailsRequest + (*GetPatientDetailsResponse)(nil), // 25: services.task_svc.v1.GetPatientDetailsResponse + (*GetPatientListRequest)(nil), // 26: services.task_svc.v1.GetPatientListRequest + (*GetPatientListResponse)(nil), // 27: services.task_svc.v1.GetPatientListResponse + (*ReadmitPatientRequest)(nil), // 28: services.task_svc.v1.ReadmitPatientRequest + (*ReadmitPatientResponse)(nil), // 29: services.task_svc.v1.ReadmitPatientResponse + (*GetPatientResponse_Room)(nil), // 30: services.task_svc.v1.GetPatientResponse.Room + (*GetPatientResponse_Bed)(nil), // 31: services.task_svc.v1.GetPatientResponse.Bed + (*GetPatientsByWardResponse_Patient)(nil), // 32: services.task_svc.v1.GetPatientsByWardResponse.Patient + (*GetPatientAssignmentByWardResponse_Room)(nil), // 33: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room + (*GetPatientAssignmentByWardResponse_Room_Bed)(nil), // 34: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed + (*GetPatientAssignmentByWardResponse_Room_Bed_Patient)(nil), // 35: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient + (*GetRecentPatientsResponse_Bed)(nil), // 36: services.task_svc.v1.GetRecentPatientsResponse.Bed + (*GetRecentPatientsResponse_Room)(nil), // 37: services.task_svc.v1.GetRecentPatientsResponse.Room + (*GetRecentPatientsResponse_PatientWithRoomAndBed)(nil), // 38: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed + (*GetPatientDetailsResponse_Room)(nil), // 39: services.task_svc.v1.GetPatientDetailsResponse.Room + (*GetPatientDetailsResponse_Bed)(nil), // 40: services.task_svc.v1.GetPatientDetailsResponse.Bed + (*GetPatientDetailsResponse_Task)(nil), // 41: services.task_svc.v1.GetPatientDetailsResponse.Task + (*GetPatientDetailsResponse_Task_SubTask)(nil), // 42: services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask + (*GetPatientListResponse_Patient)(nil), // 43: services.task_svc.v1.GetPatientListResponse.Patient + (*GetPatientListResponse_Bed)(nil), // 44: services.task_svc.v1.GetPatientListResponse.Bed + (*GetPatientListResponse_Room)(nil), // 45: services.task_svc.v1.GetPatientListResponse.Room + (*GetPatientListResponse_PatientWithRoomAndBed)(nil), // 46: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed + (*GetPatientListResponse_Task)(nil), // 47: services.task_svc.v1.GetPatientListResponse.Task + (*GetPatientListResponse_Task_SubTask)(nil), // 48: services.task_svc.v1.GetPatientListResponse.Task.SubTask } var file_services_task_svc_v1_patient_svc_proto_depIdxs = []int32{ - 0, // 0: services.task_svc.v1.CreatePatientRequest.gender:type_name -> services.task_svc.v1.Gender - 50, // 1: services.task_svc.v1.CreatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date - 0, // 2: services.task_svc.v1.GetPatientResponse.gender:type_name -> services.task_svc.v1.Gender - 50, // 3: services.task_svc.v1.GetPatientResponse.date_of_birth:type_name -> libs.common.v1.Date - 31, // 4: services.task_svc.v1.GetPatientResponse.room:type_name -> services.task_svc.v1.GetPatientResponse.Room - 32, // 5: services.task_svc.v1.GetPatientResponse.bed:type_name -> services.task_svc.v1.GetPatientResponse.Bed - 0, // 6: services.task_svc.v1.GetPatientByBedResponse.gender:type_name -> services.task_svc.v1.Gender - 50, // 7: services.task_svc.v1.GetPatientByBedResponse.date_of_birth:type_name -> libs.common.v1.Date - 33, // 8: services.task_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.task_svc.v1.GetPatientsByWardResponse.Patient - 34, // 9: services.task_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room - 39, // 10: services.task_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed - 0, // 11: services.task_svc.v1.UpdatePatientRequest.gender:type_name -> services.task_svc.v1.Gender - 50, // 12: services.task_svc.v1.UpdatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date - 42, // 13: services.task_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task - 40, // 14: services.task_svc.v1.GetPatientDetailsResponse.room:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Room - 41, // 15: services.task_svc.v1.GetPatientDetailsResponse.bed:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Bed - 0, // 16: services.task_svc.v1.GetPatientDetailsResponse.gender:type_name -> services.task_svc.v1.Gender - 50, // 17: services.task_svc.v1.GetPatientDetailsResponse.date_of_birth:type_name -> libs.common.v1.Date - 47, // 18: services.task_svc.v1.GetPatientListResponse.active:type_name -> services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed - 44, // 19: services.task_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient - 44, // 20: services.task_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient - 0, // 21: services.task_svc.v1.GetPatientsByWardResponse.Patient.gender:type_name -> services.task_svc.v1.Gender - 50, // 22: services.task_svc.v1.GetPatientsByWardResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date - 35, // 23: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed - 36, // 24: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - 38, // 25: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Room - 37, // 26: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Bed - 1, // 27: services.task_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.task_svc.v1.GetPatientDetailsResponse.TaskStatus - 43, // 28: services.task_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask - 0, // 29: services.task_svc.v1.GetPatientListResponse.Patient.gender:type_name -> services.task_svc.v1.Gender - 50, // 30: services.task_svc.v1.GetPatientListResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date - 48, // 31: services.task_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task - 46, // 32: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetPatientListResponse.Room - 45, // 33: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetPatientListResponse.Bed - 0, // 34: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.gender:type_name -> services.task_svc.v1.Gender - 50, // 35: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.date_of_birth:type_name -> libs.common.v1.Date - 48, // 36: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task - 2, // 37: services.task_svc.v1.GetPatientListResponse.Task.status:type_name -> services.task_svc.v1.GetPatientListResponse.TaskStatus - 49, // 38: services.task_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task.SubTask - 3, // 39: services.task_svc.v1.PatientService.CreatePatient:input_type -> services.task_svc.v1.CreatePatientRequest - 5, // 40: services.task_svc.v1.PatientService.GetPatient:input_type -> services.task_svc.v1.GetPatientRequest - 9, // 41: services.task_svc.v1.PatientService.GetPatientByBed:input_type -> services.task_svc.v1.GetPatientByBedRequest - 11, // 42: services.task_svc.v1.PatientService.GetPatientsByWard:input_type -> services.task_svc.v1.GetPatientsByWardRequest - 13, // 43: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.task_svc.v1.GetPatientAssignmentByWardRequest - 15, // 44: services.task_svc.v1.PatientService.GetRecentPatients:input_type -> services.task_svc.v1.GetRecentPatientsRequest - 17, // 45: services.task_svc.v1.PatientService.UpdatePatient:input_type -> services.task_svc.v1.UpdatePatientRequest - 19, // 46: services.task_svc.v1.PatientService.AssignBed:input_type -> services.task_svc.v1.AssignBedRequest - 21, // 47: services.task_svc.v1.PatientService.UnassignBed:input_type -> services.task_svc.v1.UnassignBedRequest - 23, // 48: services.task_svc.v1.PatientService.DischargePatient:input_type -> services.task_svc.v1.DischargePatientRequest - 25, // 49: services.task_svc.v1.PatientService.GetPatientDetails:input_type -> services.task_svc.v1.GetPatientDetailsRequest - 27, // 50: services.task_svc.v1.PatientService.GetPatientList:input_type -> services.task_svc.v1.GetPatientListRequest - 7, // 51: services.task_svc.v1.PatientService.DeletePatient:input_type -> services.task_svc.v1.DeletePatientRequest - 29, // 52: services.task_svc.v1.PatientService.ReadmitPatient:input_type -> services.task_svc.v1.ReadmitPatientRequest - 4, // 53: services.task_svc.v1.PatientService.CreatePatient:output_type -> services.task_svc.v1.CreatePatientResponse - 6, // 54: services.task_svc.v1.PatientService.GetPatient:output_type -> services.task_svc.v1.GetPatientResponse - 10, // 55: services.task_svc.v1.PatientService.GetPatientByBed:output_type -> services.task_svc.v1.GetPatientByBedResponse - 12, // 56: services.task_svc.v1.PatientService.GetPatientsByWard:output_type -> services.task_svc.v1.GetPatientsByWardResponse - 14, // 57: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.task_svc.v1.GetPatientAssignmentByWardResponse - 16, // 58: services.task_svc.v1.PatientService.GetRecentPatients:output_type -> services.task_svc.v1.GetRecentPatientsResponse - 18, // 59: services.task_svc.v1.PatientService.UpdatePatient:output_type -> services.task_svc.v1.UpdatePatientResponse - 20, // 60: services.task_svc.v1.PatientService.AssignBed:output_type -> services.task_svc.v1.AssignBedResponse - 22, // 61: services.task_svc.v1.PatientService.UnassignBed:output_type -> services.task_svc.v1.UnassignBedResponse - 24, // 62: services.task_svc.v1.PatientService.DischargePatient:output_type -> services.task_svc.v1.DischargePatientResponse - 26, // 63: services.task_svc.v1.PatientService.GetPatientDetails:output_type -> services.task_svc.v1.GetPatientDetailsResponse - 28, // 64: services.task_svc.v1.PatientService.GetPatientList:output_type -> services.task_svc.v1.GetPatientListResponse - 8, // 65: services.task_svc.v1.PatientService.DeletePatient:output_type -> services.task_svc.v1.DeletePatientResponse - 30, // 66: services.task_svc.v1.PatientService.ReadmitPatient:output_type -> services.task_svc.v1.ReadmitPatientResponse - 53, // [53:67] is the sub-list for method output_type - 39, // [39:53] is the sub-list for method input_type - 39, // [39:39] is the sub-list for extension type_name - 39, // [39:39] is the sub-list for extension extendee - 0, // [0:39] is the sub-list for field type_name + 30, // 0: services.task_svc.v1.GetPatientResponse.room:type_name -> services.task_svc.v1.GetPatientResponse.Room + 31, // 1: services.task_svc.v1.GetPatientResponse.bed:type_name -> services.task_svc.v1.GetPatientResponse.Bed + 32, // 2: services.task_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.task_svc.v1.GetPatientsByWardResponse.Patient + 33, // 3: services.task_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room + 38, // 4: services.task_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed + 41, // 5: services.task_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task + 39, // 6: services.task_svc.v1.GetPatientDetailsResponse.room:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Room + 40, // 7: services.task_svc.v1.GetPatientDetailsResponse.bed:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Bed + 46, // 8: services.task_svc.v1.GetPatientListResponse.active:type_name -> services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed + 43, // 9: services.task_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient + 43, // 10: services.task_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.task_svc.v1.GetPatientListResponse.Patient + 34, // 11: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed + 35, // 12: services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.task_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient + 37, // 13: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Room + 36, // 14: services.task_svc.v1.GetRecentPatientsResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetRecentPatientsResponse.Bed + 0, // 15: services.task_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.task_svc.v1.GetPatientDetailsResponse.TaskStatus + 42, // 16: services.task_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientDetailsResponse.Task.SubTask + 47, // 17: services.task_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task + 45, // 18: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.room:type_name -> services.task_svc.v1.GetPatientListResponse.Room + 44, // 19: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.bed:type_name -> services.task_svc.v1.GetPatientListResponse.Bed + 47, // 20: services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.tasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task + 1, // 21: services.task_svc.v1.GetPatientListResponse.Task.status:type_name -> services.task_svc.v1.GetPatientListResponse.TaskStatus + 48, // 22: services.task_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.task_svc.v1.GetPatientListResponse.Task.SubTask + 2, // 23: services.task_svc.v1.PatientService.CreatePatient:input_type -> services.task_svc.v1.CreatePatientRequest + 4, // 24: services.task_svc.v1.PatientService.GetPatient:input_type -> services.task_svc.v1.GetPatientRequest + 8, // 25: services.task_svc.v1.PatientService.GetPatientByBed:input_type -> services.task_svc.v1.GetPatientByBedRequest + 10, // 26: services.task_svc.v1.PatientService.GetPatientsByWard:input_type -> services.task_svc.v1.GetPatientsByWardRequest + 12, // 27: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.task_svc.v1.GetPatientAssignmentByWardRequest + 14, // 28: services.task_svc.v1.PatientService.GetRecentPatients:input_type -> services.task_svc.v1.GetRecentPatientsRequest + 16, // 29: services.task_svc.v1.PatientService.UpdatePatient:input_type -> services.task_svc.v1.UpdatePatientRequest + 18, // 30: services.task_svc.v1.PatientService.AssignBed:input_type -> services.task_svc.v1.AssignBedRequest + 20, // 31: services.task_svc.v1.PatientService.UnassignBed:input_type -> services.task_svc.v1.UnassignBedRequest + 22, // 32: services.task_svc.v1.PatientService.DischargePatient:input_type -> services.task_svc.v1.DischargePatientRequest + 24, // 33: services.task_svc.v1.PatientService.GetPatientDetails:input_type -> services.task_svc.v1.GetPatientDetailsRequest + 26, // 34: services.task_svc.v1.PatientService.GetPatientList:input_type -> services.task_svc.v1.GetPatientListRequest + 6, // 35: services.task_svc.v1.PatientService.DeletePatient:input_type -> services.task_svc.v1.DeletePatientRequest + 28, // 36: services.task_svc.v1.PatientService.ReadmitPatient:input_type -> services.task_svc.v1.ReadmitPatientRequest + 3, // 37: services.task_svc.v1.PatientService.CreatePatient:output_type -> services.task_svc.v1.CreatePatientResponse + 5, // 38: services.task_svc.v1.PatientService.GetPatient:output_type -> services.task_svc.v1.GetPatientResponse + 9, // 39: services.task_svc.v1.PatientService.GetPatientByBed:output_type -> services.task_svc.v1.GetPatientByBedResponse + 11, // 40: services.task_svc.v1.PatientService.GetPatientsByWard:output_type -> services.task_svc.v1.GetPatientsByWardResponse + 13, // 41: services.task_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.task_svc.v1.GetPatientAssignmentByWardResponse + 15, // 42: services.task_svc.v1.PatientService.GetRecentPatients:output_type -> services.task_svc.v1.GetRecentPatientsResponse + 17, // 43: services.task_svc.v1.PatientService.UpdatePatient:output_type -> services.task_svc.v1.UpdatePatientResponse + 19, // 44: services.task_svc.v1.PatientService.AssignBed:output_type -> services.task_svc.v1.AssignBedResponse + 21, // 45: services.task_svc.v1.PatientService.UnassignBed:output_type -> services.task_svc.v1.UnassignBedResponse + 23, // 46: services.task_svc.v1.PatientService.DischargePatient:output_type -> services.task_svc.v1.DischargePatientResponse + 25, // 47: services.task_svc.v1.PatientService.GetPatientDetails:output_type -> services.task_svc.v1.GetPatientDetailsResponse + 27, // 48: services.task_svc.v1.PatientService.GetPatientList:output_type -> services.task_svc.v1.GetPatientListResponse + 7, // 49: services.task_svc.v1.PatientService.DeletePatient:output_type -> services.task_svc.v1.DeletePatientResponse + 29, // 50: services.task_svc.v1.PatientService.ReadmitPatient:output_type -> services.task_svc.v1.ReadmitPatientResponse + 37, // [37:51] is the sub-list for method output_type + 23, // [23:37] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name } func init() { file_services_task_svc_v1_patient_svc_proto_init() } @@ -4305,15 +4026,13 @@ func file_services_task_svc_v1_patient_svc_proto_init() { file_services_task_svc_v1_patient_svc_proto_msgTypes[30].OneofWrappers = []interface{}{} file_services_task_svc_v1_patient_svc_proto_msgTypes[32].OneofWrappers = []interface{}{} file_services_task_svc_v1_patient_svc_proto_msgTypes[39].OneofWrappers = []interface{}{} - file_services_task_svc_v1_patient_svc_proto_msgTypes[41].OneofWrappers = []interface{}{} - file_services_task_svc_v1_patient_svc_proto_msgTypes[44].OneofWrappers = []interface{}{} file_services_task_svc_v1_patient_svc_proto_msgTypes[45].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_services_task_svc_v1_patient_svc_proto_rawDesc, - NumEnums: 3, + NumEnums: 2, NumMessages: 47, NumExtensions: 0, NumServices: 1, diff --git a/gen/go/services/tasks_svc/v1/patient_svc.pb.go b/gen/go/services/tasks_svc/v1/patient_svc.pb.go index 639751a40..caedbbccd 100644 --- a/gen/go/services/tasks_svc/v1/patient_svc.pb.go +++ b/gen/go/services/tasks_svc/v1/patient_svc.pb.go @@ -26,8 +26,10 @@ type CreatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" - Notes *string `protobuf:"bytes,2,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" + Notes *string `protobuf:"bytes,2,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` } func (x *CreatePatientRequest) Reset() { @@ -76,6 +78,20 @@ func (x *CreatePatientRequest) GetNotes() string { return "" } +func (x *CreatePatientRequest) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *CreatePatientRequest) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + type CreatePatientResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -186,6 +202,8 @@ type GetPatientResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,11,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` Consistency string `protobuf:"bytes,9,opt,name=consistency,proto3" json:"consistency,omitempty"` @@ -244,6 +262,20 @@ func (x *GetPatientResponse) GetNotes() string { return "" } +func (x *GetPatientResponse) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *GetPatientResponse) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientResponse) GetRoom() *GetPatientResponse_Room { if x != nil { return x.Room @@ -317,11 +349,13 @@ type GetPatientByBedResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - BedId string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3" json:"bed_id,omitempty"` - Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3" json:"bed_id,omitempty"` + Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientByBedResponse) Reset() { @@ -377,6 +411,20 @@ func (x *GetPatientByBedResponse) GetNotes() string { return "" } +func (x *GetPatientByBedResponse) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *GetPatientByBedResponse) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientByBedResponse) GetBedId() string { if x != nil { return x.BedId @@ -634,6 +682,8 @@ type GetPatientDetailsResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,9,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,10,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientDetailsResponse_Task `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` Room *GetPatientDetailsResponse_Room `protobuf:"bytes,5,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetPatientDetailsResponse_Bed `protobuf:"bytes,6,opt,name=bed,proto3,oneof" json:"bed,omitempty"` @@ -694,6 +744,20 @@ func (x *GetPatientDetailsResponse) GetNotes() string { return "" } +func (x *GetPatientDetailsResponse) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *GetPatientDetailsResponse) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientDetailsResponse) GetTasks() []*GetPatientDetailsResponse_Task { if x != nil { return x.Tasks @@ -929,10 +993,12 @@ type UpdatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" - HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` - Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` - Consistency *string `protobuf:"bytes,4,opt,name=consistency,proto3,oneof" json:"consistency,omitempty"` // no conflict detection, if not provided + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" + HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` + Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + Consistency *string `protobuf:"bytes,4,opt,name=consistency,proto3,oneof" json:"consistency,omitempty"` // no conflict detection, if not provided } func (x *UpdatePatientRequest) Reset() { @@ -988,6 +1054,20 @@ func (x *UpdatePatientRequest) GetNotes() string { return "" } +func (x *UpdatePatientRequest) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *UpdatePatientRequest) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *UpdatePatientRequest) GetConsistency() string { if x != nil && x.Consistency != nil { return *x.Consistency @@ -1690,11 +1770,13 @@ type GetPatientsByWardResponse_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` - Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientsByWardResponse_Patient) Reset() { @@ -1750,6 +1832,20 @@ func (x *GetPatientsByWardResponse_Patient) GetNotes() string { return "" } +func (x *GetPatientsByWardResponse_Patient) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *GetPatientsByWardResponse_Patient) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth + } + return nil +} + func (x *GetPatientsByWardResponse_Patient) GetBedId() string { if x != nil && x.BedId != nil { return *x.BedId @@ -2418,9 +2514,11 @@ type GetPatientListResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` + Gender *v1.Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,9,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Room *GetPatientListResponse_Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` Bed *GetPatientListResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3" json:"bed,omitempty"` - Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` Tasks []*GetPatientListResponse_Task `protobuf:"bytes,6,rep,name=tasks,proto3" json:"tasks,omitempty"` Consistency string `protobuf:"bytes,7,opt,name=consistency,proto3" json:"consistency,omitempty"` } @@ -2471,25 +2569,39 @@ func (x *GetPatientListResponse_Patient) GetHumanReadableIdentifier() string { return "" } -func (x *GetPatientListResponse_Patient) GetRoom() *GetPatientListResponse_Room { +func (x *GetPatientListResponse_Patient) GetNotes() string { if x != nil { - return x.Room + return x.Notes + } + return "" +} + +func (x *GetPatientListResponse_Patient) GetGender() v1.Gender { + if x != nil && x.Gender != nil { + return *x.Gender + } + return v1.Gender(0) +} + +func (x *GetPatientListResponse_Patient) GetDateOfBirth() *v1.Date { + if x != nil { + return x.DateOfBirth } return nil } -func (x *GetPatientListResponse_Patient) GetBed() *GetPatientListResponse_Bed { +func (x *GetPatientListResponse_Patient) GetRoom() *GetPatientListResponse_Room { if x != nil { - return x.Bed + return x.Room } return nil } -func (x *GetPatientListResponse_Patient) GetNotes() string { +func (x *GetPatientListResponse_Patient) GetBed() *GetPatientListResponse_Bed { if x != nil { - return x.Notes + return x.Bed } - return "" + return nil } func (x *GetPatientListResponse_Patient) GetTasks() []*GetPatientListResponse_Task { @@ -2904,507 +3016,572 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x5f, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, - 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, - 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, - 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x15, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xec, 0x03, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, - 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, - 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x01, 0x52, 0x03, 0x62, 0x65, 0x64, - 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, - 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, - 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x17, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, + 0x74, 0x6f, 0x1a, 0x1a, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, + 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, + 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, + 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, - 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x69, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, + 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x01, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, + 0x69, 0x72, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, + 0x48, 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, + 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x09, 0x0a, 0x07, + 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x22, 0x49, 0x0a, 0x15, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xfd, 0x04, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, + 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, + 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x02, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, + 0x44, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x03, 0x52, 0x03, 0x62, + 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, + 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, + 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xc5, 0x02, 0x0a, 0x17, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, + 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, + 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, + 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, + 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x06, + 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, + 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, + 0x74, 0x68, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xa8, 0x02, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, + 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xb9, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xb4, 0x01, 0x0a, 0x07, + 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xc5, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x62, 0x65, 0x64, - 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, - 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, + 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, + 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, + 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, + 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x22, 0xb7, 0x04, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, - 0x22, 0xb7, 0x04, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xba, + 0x03, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x62, + 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, + 0x65, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x93, 0x02, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x69, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x4a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, + 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, + 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x48, 0x00, + 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4f, + 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, + 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2a, 0x0a, 0x18, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xc9, 0x09, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, + 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, + 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, + 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x05, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xba, 0x03, - 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x62, 0x65, - 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, - 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x93, 0x02, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x69, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x4a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, - 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, - 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, - 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4f, 0x0a, - 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0a, - 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2a, 0x0a, 0x18, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xb8, 0x08, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, - 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, - 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x02, 0x52, + 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x03, 0x52, 0x03, 0x62, + 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, + 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, + 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, + 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x1a, 0xc2, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x21, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x12, 0x59, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, + 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, + 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, + 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, + 0x62, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, + 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, + 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0xa5, 0x0b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, - 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x01, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, - 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, - 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, - 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xc2, 0x03, 0x0a, 0x04, - 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x59, 0x0a, 0x08, 0x73, - 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x12, 0x66, 0x0a, 0x13, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, - 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, - 0x64, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, - 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, - 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, - 0x64, 0x5f, 0x69, 0x64, 0x22, 0x94, 0x0a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4d, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x66, - 0x0a, 0x13, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x66, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x63, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x64, 0x69, + 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, + 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, + 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xf5, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, + 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, + 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x43, + 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x12, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x66, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, - 0x72, 0x67, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x64, 0x69, 0x73, 0x63, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x4b, - 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, + 0x62, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x1a, 0xbf, 0x03, 0x0a, + 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, - 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, - 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x1a, 0xe4, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, - 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, - 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, - 0x6f, 0x6d, 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, - 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x48, 0x0a, - 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xbf, 0x03, 0x0a, 0x04, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x56, 0x0a, 0x08, 0x73, 0x75, 0x62, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x65, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, - 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xda, 0x04, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, - 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x56, 0x0a, 0x08, + 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xa5, 0x02, 0x0a, - 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, - 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, - 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x6f, - 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, + 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x1a, + 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xda, 0x04, 0x0a, 0x19, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, + 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x01, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, - 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, - 0x5f, 0x62, 0x65, 0x64, 0x22, 0xe1, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, - 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, - 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, - 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, - 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, - 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, - 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, 0x00, - 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, - 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x70, 0x0a, 0x10, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x63, + 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x4b, 0x0a, 0x03, 0x42, + 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, + 0xa5, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, + 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, + 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, + 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x01, 0x52, 0x03, 0x62, 0x65, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, + 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0xf2, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, + 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, + 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x88, 0x01, + 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, + 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, + 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x48, 0x02, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, + 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, + 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, + 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, + 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x68, 0x75, 0x6d, 0x61, + 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x0e, 0x0a, 0x0c, + 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x81, 0x01, 0x0a, + 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, + 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, + 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, + 0x22, 0x70, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, + 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, + 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, + 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, + 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, + 0x74, 0x22, 0x5b, 0x0a, 0x12, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0e, - 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x7d, - 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, - 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x5b, 0x0a, - 0x12, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, - 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x7f, 0x0a, 0x13, 0x55, 0x6e, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, - 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0b, - 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x29, 0x0a, 0x17, 0x44, - 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, - 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x16, - 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x7f, + 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, + 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, + 0x29, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x18, 0x44, 0x69, + 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xda, 0x0c, 0x0a, 0x0e, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0d, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x0a, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x72, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, - 0x65, 0x64, 0x12, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x93, 0x01, - 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x38, 0x2e, 0x73, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, + 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, + 0x22, 0x3a, 0x0a, 0x16, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x26, 0x0a, 0x14, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xda, 0x0c, + 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x6c, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, + 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, - 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, - 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x42, 0x65, 0x64, 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, + 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x93, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, + 0x12, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x0b, 0x55, 0x6e, 0x61, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x75, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x6d, - 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x09, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb9, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x76, 0x63, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2d, 0x73, 0x76, 0x63, 0x2f, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x14, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x14, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x73, - 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, + 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x0b, + 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x29, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, + 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x52, + 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb9, 0x01, 0x0a, 0x19, 0x63, + 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x67, 0x65, 0x6e, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2d, + 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x14, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, + 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3467,68 +3644,84 @@ var file_services_tasks_svc_v1_patient_svc_proto_goTypes = []interface{}{ (*GetRecentPatientsResponse_Bed)(nil), // 43: services.tasks_svc.v1.GetRecentPatientsResponse.Bed (*GetRecentPatientsResponse_Room)(nil), // 44: services.tasks_svc.v1.GetRecentPatientsResponse.Room (*GetRecentPatientsResponse_Patient)(nil), // 45: services.tasks_svc.v1.GetRecentPatientsResponse.Patient - (*v1.Conflict)(nil), // 46: libs.common.v1.Conflict - (TaskStatus)(0), // 47: services.tasks_svc.v1.TaskStatus + (v1.Gender)(0), // 46: libs.common.v1.Gender + (*v1.Date)(nil), // 47: libs.common.v1.Date + (*v1.Conflict)(nil), // 48: libs.common.v1.Conflict + (TaskStatus)(0), // 49: services.tasks_svc.v1.TaskStatus } var file_services_tasks_svc_v1_patient_svc_proto_depIdxs = []int32{ - 28, // 0: services.tasks_svc.v1.GetPatientResponse.room:type_name -> services.tasks_svc.v1.GetPatientResponse.Room - 29, // 1: services.tasks_svc.v1.GetPatientResponse.bed:type_name -> services.tasks_svc.v1.GetPatientResponse.Bed - 30, // 2: services.tasks_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.tasks_svc.v1.GetPatientsByWardResponse.Patient - 31, // 3: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room - 36, // 4: services.tasks_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task - 34, // 5: services.tasks_svc.v1.GetPatientDetailsResponse.room:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Room - 35, // 6: services.tasks_svc.v1.GetPatientDetailsResponse.bed:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Bed - 40, // 7: services.tasks_svc.v1.GetPatientListResponse.active:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient - 40, // 8: services.tasks_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient - 40, // 9: services.tasks_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient - 45, // 10: services.tasks_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Patient - 46, // 11: services.tasks_svc.v1.UpdatePatientResponse.conflict:type_name -> libs.common.v1.Conflict - 46, // 12: services.tasks_svc.v1.AssignBedResponse.conflict:type_name -> libs.common.v1.Conflict - 46, // 13: services.tasks_svc.v1.UnassignBedResponse.conflict:type_name -> libs.common.v1.Conflict - 32, // 14: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed - 33, // 15: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - 47, // 16: services.tasks_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus - 37, // 17: services.tasks_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task.SubTask - 39, // 18: services.tasks_svc.v1.GetPatientListResponse.Patient.room:type_name -> services.tasks_svc.v1.GetPatientListResponse.Room - 38, // 19: services.tasks_svc.v1.GetPatientListResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetPatientListResponse.Bed - 41, // 20: services.tasks_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task - 47, // 21: services.tasks_svc.v1.GetPatientListResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus - 42, // 22: services.tasks_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task.SubTask - 44, // 23: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.room:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Room - 43, // 24: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Bed - 0, // 25: services.tasks_svc.v1.PatientService.CreatePatient:input_type -> services.tasks_svc.v1.CreatePatientRequest - 2, // 26: services.tasks_svc.v1.PatientService.GetPatient:input_type -> services.tasks_svc.v1.GetPatientRequest - 4, // 27: services.tasks_svc.v1.PatientService.GetPatientByBed:input_type -> services.tasks_svc.v1.GetPatientByBedRequest - 6, // 28: services.tasks_svc.v1.PatientService.GetPatientsByWard:input_type -> services.tasks_svc.v1.GetPatientsByWardRequest - 8, // 29: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.tasks_svc.v1.GetPatientAssignmentByWardRequest - 10, // 30: services.tasks_svc.v1.PatientService.GetPatientDetails:input_type -> services.tasks_svc.v1.GetPatientDetailsRequest - 12, // 31: services.tasks_svc.v1.PatientService.GetPatientList:input_type -> services.tasks_svc.v1.GetPatientListRequest - 14, // 32: services.tasks_svc.v1.PatientService.GetRecentPatients:input_type -> services.tasks_svc.v1.GetRecentPatientsRequest - 16, // 33: services.tasks_svc.v1.PatientService.UpdatePatient:input_type -> services.tasks_svc.v1.UpdatePatientRequest - 18, // 34: services.tasks_svc.v1.PatientService.AssignBed:input_type -> services.tasks_svc.v1.AssignBedRequest - 20, // 35: services.tasks_svc.v1.PatientService.UnassignBed:input_type -> services.tasks_svc.v1.UnassignBedRequest - 22, // 36: services.tasks_svc.v1.PatientService.DischargePatient:input_type -> services.tasks_svc.v1.DischargePatientRequest - 24, // 37: services.tasks_svc.v1.PatientService.ReadmitPatient:input_type -> services.tasks_svc.v1.ReadmitPatientRequest - 26, // 38: services.tasks_svc.v1.PatientService.DeletePatient:input_type -> services.tasks_svc.v1.DeletePatientRequest - 1, // 39: services.tasks_svc.v1.PatientService.CreatePatient:output_type -> services.tasks_svc.v1.CreatePatientResponse - 3, // 40: services.tasks_svc.v1.PatientService.GetPatient:output_type -> services.tasks_svc.v1.GetPatientResponse - 5, // 41: services.tasks_svc.v1.PatientService.GetPatientByBed:output_type -> services.tasks_svc.v1.GetPatientByBedResponse - 7, // 42: services.tasks_svc.v1.PatientService.GetPatientsByWard:output_type -> services.tasks_svc.v1.GetPatientsByWardResponse - 9, // 43: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse - 11, // 44: services.tasks_svc.v1.PatientService.GetPatientDetails:output_type -> services.tasks_svc.v1.GetPatientDetailsResponse - 13, // 45: services.tasks_svc.v1.PatientService.GetPatientList:output_type -> services.tasks_svc.v1.GetPatientListResponse - 15, // 46: services.tasks_svc.v1.PatientService.GetRecentPatients:output_type -> services.tasks_svc.v1.GetRecentPatientsResponse - 17, // 47: services.tasks_svc.v1.PatientService.UpdatePatient:output_type -> services.tasks_svc.v1.UpdatePatientResponse - 19, // 48: services.tasks_svc.v1.PatientService.AssignBed:output_type -> services.tasks_svc.v1.AssignBedResponse - 21, // 49: services.tasks_svc.v1.PatientService.UnassignBed:output_type -> services.tasks_svc.v1.UnassignBedResponse - 23, // 50: services.tasks_svc.v1.PatientService.DischargePatient:output_type -> services.tasks_svc.v1.DischargePatientResponse - 25, // 51: services.tasks_svc.v1.PatientService.ReadmitPatient:output_type -> services.tasks_svc.v1.ReadmitPatientResponse - 27, // 52: services.tasks_svc.v1.PatientService.DeletePatient:output_type -> services.tasks_svc.v1.DeletePatientResponse - 39, // [39:53] is the sub-list for method output_type - 25, // [25:39] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name + 46, // 0: services.tasks_svc.v1.CreatePatientRequest.gender:type_name -> libs.common.v1.Gender + 47, // 1: services.tasks_svc.v1.CreatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date + 46, // 2: services.tasks_svc.v1.GetPatientResponse.gender:type_name -> libs.common.v1.Gender + 47, // 3: services.tasks_svc.v1.GetPatientResponse.date_of_birth:type_name -> libs.common.v1.Date + 28, // 4: services.tasks_svc.v1.GetPatientResponse.room:type_name -> services.tasks_svc.v1.GetPatientResponse.Room + 29, // 5: services.tasks_svc.v1.GetPatientResponse.bed:type_name -> services.tasks_svc.v1.GetPatientResponse.Bed + 46, // 6: services.tasks_svc.v1.GetPatientByBedResponse.gender:type_name -> libs.common.v1.Gender + 47, // 7: services.tasks_svc.v1.GetPatientByBedResponse.date_of_birth:type_name -> libs.common.v1.Date + 30, // 8: services.tasks_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.tasks_svc.v1.GetPatientsByWardResponse.Patient + 31, // 9: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room + 46, // 10: services.tasks_svc.v1.GetPatientDetailsResponse.gender:type_name -> libs.common.v1.Gender + 47, // 11: services.tasks_svc.v1.GetPatientDetailsResponse.date_of_birth:type_name -> libs.common.v1.Date + 36, // 12: services.tasks_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task + 34, // 13: services.tasks_svc.v1.GetPatientDetailsResponse.room:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Room + 35, // 14: services.tasks_svc.v1.GetPatientDetailsResponse.bed:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Bed + 40, // 15: services.tasks_svc.v1.GetPatientListResponse.active:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient + 40, // 16: services.tasks_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient + 40, // 17: services.tasks_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient + 45, // 18: services.tasks_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Patient + 46, // 19: services.tasks_svc.v1.UpdatePatientRequest.gender:type_name -> libs.common.v1.Gender + 47, // 20: services.tasks_svc.v1.UpdatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date + 48, // 21: services.tasks_svc.v1.UpdatePatientResponse.conflict:type_name -> libs.common.v1.Conflict + 48, // 22: services.tasks_svc.v1.AssignBedResponse.conflict:type_name -> libs.common.v1.Conflict + 48, // 23: services.tasks_svc.v1.UnassignBedResponse.conflict:type_name -> libs.common.v1.Conflict + 46, // 24: services.tasks_svc.v1.GetPatientsByWardResponse.Patient.gender:type_name -> libs.common.v1.Gender + 47, // 25: services.tasks_svc.v1.GetPatientsByWardResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date + 32, // 26: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed + 33, // 27: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient + 49, // 28: services.tasks_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus + 37, // 29: services.tasks_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task.SubTask + 46, // 30: services.tasks_svc.v1.GetPatientListResponse.Patient.gender:type_name -> libs.common.v1.Gender + 47, // 31: services.tasks_svc.v1.GetPatientListResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date + 39, // 32: services.tasks_svc.v1.GetPatientListResponse.Patient.room:type_name -> services.tasks_svc.v1.GetPatientListResponse.Room + 38, // 33: services.tasks_svc.v1.GetPatientListResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetPatientListResponse.Bed + 41, // 34: services.tasks_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task + 49, // 35: services.tasks_svc.v1.GetPatientListResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus + 42, // 36: services.tasks_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task.SubTask + 44, // 37: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.room:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Room + 43, // 38: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Bed + 0, // 39: services.tasks_svc.v1.PatientService.CreatePatient:input_type -> services.tasks_svc.v1.CreatePatientRequest + 2, // 40: services.tasks_svc.v1.PatientService.GetPatient:input_type -> services.tasks_svc.v1.GetPatientRequest + 4, // 41: services.tasks_svc.v1.PatientService.GetPatientByBed:input_type -> services.tasks_svc.v1.GetPatientByBedRequest + 6, // 42: services.tasks_svc.v1.PatientService.GetPatientsByWard:input_type -> services.tasks_svc.v1.GetPatientsByWardRequest + 8, // 43: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.tasks_svc.v1.GetPatientAssignmentByWardRequest + 10, // 44: services.tasks_svc.v1.PatientService.GetPatientDetails:input_type -> services.tasks_svc.v1.GetPatientDetailsRequest + 12, // 45: services.tasks_svc.v1.PatientService.GetPatientList:input_type -> services.tasks_svc.v1.GetPatientListRequest + 14, // 46: services.tasks_svc.v1.PatientService.GetRecentPatients:input_type -> services.tasks_svc.v1.GetRecentPatientsRequest + 16, // 47: services.tasks_svc.v1.PatientService.UpdatePatient:input_type -> services.tasks_svc.v1.UpdatePatientRequest + 18, // 48: services.tasks_svc.v1.PatientService.AssignBed:input_type -> services.tasks_svc.v1.AssignBedRequest + 20, // 49: services.tasks_svc.v1.PatientService.UnassignBed:input_type -> services.tasks_svc.v1.UnassignBedRequest + 22, // 50: services.tasks_svc.v1.PatientService.DischargePatient:input_type -> services.tasks_svc.v1.DischargePatientRequest + 24, // 51: services.tasks_svc.v1.PatientService.ReadmitPatient:input_type -> services.tasks_svc.v1.ReadmitPatientRequest + 26, // 52: services.tasks_svc.v1.PatientService.DeletePatient:input_type -> services.tasks_svc.v1.DeletePatientRequest + 1, // 53: services.tasks_svc.v1.PatientService.CreatePatient:output_type -> services.tasks_svc.v1.CreatePatientResponse + 3, // 54: services.tasks_svc.v1.PatientService.GetPatient:output_type -> services.tasks_svc.v1.GetPatientResponse + 5, // 55: services.tasks_svc.v1.PatientService.GetPatientByBed:output_type -> services.tasks_svc.v1.GetPatientByBedResponse + 7, // 56: services.tasks_svc.v1.PatientService.GetPatientsByWard:output_type -> services.tasks_svc.v1.GetPatientsByWardResponse + 9, // 57: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse + 11, // 58: services.tasks_svc.v1.PatientService.GetPatientDetails:output_type -> services.tasks_svc.v1.GetPatientDetailsResponse + 13, // 59: services.tasks_svc.v1.PatientService.GetPatientList:output_type -> services.tasks_svc.v1.GetPatientListResponse + 15, // 60: services.tasks_svc.v1.PatientService.GetRecentPatients:output_type -> services.tasks_svc.v1.GetRecentPatientsResponse + 17, // 61: services.tasks_svc.v1.PatientService.UpdatePatient:output_type -> services.tasks_svc.v1.UpdatePatientResponse + 19, // 62: services.tasks_svc.v1.PatientService.AssignBed:output_type -> services.tasks_svc.v1.AssignBedResponse + 21, // 63: services.tasks_svc.v1.PatientService.UnassignBed:output_type -> services.tasks_svc.v1.UnassignBedResponse + 23, // 64: services.tasks_svc.v1.PatientService.DischargePatient:output_type -> services.tasks_svc.v1.DischargePatientResponse + 25, // 65: services.tasks_svc.v1.PatientService.ReadmitPatient:output_type -> services.tasks_svc.v1.ReadmitPatientResponse + 27, // 66: services.tasks_svc.v1.PatientService.DeletePatient:output_type -> services.tasks_svc.v1.DeletePatientResponse + 53, // [53:67] is the sub-list for method output_type + 39, // [39:53] is the sub-list for method input_type + 39, // [39:39] is the sub-list for extension type_name + 39, // [39:39] is the sub-list for extension extendee + 0, // [0:39] is the sub-list for field type_name } func init() { file_services_tasks_svc_v1_patient_svc_proto_init() } @@ -4093,6 +4286,7 @@ func file_services_tasks_svc_v1_patient_svc_proto_init() { } file_services_tasks_svc_v1_patient_svc_proto_msgTypes[0].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_services_tasks_svc_v1_patient_svc_proto_msgTypes[5].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[11].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[12].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[16].OneofWrappers = []interface{}{} @@ -4104,6 +4298,7 @@ func file_services_tasks_svc_v1_patient_svc_proto_init() { file_services_tasks_svc_v1_patient_svc_proto_msgTypes[30].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[32].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[36].OneofWrappers = []interface{}{} + file_services_tasks_svc_v1_patient_svc_proto_msgTypes[40].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[41].OneofWrappers = []interface{}{} file_services_tasks_svc_v1_patient_svc_proto_msgTypes[45].OneofWrappers = []interface{}{} type x struct{} diff --git a/gen/ts/libs/common/v1/types_pb.d.ts b/gen/ts/libs/common/v1/types_pb.d.ts index 33a758204..a1082616b 100644 --- a/gen/ts/libs/common/v1/types_pb.d.ts +++ b/gen/ts/libs/common/v1/types_pb.d.ts @@ -23,3 +23,9 @@ export namespace Date { } } +export enum Gender { + GENDER_UNSPECIFIED = 0, + GENDER_FEMALE = 1, + GENDER_MALE = 2, + GENDER_DIVERSE = 3, +} diff --git a/gen/ts/libs/common/v1/types_pb.js b/gen/ts/libs/common/v1/types_pb.js index 877de0b9b..cd8fa0d3f 100644 --- a/gen/ts/libs/common/v1/types_pb.js +++ b/gen/ts/libs/common/v1/types_pb.js @@ -24,6 +24,7 @@ var global = var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.libs.common.v1.Date', null, global); +goog.exportSymbol('proto.libs.common.v1.Gender', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -196,4 +197,14 @@ proto.libs.common.v1.Date.prototype.hasDate = function() { }; +/** + * @enum {number} + */ +proto.libs.common.v1.Gender = { + GENDER_UNSPECIFIED: 0, + GENDER_FEMALE: 1, + GENDER_MALE: 2, + GENDER_DIVERSE: 3 +}; + goog.object.extend(exports, proto.libs.common.v1); diff --git a/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js b/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js index 55b2ac2c1..c539aef27 100644 --- a/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js +++ b/gen/ts/services/task_svc/v1/patient_svc_grpc_web_pb.js @@ -19,8 +19,6 @@ const grpc = {}; grpc.web = require('grpc-web'); - -var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js') const proto = {}; proto.services = {}; proto.services.task_svc = {}; diff --git a/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts b/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts index f5388a5ee..6acef8f42 100644 --- a/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts +++ b/gen/ts/services/task_svc/v1/patient_svc_pb.d.ts @@ -1,6 +1,5 @@ import * as jspb from 'google-protobuf' -import * as libs_common_v1_types_pb from '../../../libs/common/v1/types_pb'; // proto import: "libs/common/v1/types.proto" export class CreatePatientRequest extends jspb.Message { @@ -10,14 +9,6 @@ export class CreatePatientRequest extends jspb.Message { getNotes(): string; setNotes(value: string): CreatePatientRequest; - getGender(): Gender; - setGender(value: Gender): CreatePatientRequest; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): CreatePatientRequest; - hasDateOfBirth(): boolean; - clearDateOfBirth(): CreatePatientRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreatePatientRequest.AsObject; static toObject(includeInstance: boolean, msg: CreatePatientRequest): CreatePatientRequest.AsObject; @@ -30,8 +21,6 @@ export namespace CreatePatientRequest { export type AsObject = { humanReadableIdentifier: string, notes: string, - gender: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } } @@ -91,16 +80,6 @@ export class GetPatientResponse extends jspb.Message { hasWardId(): boolean; clearWardId(): GetPatientResponse; - getGender(): Gender; - setGender(value: Gender): GetPatientResponse; - hasGender(): boolean; - clearGender(): GetPatientResponse; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientResponse; - hasDateOfBirth(): boolean; - clearDateOfBirth(): GetPatientResponse; - getRoom(): GetPatientResponse.Room | undefined; setRoom(value?: GetPatientResponse.Room): GetPatientResponse; hasRoom(): boolean; @@ -126,8 +105,6 @@ export namespace GetPatientResponse { notes: string, bedId?: string, wardId?: string, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientResponse.Room.AsObject, bed?: GetPatientResponse.Bed.AsObject, } @@ -192,16 +169,6 @@ export namespace GetPatientResponse { WARD_ID = 5, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 9, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 10, - } - export enum RoomCase { _ROOM_NOT_SET = 0, ROOM = 7, @@ -273,16 +240,6 @@ export class GetPatientByBedResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientByBedResponse; - getGender(): Gender; - setGender(value: Gender): GetPatientByBedResponse; - hasGender(): boolean; - clearGender(): GetPatientByBedResponse; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientByBedResponse; - hasDateOfBirth(): boolean; - clearDateOfBirth(): GetPatientByBedResponse; - getBedId(): string; setBedId(value: string): GetPatientByBedResponse; hasBedId(): boolean; @@ -301,21 +258,9 @@ export namespace GetPatientByBedResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 5, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 6, - } - export enum BedIdCase { _BED_ID_NOT_SET = 0, BED_ID = 4, @@ -369,16 +314,6 @@ export namespace GetPatientsByWardResponse { getNotes(): string; setNotes(value: string): Patient; - getGender(): Gender; - setGender(value: Gender): Patient; - hasGender(): boolean; - clearGender(): Patient; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; - hasDateOfBirth(): boolean; - clearDateOfBirth(): Patient; - getBedId(): string; setBedId(value: string): Patient; hasBedId(): boolean; @@ -397,21 +332,9 @@ export namespace GetPatientsByWardResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 5, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 6, - } - export enum BedIdCase { _BED_ID_NOT_SET = 0, BED_ID = 4, @@ -677,16 +600,6 @@ export class UpdatePatientRequest extends jspb.Message { hasNotes(): boolean; clearNotes(): UpdatePatientRequest; - getGender(): Gender; - setGender(value: Gender): UpdatePatientRequest; - hasGender(): boolean; - clearGender(): UpdatePatientRequest; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): UpdatePatientRequest; - hasDateOfBirth(): boolean; - clearDateOfBirth(): UpdatePatientRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UpdatePatientRequest.AsObject; static toObject(includeInstance: boolean, msg: UpdatePatientRequest): UpdatePatientRequest.AsObject; @@ -700,8 +613,6 @@ export namespace UpdatePatientRequest { id: string, humanReadableIdentifier?: string, notes?: string, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } export enum HumanReadableIdentifierCase { @@ -713,16 +624,6 @@ export namespace UpdatePatientRequest { _NOTES_NOT_SET = 0, NOTES = 3, } - - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 4, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 5, - } } export class UpdatePatientResponse extends jspb.Message { @@ -893,16 +794,6 @@ export class GetPatientDetailsResponse extends jspb.Message { getIsDischarged(): boolean; setIsDischarged(value: boolean): GetPatientDetailsResponse; - getGender(): Gender; - setGender(value: Gender): GetPatientDetailsResponse; - hasGender(): boolean; - clearGender(): GetPatientDetailsResponse; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientDetailsResponse; - hasDateOfBirth(): boolean; - clearDateOfBirth(): GetPatientDetailsResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetPatientDetailsResponse.AsObject; static toObject(includeInstance: boolean, msg: GetPatientDetailsResponse): GetPatientDetailsResponse.AsObject; @@ -922,8 +813,6 @@ export namespace GetPatientDetailsResponse { room?: GetPatientDetailsResponse.Room.AsObject, bed?: GetPatientDetailsResponse.Bed.AsObject, isDischarged: boolean, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } export class Room extends jspb.Message { @@ -1080,16 +969,6 @@ export namespace GetPatientDetailsResponse { _BED_NOT_SET = 0, BED = 8, } - - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 10, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 11, - } } export class GetPatientListRequest extends jspb.Message { @@ -1158,16 +1037,6 @@ export namespace GetPatientListResponse { getNotes(): string; setNotes(value: string): Patient; - getGender(): Gender; - setGender(value: Gender): Patient; - hasGender(): boolean; - clearGender(): Patient; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; - hasDateOfBirth(): boolean; - clearDateOfBirth(): Patient; - getTasksList(): Array; setTasksList(value: Array): Patient; clearTasksList(): Patient; @@ -1186,20 +1055,8 @@ export namespace GetPatientListResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, } - - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 5, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 6, - } } @@ -1273,16 +1130,6 @@ export namespace GetPatientListResponse { getNotes(): string; setNotes(value: string): PatientWithRoomAndBed; - getGender(): Gender; - setGender(value: Gender): PatientWithRoomAndBed; - hasGender(): boolean; - clearGender(): PatientWithRoomAndBed; - - getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; - setDateOfBirth(value?: libs_common_v1_types_pb.Date): PatientWithRoomAndBed; - hasDateOfBirth(): boolean; - clearDateOfBirth(): PatientWithRoomAndBed; - getTasksList(): Array; setTasksList(value: Array): PatientWithRoomAndBed; clearTasksList(): PatientWithRoomAndBed; @@ -1303,20 +1150,8 @@ export namespace GetPatientListResponse { room?: GetPatientListResponse.Room.AsObject, bed?: GetPatientListResponse.Bed.AsObject, notes: string, - gender?: Gender, - dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, } - - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 7, - } - - export enum DateOfBirthCase { - _DATE_OF_BIRTH_NOT_SET = 0, - DATE_OF_BIRTH = 8, - } } @@ -1443,9 +1278,3 @@ export namespace ReadmitPatientResponse { } } -export enum Gender { - GENDER_UNSPECIFIED = 0, - GENDER_FEMALE = 1, - GENDER_MALE = 2, - GENDER_DIVERSE = 3, -} diff --git a/gen/ts/services/task_svc/v1/patient_svc_pb.js b/gen/ts/services/task_svc/v1/patient_svc_pb.js index d13edaf9f..b108ba2fb 100644 --- a/gen/ts/services/task_svc/v1/patient_svc_pb.js +++ b/gen/ts/services/task_svc/v1/patient_svc_pb.js @@ -21,8 +21,6 @@ var global = (function () { return this; }).call(null) || Function('return this')(); -var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js'); -goog.object.extend(proto, libs_common_v1_types_pb); goog.exportSymbol('proto.services.task_svc.v1.AssignBedRequest', null, global); goog.exportSymbol('proto.services.task_svc.v1.AssignBedResponse', null, global); goog.exportSymbol('proto.services.task_svc.v1.CreatePatientRequest', null, global); @@ -31,7 +29,6 @@ goog.exportSymbol('proto.services.task_svc.v1.DeletePatientRequest', null, globa goog.exportSymbol('proto.services.task_svc.v1.DeletePatientResponse', null, global); goog.exportSymbol('proto.services.task_svc.v1.DischargePatientRequest', null, global); goog.exportSymbol('proto.services.task_svc.v1.DischargePatientResponse', null, global); -goog.exportSymbol('proto.services.task_svc.v1.Gender', null, global); goog.exportSymbol('proto.services.task_svc.v1.GetPatientAssignmentByWardRequest', null, global); goog.exportSymbol('proto.services.task_svc.v1.GetPatientAssignmentByWardResponse', null, global); goog.exportSymbol('proto.services.task_svc.v1.GetPatientAssignmentByWardResponse.Room', null, global); @@ -1093,9 +1090,7 @@ proto.services.task_svc.v1.CreatePatientRequest.prototype.toObject = function(op proto.services.task_svc.v1.CreatePatientRequest.toObject = function(includeInstance, msg) { var f, obj = { humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 1, ""), - notes: jspb.Message.getFieldWithDefault(msg, 2, ""), - gender: jspb.Message.getFieldWithDefault(msg, 3, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) + notes: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -1140,15 +1135,6 @@ proto.services.task_svc.v1.CreatePatientRequest.deserializeBinaryFromReader = fu var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; - case 3: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 4: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; default: reader.skipField(); break; @@ -1192,21 +1178,6 @@ proto.services.task_svc.v1.CreatePatientRequest.serializeBinaryToWriter = functi f ); } - f = message.getGender(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 4, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } }; @@ -1246,61 +1217,6 @@ proto.services.task_svc.v1.CreatePatientRequest.prototype.setNotes = function(va }; -/** - * optional Gender gender = 3; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.CreatePatientRequest.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.CreatePatientRequest} returns this - */ -proto.services.task_svc.v1.CreatePatientRequest.prototype.setGender = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 4; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.CreatePatientRequest.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 4)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.CreatePatientRequest} returns this -*/ -proto.services.task_svc.v1.CreatePatientRequest.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.CreatePatientRequest} returns this - */ -proto.services.task_svc.v1.CreatePatientRequest.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.CreatePatientRequest.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 4) != null; -}; - - @@ -1598,8 +1514,6 @@ proto.services.task_svc.v1.GetPatientResponse.toObject = function(includeInstanc notes: jspb.Message.getFieldWithDefault(msg, 3, ""), bedId: jspb.Message.getFieldWithDefault(msg, 4, ""), wardId: jspb.Message.getFieldWithDefault(msg, 5, ""), - gender: jspb.Message.getFieldWithDefault(msg, 9, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), room: (f = msg.getRoom()) && proto.services.task_svc.v1.GetPatientResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.task_svc.v1.GetPatientResponse.Bed.toObject(includeInstance, f) }; @@ -1658,15 +1572,6 @@ proto.services.task_svc.v1.GetPatientResponse.deserializeBinaryFromReader = func var value = /** @type {string} */ (reader.readString()); msg.setWardId(value); break; - case 9: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 10: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; case 7: var value = new proto.services.task_svc.v1.GetPatientResponse.Room; reader.readMessage(value,proto.services.task_svc.v1.GetPatientResponse.Room.deserializeBinaryFromReader); @@ -1741,21 +1646,6 @@ proto.services.task_svc.v1.GetPatientResponse.serializeBinaryToWriter = function f ); } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeEnum( - 9, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 10, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } f = message.getRoom(); if (f != null) { writer.writeMessage( @@ -2251,79 +2141,6 @@ proto.services.task_svc.v1.GetPatientResponse.prototype.hasWardId = function() { }; -/** - * optional Gender gender = 9; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.setGender = function(value) { - return jspb.Message.setField(this, 9, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.clearGender = function() { - return jspb.Message.setField(this, 9, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.hasGender = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 10; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 10)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this -*/ -proto.services.task_svc.v1.GetPatientResponse.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 10, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientResponse} returns this - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientResponse.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 10) != null; -}; - - /** * optional Room room = 7; * @return {?proto.services.task_svc.v1.GetPatientResponse.Room} @@ -2794,8 +2611,6 @@ proto.services.task_svc.v1.GetPatientByBedResponse.toObject = function(includeIn id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 5, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -2845,15 +2660,6 @@ proto.services.task_svc.v1.GetPatientByBedResponse.deserializeBinaryFromReader = var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; - case 5: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 6: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setBedId(value); @@ -2908,21 +2714,6 @@ proto.services.task_svc.v1.GetPatientByBedResponse.serializeBinaryToWriter = fun f ); } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeEnum( - 5, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 6, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( @@ -2987,79 +2778,6 @@ proto.services.task_svc.v1.GetPatientByBedResponse.prototype.setNotes = function }; -/** - * optional Gender gender = 5; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.setGender = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.clearGender = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.hasGender = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 6; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this -*/ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientByBedResponse} returns this - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientByBedResponse.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 6) != null; -}; - - /** * optional string bed_id = 4; * @return {string} @@ -3383,8 +3101,6 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.toObject = function id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 5, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -3434,15 +3150,6 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.deserializeBinaryFr var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; - case 5: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 6: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setBedId(value); @@ -3497,21 +3204,6 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.serializeBinaryToWr f ); } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeEnum( - 5, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 6, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( @@ -3576,79 +3268,6 @@ proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.setNotes }; -/** - * optional Gender gender = 5; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.setGender = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearGender = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasGender = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 6; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this -*/ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientsByWardResponse.Patient} returns this - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 6) != null; -}; - - /** * optional string bed_id = 4; * @return {string} @@ -5511,9 +5130,7 @@ proto.services.task_svc.v1.UpdatePatientRequest.toObject = function(includeInsta var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), - notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 4, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) + notes: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -5562,15 +5179,6 @@ proto.services.task_svc.v1.UpdatePatientRequest.deserializeBinaryFromReader = fu var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; - case 4: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 5: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; default: reader.skipField(); break; @@ -5617,133 +5225,46 @@ proto.services.task_svc.v1.UpdatePatientRequest.serializeBinaryToWriter = functi f = /** @type {string} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeString( - 3, - f - ); - } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeEnum( - 4, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 5, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string human_readable_identifier = 2; - * @return {string} - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getHumanReadableIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setHumanReadableIdentifier = function(value) { - return jspb.Message.setField(this, 2, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearHumanReadableIdentifier = function() { - return jspb.Message.setField(this, 2, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasHumanReadableIdentifier = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string notes = 3; - * @return {string} - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getNotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this - */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setNotes = function(value) { - return jspb.Message.setField(this, 3, value); + 3, + f + ); + } }; /** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this + * optional string id = 1; + * @return {string} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearNotes = function() { - return jspb.Message.setField(this, 3, undefined); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasNotes = function() { - return jspb.Message.getField(this, 3) != null; +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional Gender gender = 4; - * @return {!proto.services.task_svc.v1.Gender} + * optional string human_readable_identifier = 2; + * @return {string} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getHumanReadableIdentifier = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!proto.services.task_svc.v1.Gender} value + * @param {string} value * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setGender = function(value) { - return jspb.Message.setField(this, 4, value); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setHumanReadableIdentifier = function(value) { + return jspb.Message.setField(this, 2, value); }; @@ -5751,8 +5272,8 @@ proto.services.task_svc.v1.UpdatePatientRequest.prototype.setGender = function(v * Clears the field making it undefined. * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearGender = function() { - return jspb.Message.setField(this, 4, undefined); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearHumanReadableIdentifier = function() { + return jspb.Message.setField(this, 2, undefined); }; @@ -5760,36 +5281,35 @@ proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearGender = function * Returns whether this field is set. * @return {boolean} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasGender = function() { - return jspb.Message.getField(this, 4) != null; +proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasHumanReadableIdentifier = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional libs.common.v1.Date date_of_birth = 5; - * @return {?proto.libs.common.v1.Date} + * optional string notes = 3; + * @return {string} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 5)); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {?proto.libs.common.v1.Date|undefined} value + * @param {string} value * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this -*/ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + */ +proto.services.task_svc.v1.UpdatePatientRequest.prototype.setNotes = function(value) { + return jspb.Message.setField(this, 3, value); }; /** - * Clears the message field making it undefined. + * Clears the field making it undefined. * @return {!proto.services.task_svc.v1.UpdatePatientRequest} returns this */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); +proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearNotes = function() { + return jspb.Message.setField(this, 3, undefined); }; @@ -5797,8 +5317,8 @@ proto.services.task_svc.v1.UpdatePatientRequest.prototype.clearDateOfBirth = fun * Returns whether this field is set. * @return {boolean} */ -proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 5) != null; +proto.services.task_svc.v1.UpdatePatientRequest.prototype.hasNotes = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -6804,9 +6324,7 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.toObject = function(include wardId: jspb.Message.getFieldWithDefault(msg, 6, ""), room: (f = msg.getRoom()) && proto.services.task_svc.v1.GetPatientDetailsResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.task_svc.v1.GetPatientDetailsResponse.Bed.toObject(includeInstance, f), - isDischarged: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - gender: jspb.Message.getFieldWithDefault(msg, 10, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) + isDischarged: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; if (includeInstance) { @@ -6882,15 +6400,6 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.deserializeBinaryFromReader var value = /** @type {boolean} */ (reader.readBool()); msg.setIsDischarged(value); break; - case 10: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 11: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; default: reader.skipField(); break; @@ -6986,21 +6495,6 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.serializeBinaryToWriter = f f ); } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeEnum( - 10, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 11, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } }; @@ -8180,79 +7674,6 @@ proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.setIsDischarged = }; -/** - * optional Gender gender = 10; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.setGender = function(value) { - return jspb.Message.setField(this, 10, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.clearGender = function() { - return jspb.Message.setField(this, 10, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.hasGender = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 11; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 11)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this -*/ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 11, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientDetailsResponse} returns this - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientDetailsResponse.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 11) != null; -}; - - @@ -8605,8 +8026,6 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.toObject = function(in id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 5, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.task_svc.v1.GetPatientListResponse.Task.toObject, includeInstance) }; @@ -8657,15 +8076,6 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.deserializeBinaryFromR var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; - case 5: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 6: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; case 4: var value = new proto.services.task_svc.v1.GetPatientListResponse.Task; reader.readMessage(value,proto.services.task_svc.v1.GetPatientListResponse.Task.deserializeBinaryFromReader); @@ -8721,21 +8131,6 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.serializeBinaryToWrite f ); } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 5)); - if (f != null) { - writer.writeEnum( - 5, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 6, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } f = message.getTasksList(); if (f.length > 0) { writer.writeRepeatedMessage( @@ -8801,79 +8196,6 @@ proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.setNotes = f }; -/** - * optional Gender gender = 5; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.setGender = function(value) { - return jspb.Message.setField(this, 5, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.clearGender = function() { - return jspb.Message.setField(this, 5, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.hasGender = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 6; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this -*/ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientListResponse.Patient} returns this - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientListResponse.Patient.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 6) != null; -}; - - /** * repeated Task tasks = 4; * @return {!Array} @@ -9306,8 +8628,6 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.toObject room: (f = msg.getRoom()) && proto.services.task_svc.v1.GetPatientListResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.task_svc.v1.GetPatientListResponse.Bed.toObject(includeInstance, f), notes: jspb.Message.getFieldWithDefault(msg, 5, ""), - gender: jspb.Message.getFieldWithDefault(msg, 7, 0), - dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.task_svc.v1.GetPatientListResponse.Task.toObject, includeInstance) }; @@ -9368,15 +8688,6 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.deserial var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; - case 7: - var value = /** @type {!proto.services.task_svc.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); - break; - case 8: - var value = new libs_common_v1_types_pb.Date; - reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); - msg.setDateOfBirth(value); - break; case 6: var value = new proto.services.task_svc.v1.GetPatientListResponse.Task; reader.readMessage(value,proto.services.task_svc.v1.GetPatientListResponse.Task.deserializeBinaryFromReader); @@ -9448,21 +8759,6 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.serializ f ); } - f = /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeEnum( - 7, - f - ); - } - f = message.getDateOfBirth(); - if (f != null) { - writer.writeMessage( - 8, - f, - libs_common_v1_types_pb.Date.serializeBinaryToWriter - ); - } f = message.getTasksList(); if (f.length > 0) { writer.writeRepeatedMessage( @@ -9602,79 +8898,6 @@ proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototyp }; -/** - * optional Gender gender = 7; - * @return {!proto.services.task_svc.v1.Gender} - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.getGender = function() { - return /** @type {!proto.services.task_svc.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {!proto.services.task_svc.v1.Gender} value - * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.setGender = function(value) { - return jspb.Message.setField(this, 7, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.clearGender = function() { - return jspb.Message.setField(this, 7, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.hasGender = function() { - return jspb.Message.getField(this, 7) != null; -}; - - -/** - * optional libs.common.v1.Date date_of_birth = 8; - * @return {?proto.libs.common.v1.Date} - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.getDateOfBirth = function() { - return /** @type{?proto.libs.common.v1.Date} */ ( - jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 8)); -}; - - -/** - * @param {?proto.libs.common.v1.Date|undefined} value - * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this -*/ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.setDateOfBirth = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed} returns this - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.clearDateOfBirth = function() { - return this.setDateOfBirth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.task_svc.v1.GetPatientListResponse.PatientWithRoomAndBed.prototype.hasDateOfBirth = function() { - return jspb.Message.getField(this, 8) != null; -}; - - /** * repeated Task tasks = 6; * @return {!Array} @@ -10636,14 +9859,4 @@ proto.services.task_svc.v1.ReadmitPatientResponse.serializeBinaryToWriter = func }; -/** - * @enum {number} - */ -proto.services.task_svc.v1.Gender = { - GENDER_UNSPECIFIED: 0, - GENDER_FEMALE: 1, - GENDER_MALE: 2, - GENDER_DIVERSE: 3 -}; - goog.object.extend(exports, proto.services.task_svc.v1); diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_grpc_web_pb.js b/gen/ts/services/tasks_svc/v1/patient_svc_grpc_web_pb.js index 08edb8d39..b865b6568 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_grpc_web_pb.js +++ b/gen/ts/services/tasks_svc/v1/patient_svc_grpc_web_pb.js @@ -23,6 +23,8 @@ grpc.web = require('grpc-web'); var services_tasks_svc_v1_types_pb = require('../../../services/tasks_svc/v1/types_pb.js') var libs_common_v1_conflict_pb = require('../../../libs/common/v1/conflict_pb.js') + +var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js') const proto = {}; proto.services = {}; proto.services.tasks_svc = {}; diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts index 6c20da1f1..0169b6c05 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts @@ -2,6 +2,7 @@ import * as jspb from 'google-protobuf' import * as services_tasks_svc_v1_types_pb from '../../../services/tasks_svc/v1/types_pb'; // proto import: "services/tasks_svc/v1/types.proto" import * as libs_common_v1_conflict_pb from '../../../libs/common/v1/conflict_pb'; // proto import: "libs/common/v1/conflict.proto" +import * as libs_common_v1_types_pb from '../../../libs/common/v1/types_pb'; // proto import: "libs/common/v1/types.proto" export class CreatePatientRequest extends jspb.Message { @@ -13,6 +14,16 @@ export class CreatePatientRequest extends jspb.Message { hasNotes(): boolean; clearNotes(): CreatePatientRequest; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): CreatePatientRequest; + hasGender(): boolean; + clearGender(): CreatePatientRequest; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): CreatePatientRequest; + hasDateOfBirth(): boolean; + clearDateOfBirth(): CreatePatientRequest; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreatePatientRequest.AsObject; static toObject(includeInstance: boolean, msg: CreatePatientRequest): CreatePatientRequest.AsObject; @@ -25,12 +36,24 @@ export namespace CreatePatientRequest { export type AsObject = { humanReadableIdentifier: string, notes?: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } export enum NotesCase { _NOTES_NOT_SET = 0, NOTES = 2, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 3, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 4, + } } export class CreatePatientResponse extends jspb.Message { @@ -83,6 +106,16 @@ export class GetPatientResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientResponse; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): GetPatientResponse; + hasGender(): boolean; + clearGender(): GetPatientResponse; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientResponse; + hasDateOfBirth(): boolean; + clearDateOfBirth(): GetPatientResponse; + getRoom(): GetPatientResponse.Room | undefined; setRoom(value?: GetPatientResponse.Room): GetPatientResponse; hasRoom(): boolean; @@ -109,6 +142,8 @@ export namespace GetPatientResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientResponse.Room.AsObject, bed?: GetPatientResponse.Bed.AsObject, consistency: string, @@ -172,6 +207,16 @@ export namespace GetPatientResponse { } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 10, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 11, + } + export enum RoomCase { _ROOM_NOT_SET = 0, ROOM = 7, @@ -211,6 +256,16 @@ export class GetPatientByBedResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientByBedResponse; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): GetPatientByBedResponse; + hasGender(): boolean; + clearGender(): GetPatientByBedResponse; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientByBedResponse; + hasDateOfBirth(): boolean; + clearDateOfBirth(): GetPatientByBedResponse; + getBedId(): string; setBedId(value: string): GetPatientByBedResponse; @@ -230,9 +285,21 @@ export namespace GetPatientByBedResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId: string, consistency: string, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 6, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 7, + } } export class GetPatientsByWardRequest extends jspb.Message { @@ -282,6 +349,16 @@ export namespace GetPatientsByWardResponse { getNotes(): string; setNotes(value: string): Patient; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): Patient; + hasGender(): boolean; + clearGender(): Patient; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; + hasDateOfBirth(): boolean; + clearDateOfBirth(): Patient; + getBedId(): string; setBedId(value: string): Patient; hasBedId(): boolean; @@ -303,10 +380,22 @@ export namespace GetPatientsByWardResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, consistency: string, } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 6, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 7, + } + export enum BedIdCase { _BED_ID_NOT_SET = 0, BED_ID = 4, @@ -479,6 +568,16 @@ export class GetPatientDetailsResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientDetailsResponse; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): GetPatientDetailsResponse; + hasGender(): boolean; + clearGender(): GetPatientDetailsResponse; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientDetailsResponse; + hasDateOfBirth(): boolean; + clearDateOfBirth(): GetPatientDetailsResponse; + getTasksList(): Array; setTasksList(value: Array): GetPatientDetailsResponse; clearTasksList(): GetPatientDetailsResponse; @@ -513,6 +612,8 @@ export namespace GetPatientDetailsResponse { id: string, humanReadableIdentifier: string, notes: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, room?: GetPatientDetailsResponse.Room.AsObject, bed?: GetPatientDetailsResponse.Bed.AsObject, @@ -665,6 +766,16 @@ export namespace GetPatientDetailsResponse { } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 9, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 10, + } + export enum RoomCase { _ROOM_NOT_SET = 0, ROOM = 5, @@ -797,6 +908,19 @@ export namespace GetPatientListResponse { getHumanReadableIdentifier(): string; setHumanReadableIdentifier(value: string): Patient; + getNotes(): string; + setNotes(value: string): Patient; + + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): Patient; + hasGender(): boolean; + clearGender(): Patient; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; + hasDateOfBirth(): boolean; + clearDateOfBirth(): Patient; + getRoom(): GetPatientListResponse.Room | undefined; setRoom(value?: GetPatientListResponse.Room): Patient; hasRoom(): boolean; @@ -807,9 +931,6 @@ export namespace GetPatientListResponse { hasBed(): boolean; clearBed(): Patient; - getNotes(): string; - setNotes(value: string): Patient; - getTasksList(): Array; setTasksList(value: Array): Patient; clearTasksList(): Patient; @@ -830,12 +951,24 @@ export namespace GetPatientListResponse { export type AsObject = { id: string, humanReadableIdentifier: string, + notes: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientListResponse.Room.AsObject, bed?: GetPatientListResponse.Bed.AsObject, - notes: string, tasksList: Array, consistency: string, } + + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 8, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 9, + } } @@ -1082,6 +1215,16 @@ export class UpdatePatientRequest extends jspb.Message { hasNotes(): boolean; clearNotes(): UpdatePatientRequest; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): UpdatePatientRequest; + hasGender(): boolean; + clearGender(): UpdatePatientRequest; + + getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; + setDateOfBirth(value?: libs_common_v1_types_pb.Date): UpdatePatientRequest; + hasDateOfBirth(): boolean; + clearDateOfBirth(): UpdatePatientRequest; + getConsistency(): string; setConsistency(value: string): UpdatePatientRequest; hasConsistency(): boolean; @@ -1100,6 +1243,8 @@ export namespace UpdatePatientRequest { id: string, humanReadableIdentifier?: string, notes?: string, + gender?: libs_common_v1_types_pb.Gender, + dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, consistency?: string, } @@ -1113,6 +1258,16 @@ export namespace UpdatePatientRequest { NOTES = 3, } + export enum GenderCase { + _GENDER_NOT_SET = 0, + GENDER = 5, + } + + export enum DateOfBirthCase { + _DATE_OF_BIRTH_NOT_SET = 0, + DATE_OF_BIRTH = 6, + } + export enum ConsistencyCase { _CONSISTENCY_NOT_SET = 0, CONSISTENCY = 4, diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js index 286a33f6d..db8b38c5d 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js @@ -25,6 +25,8 @@ var services_tasks_svc_v1_types_pb = require('../../../services/tasks_svc/v1/typ goog.object.extend(proto, services_tasks_svc_v1_types_pb); var libs_common_v1_conflict_pb = require('../../../libs/common/v1/conflict_pb.js'); goog.object.extend(proto, libs_common_v1_conflict_pb); +var libs_common_v1_types_pb = require('../../../libs/common/v1/types_pb.js'); +goog.object.extend(proto, libs_common_v1_types_pb); goog.exportSymbol('proto.services.tasks_svc.v1.AssignBedRequest', null, global); goog.exportSymbol('proto.services.tasks_svc.v1.AssignBedResponse', null, global); goog.exportSymbol('proto.services.tasks_svc.v1.CreatePatientRequest', null, global); @@ -1070,7 +1072,9 @@ proto.services.tasks_svc.v1.CreatePatientRequest.prototype.toObject = function(o proto.services.tasks_svc.v1.CreatePatientRequest.toObject = function(includeInstance, msg) { var f, obj = { humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 1, ""), - notes: jspb.Message.getFieldWithDefault(msg, 2, "") + notes: jspb.Message.getFieldWithDefault(msg, 2, ""), + gender: jspb.Message.getFieldWithDefault(msg, 3, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) }; if (includeInstance) { @@ -1115,6 +1119,15 @@ proto.services.tasks_svc.v1.CreatePatientRequest.deserializeBinaryFromReader = f var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 3: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 4: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; default: reader.skipField(); break; @@ -1158,6 +1171,21 @@ proto.services.tasks_svc.v1.CreatePatientRequest.serializeBinaryToWriter = funct f ); } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeEnum( + 3, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 4, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } }; @@ -1215,6 +1243,79 @@ proto.services.tasks_svc.v1.CreatePatientRequest.prototype.hasNotes = function() }; +/** + * optional libs.common.v1.Gender gender = 3; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.CreatePatientRequest} returns this + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.setGender = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.CreatePatientRequest} returns this + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.clearGender = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.hasGender = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 4; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 4)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.CreatePatientRequest} returns this +*/ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.CreatePatientRequest} returns this + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 4) != null; +}; + + @@ -1540,6 +1641,8 @@ proto.services.tasks_svc.v1.GetPatientResponse.toObject = function(includeInstan id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 10, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetPatientResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.tasks_svc.v1.GetPatientResponse.Bed.toObject(includeInstance, f), consistency: jspb.Message.getFieldWithDefault(msg, 9, "") @@ -1591,6 +1694,15 @@ proto.services.tasks_svc.v1.GetPatientResponse.deserializeBinaryFromReader = fun var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 10: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 11: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 7: var value = new proto.services.tasks_svc.v1.GetPatientResponse.Room; reader.readMessage(value,proto.services.tasks_svc.v1.GetPatientResponse.Room.deserializeBinaryFromReader); @@ -1655,6 +1767,21 @@ proto.services.tasks_svc.v1.GetPatientResponse.serializeBinaryToWriter = functio f ); } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeEnum( + 10, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 11, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = message.getRoom(); if (f != null) { writer.writeMessage( @@ -2145,6 +2272,79 @@ proto.services.tasks_svc.v1.GetPatientResponse.prototype.setNotes = function(val }; +/** + * optional libs.common.v1.Gender gender = 10; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.setGender = function(value) { + return jspb.Message.setField(this, 10, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.clearGender = function() { + return jspb.Message.setField(this, 10, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.hasGender = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 11; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 11)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this +*/ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientResponse.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 11) != null; +}; + + /** * optional Room room = 7; * @return {?proto.services.tasks_svc.v1.GetPatientResponse.Room} @@ -2402,6 +2602,8 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.toObject = function(includeI id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 6, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, ""), consistency: jspb.Message.getFieldWithDefault(msg, 5, "") }; @@ -2452,6 +2654,15 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.deserializeBinaryFromReader var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 6: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 7: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setBedId(value); @@ -2510,6 +2721,21 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.serializeBinaryToWriter = fu f ); } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeEnum( + 6, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 7, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = message.getBedId(); if (f.length > 0) { writer.writeString( @@ -2581,6 +2807,79 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setNotes = functio }; +/** + * optional libs.common.v1.Gender gender = 6; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setGender = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.clearGender = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.hasGender = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 7; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 7)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this +*/ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 7) != null; +}; + + /** * optional string bed_id = 4; * @return {string} @@ -2904,6 +3203,8 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.toObject = functio id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 6, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, ""), consistency: jspb.Message.getFieldWithDefault(msg, 5, "") }; @@ -2954,6 +3255,15 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.deserializeBinaryF var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 6: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 7: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setBedId(value); @@ -3012,6 +3322,21 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.serializeBinaryToW f ); } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeEnum( + 6, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 7, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( @@ -3083,6 +3408,79 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setNotes }; +/** + * optional libs.common.v1.Gender gender = 6; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setGender = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearGender = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasGender = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 7; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 7)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this +*/ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 7) != null; +}; + + /** * optional string bed_id = 4; * @return {string} @@ -4318,6 +4716,8 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.toObject = function(includ id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 9, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.tasks_svc.v1.GetPatientDetailsResponse.Task.toObject, includeInstance), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetPatientDetailsResponse.Room.toObject(includeInstance, f), @@ -4372,6 +4772,15 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.deserializeBinaryFromReade var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 9: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 10: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = new proto.services.tasks_svc.v1.GetPatientDetailsResponse.Task; reader.readMessage(value,proto.services.tasks_svc.v1.GetPatientDetailsResponse.Task.deserializeBinaryFromReader); @@ -4438,11 +4847,26 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.serializeBinaryToWriter = f ); } - f = message.getNotes(); - if (f.length > 0) { - writer.writeString( - 3, - f + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeEnum( + 9, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 10, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter ); } f = message.getTasksList(); @@ -5558,6 +5982,79 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setNotes = funct }; +/** + * optional libs.common.v1.Gender gender = 9; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setGender = function(value) { + return jspb.Message.setField(this, 9, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.clearGender = function() { + return jspb.Message.setField(this, 9, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.hasGender = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 10; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 10)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this +*/ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 10) != null; +}; + + /** * repeated Task tasks = 4; * @return {!Array} @@ -6457,9 +6954,11 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.toObject = function(i var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), + notes: jspb.Message.getFieldWithDefault(msg, 5, ""), + gender: jspb.Message.getFieldWithDefault(msg, 8, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetPatientListResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.tasks_svc.v1.GetPatientListResponse.Bed.toObject(includeInstance, f), - notes: jspb.Message.getFieldWithDefault(msg, 5, ""), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.tasks_svc.v1.GetPatientListResponse.Task.toObject, includeInstance), consistency: jspb.Message.getFieldWithDefault(msg, 7, "") @@ -6507,6 +7006,19 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.deserializeBinaryFrom var value = /** @type {string} */ (reader.readString()); msg.setHumanReadableIdentifier(value); break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setNotes(value); + break; + case 8: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 9: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 3: var value = new proto.services.tasks_svc.v1.GetPatientListResponse.Room; reader.readMessage(value,proto.services.tasks_svc.v1.GetPatientListResponse.Room.deserializeBinaryFromReader); @@ -6517,10 +7029,6 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.deserializeBinaryFrom reader.readMessage(value,proto.services.tasks_svc.v1.GetPatientListResponse.Bed.deserializeBinaryFromReader); msg.setBed(value); break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setNotes(value); - break; case 6: var value = new proto.services.tasks_svc.v1.GetPatientListResponse.Task; reader.readMessage(value,proto.services.tasks_svc.v1.GetPatientListResponse.Task.deserializeBinaryFromReader); @@ -6573,6 +7081,28 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.serializeBinaryToWrit f ); } + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeEnum( + 8, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 9, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = message.getRoom(); if (f != null) { writer.writeMessage( @@ -6589,13 +7119,6 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.serializeBinaryToWrit proto.services.tasks_svc.v1.GetPatientListResponse.Bed.serializeBinaryToWriter ); } - f = message.getNotes(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } f = message.getTasksList(); if (f.length > 0) { writer.writeRepeatedMessage( @@ -6650,6 +7173,97 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setHumanRea }; +/** + * optional string notes = 5; + * @return {string} + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setNotes = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional libs.common.v1.Gender gender = 8; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setGender = function(value) { + return jspb.Message.setField(this, 8, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.clearGender = function() { + return jspb.Message.setField(this, 8, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.hasGender = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 9; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 9)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this +*/ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 9) != null; +}; + + /** * optional Room room = 3; * @return {?proto.services.tasks_svc.v1.GetPatientListResponse.Room} @@ -6724,24 +7338,6 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.hasBed = fu }; -/** - * optional string notes = 5; - * @return {string} - */ -proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getNotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this - */ -proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setNotes = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - /** * repeated Task tasks = 6; * @return {!Array} @@ -8518,6 +9114,8 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.toObject = function(includeInst id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), + gender: jspb.Message.getFieldWithDefault(msg, 5, 0), + dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), consistency: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -8567,6 +9165,15 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.deserializeBinaryFromReader = f var value = /** @type {string} */ (reader.readString()); msg.setNotes(value); break; + case 5: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; + case 6: + var value = new libs_common_v1_types_pb.Date; + reader.readMessage(value,libs_common_v1_types_pb.Date.deserializeBinaryFromReader); + msg.setDateOfBirth(value); + break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setConsistency(value); @@ -8621,6 +9228,21 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.serializeBinaryToWriter = funct f ); } + f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeEnum( + 5, + f + ); + } + f = message.getDateOfBirth(); + if (f != null) { + writer.writeMessage( + 6, + f, + libs_common_v1_types_pb.Date.serializeBinaryToWriter + ); + } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( @@ -8721,6 +9343,79 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.hasNotes = function() }; +/** + * optional libs.common.v1.Gender gender = 5; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.setGender = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.tasks_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.clearGender = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.hasGender = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional libs.common.v1.Date date_of_birth = 6; + * @return {?proto.libs.common.v1.Date} + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.getDateOfBirth = function() { + return /** @type{?proto.libs.common.v1.Date} */ ( + jspb.Message.getWrapperField(this, libs_common_v1_types_pb.Date, 6)); +}; + + +/** + * @param {?proto.libs.common.v1.Date|undefined} value + * @return {!proto.services.tasks_svc.v1.UpdatePatientRequest} returns this +*/ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.setDateOfBirth = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.tasks_svc.v1.UpdatePatientRequest} returns this + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.clearDateOfBirth = function() { + return this.setDateOfBirth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.hasDateOfBirth = function() { + return jspb.Message.getField(this, 6) != null; +}; + + /** * optional string consistency = 4; * @return {string} From 91790d35b97db8047da25064ae8d341560588142 Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Mon, 16 Dec 2024 20:35:17 +0100 Subject: [PATCH 05/10] wip --- libs/hwdb/helper.go | 14 ++ .../internal/property-value/api/grpc.go | 3 +- .../v1/get_property_values_by_subject_id.go | 4 +- .../internal/patient/aggregate/actions.go | 28 +++- .../internal/patient/aggregate/aggregate.go | 24 +++ .../patient/aggregate/aggregate_test.go | 142 +++++++++++++----- .../tasks-svc/internal/patient/api/grpc.go | 18 ++- .../patient/commands/v1/create_patient.go | 8 +- .../patient/commands/v1/update_patient.go | 18 ++- .../internal/patient/events/v1/events.go | 42 +++++- .../internal/patient/models/patient.go | 3 + .../patient_postgres_projection.go | 48 ++++++ .../v1/get_all_patients_with_details.go | 3 + .../v1/get_patient_assignment_by_ward.go | 1 + .../patient/queries/v1/get_patient_by_bed.go | 3 + .../v1/get_patient_with_details_by_id.go | 3 + .../queries/v1/get_patients_by_ward.go | 3 + .../migrations/000030_gender_dob.up.sql | 2 +- services/tasks-svc/repos/bed_repo/models.go | 2 +- services/tasks-svc/repos/patient_repo.sql | 2 + .../tasks-svc/repos/patient_repo/models.go | 2 +- .../repos/patient_repo/patient_repo.sql.go | 12 +- services/tasks-svc/repos/room_repo/models.go | 2 +- services/tasks-svc/repos/task_repo/models.go | 2 +- .../repos/task_template_repo/models.go | 2 +- services/tasks-svc/repos/ward_repo/models.go | 2 +- services/tasks-svc/schema.sql | 2 +- .../tasks-svc/stories/PatientCRUD_test.go | 12 ++ 28 files changed, 342 insertions(+), 65 deletions(-) diff --git a/libs/hwdb/helper.go b/libs/hwdb/helper.go index 722e9d919..a6a3884a1 100644 --- a/libs/hwdb/helper.go +++ b/libs/hwdb/helper.go @@ -44,6 +44,20 @@ func TimeToDate(src time.Time) pgtype.Date { return pgtype.Date{Time: src.UTC(), Valid: true} } +func DateToTime(date pgtype.Date) *time.Time { + if date.Valid { + return &date.Time + } + return nil +} + +func TimePtrToDate(src *time.Time) pgtype.Date { + if src == nil { + return pgtype.Date{} + } + return TimeToDate(*src) +} + func PbToTimestamp(src *timestamppb.Timestamp) pgtype.Timestamp { if src == nil { return pgtype.Timestamp{Valid: false} diff --git a/services/property-svc/internal/property-value/api/grpc.go b/services/property-svc/internal/property-value/api/grpc.go index 176bd8f80..24062154c 100644 --- a/services/property-svc/internal/property-value/api/grpc.go +++ b/services/property-svc/internal/property-value/api/grpc.go @@ -3,6 +3,7 @@ package api import ( "context" "fmt" + commonPb "gen/libs/common/v1" pb "gen/services/property_svc/v1" "hwes" "hwutil" @@ -188,7 +189,7 @@ func (s *PropertyValueGrpcService) GetAttachedPropertyValues( } case pnv.Value.DateValue != nil: res.Value = &pb.GetAttachedPropertyValuesResponse_Value_DateValue{ - DateValue: &pb.Date{ + DateValue: &commonPb.Date{ Date: timestamppb.New(*pnv.Value.DateValue), }, } diff --git a/services/property-svc/internal/property-value/queries/v1/get_property_values_by_subject_id.go b/services/property-svc/internal/property-value/queries/v1/get_property_values_by_subject_id.go index 5ba702ee6..c63281200 100644 --- a/services/property-svc/internal/property-value/queries/v1/get_property_values_by_subject_id.go +++ b/services/property-svc/internal/property-value/queries/v1/get_property_values_by_subject_id.go @@ -123,9 +123,7 @@ func NewGetRelevantPropertyValuesQueryHandler( func(dtV pgtype.Timestamp) time.Time { return dtV.Time }), - DateValue: hwutil.MapIf(row.DateValue.Valid, row.DateValue, func(dV pgtype.Date) time.Time { - return dV.Time - }), + DateValue: hwdb.DateToTime(row.DateValue), } } } diff --git a/services/tasks-svc/internal/patient/aggregate/actions.go b/services/tasks-svc/internal/patient/aggregate/actions.go index c452d76aa..e4f1d57eb 100644 --- a/services/tasks-svc/internal/patient/aggregate/actions.go +++ b/services/tasks-svc/internal/patient/aggregate/actions.go @@ -2,17 +2,25 @@ package aggregate import ( "context" + v1 "gen/libs/common/v1" + "time" patientEventsV1 "tasks-svc/internal/patient/events/v1" "github.com/google/uuid" ) -func (a *PatientAggregate) CreatePatient(ctx context.Context, humanReadableIdentifier string, notes string) error { +func (a *PatientAggregate) CreatePatient( + ctx context.Context, + humanReadableIdentifier string, + notes string, + gender v1.Gender, + dateOfBirth *time.Time, +) error { // The "Patient" entity is our main entity in this aggregate. // Therefore, we are using the same ID id := a.GetID() - event, err := patientEventsV1.NewPatientCreatedEvent(ctx, a, id, humanReadableIdentifier, notes) + event, err := patientEventsV1.NewPatientCreatedEvent(ctx, a, id, humanReadableIdentifier, notes, gender, dateOfBirth) if err != nil { return err } @@ -59,6 +67,22 @@ func (a *PatientAggregate) UpdateNotes(ctx context.Context, newNotes string) err return a.Apply(event) } +func (a *PatientAggregate) UpdateGender(ctx context.Context, gender v1.Gender) error { + event, err := patientEventsV1.NewGenderUpdatedEvent(ctx, a, gender) + if err != nil { + return err + } + return a.Apply(event) +} + +func (a *PatientAggregate) UpdateDateOfBirth(ctx context.Context, dateOfBirth time.Time) error { + event, err := patientEventsV1.NewDateOfBirthUpdatedEvent(ctx, a, dateOfBirth) + if err != nil { + return err + } + return a.Apply(event) +} + func (a *PatientAggregate) ReadmitPatient(ctx context.Context) error { event, err := patientEventsV1.NewPatientReadmittedEvent(ctx, a) if err != nil { diff --git a/services/tasks-svc/internal/patient/aggregate/aggregate.go b/services/tasks-svc/internal/patient/aggregate/aggregate.go index 554cff76a..34e047fc6 100644 --- a/services/tasks-svc/internal/patient/aggregate/aggregate.go +++ b/services/tasks-svc/internal/patient/aggregate/aggregate.go @@ -39,6 +39,8 @@ func (a *PatientAggregate) initEventListeners() { a.RegisterEventListener(patientEventsV1.BedUnsassigned, a.onBedUnassigned) a.RegisterEventListener(patientEventsV1.PatientDischarged, a.onPatientDischarged) a.RegisterEventListener(patientEventsV1.NotesUpdated, a.onNotesUpdated) + a.RegisterEventListener(patientEventsV1.GenderUpdated, a.onGenderUpdated) + a.RegisterEventListener(patientEventsV1.DateOfBirthUpdated, a.onDateOfBirthUpdated) a.RegisterEventListener(patientEventsV1.HumanReadableIdentifierUpdated, a.onHumanReadableIdentifierUpdated) a.RegisterEventListener(patientEventsV1.PatientReadmitted, a.onPatientReadmitted) a.RegisterEventListener(patientEventsV1.PatientDeleted, a.onPatientDeleted) @@ -55,6 +57,8 @@ func (a *PatientAggregate) onPatientCreated(evt hwes.Event) error { a.Patient.HumanReadableIdentifier = payload.HumanReadableIdentifier a.Patient.CreatedAt = evt.Timestamp a.Patient.UpdatedAt = evt.Timestamp + a.Patient.Gender = payload.Gender + a.Patient.DateOfBirth = payload.DateOfBirth return nil } @@ -99,6 +103,26 @@ func (a *PatientAggregate) onNotesUpdated(evt hwes.Event) error { return nil } +func (a *PatientAggregate) onGenderUpdated(evt hwes.Event) error { + var payload patientEventsV1.GenderUpdatedEvent + if err := evt.GetJsonData(&payload); err != nil { + return err + } + + a.Patient.Gender = payload.Gender + return nil +} + +func (a *PatientAggregate) onDateOfBirthUpdated(evt hwes.Event) error { + var payload patientEventsV1.DateOfBirthUpdatedEvent + if err := evt.GetJsonData(&payload); err != nil { + return err + } + + a.Patient.DateOfBirth = &payload.DateOfBirth + return nil +} + func (a *PatientAggregate) onHumanReadableIdentifierUpdated(evt hwes.Event) error { var payload patientEventsV1.HumanReadableIdentifierUpdatedEvent if err := evt.GetJsonData(&payload); err != nil { diff --git a/services/tasks-svc/internal/patient/aggregate/aggregate_test.go b/services/tasks-svc/internal/patient/aggregate/aggregate_test.go index 1a7067264..2d7b7f630 100644 --- a/services/tasks-svc/internal/patient/aggregate/aggregate_test.go +++ b/services/tasks-svc/internal/patient/aggregate/aggregate_test.go @@ -3,8 +3,12 @@ package aggregate_test import ( "common/auth" "context" + v1 "gen/libs/common/v1" "hwes" "testing" + "time" + + "github.com/stretchr/testify/require" "github.com/google/uuid" @@ -34,6 +38,8 @@ func TestPatientAggregate_CreatePatient(t *testing.T) { patientHumanReadableIdentifier := "tester" patientNotes := "test-notes" + gender := v1.Gender_GENDER_DIVERSE + dateOfBirth := time.Now().UTC() patientAggregate := aggregate.NewPatientAggregate(patientID) @@ -44,17 +50,15 @@ func TestPatientAggregate_CreatePatient(t *testing.T) { patientID, patientHumanReadableIdentifier, patientNotes, + gender, + &dateOfBirth, ) }) - if patientAggregate.Patient.HumanReadableIdentifier != patientHumanReadableIdentifier { - t.Errorf("Patient humanReadableIdentifier: expected '%s' got '%s'", - patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) - } - - if patientAggregate.Patient.Notes != patientNotes { - t.Errorf("Patient notes: expected '%s' got '%s'", patientNotes, patientAggregate.Patient.Notes) - } + require.Equal(t, patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) + require.Equal(t, patientNotes, patientAggregate.Patient.Notes) + require.Equal(t, gender, patientAggregate.Patient.Gender) + require.Equal(t, dateOfBirth, *patientAggregate.Patient.DateOfBirth) } func TestPatientAggregate_UpdateNotes(t *testing.T) { @@ -77,20 +81,18 @@ func TestPatientAggregate_UpdateNotes(t *testing.T) { patientID, patientHumanReadableIdentifier, initialPatientNotes, + v1.Gender_GENDER_UNSPECIFIED, + nil, ) }) - if patientAggregate.Patient.Notes != initialPatientNotes { - t.Errorf("Patient Notes: expected '%s' got '%s'", initialPatientNotes, patientAggregate.Patient.Notes) - } + require.Equal(t, initialPatientNotes, patientAggregate.Patient.Notes) MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { return patientEventsV1.NewNotesUpdatedEvent(ctx, patientAggregate, updatedPatientNotes) }) - if patientAggregate.Patient.Notes != updatedPatientNotes { - t.Errorf("Patient Notes: expected '%s' got '%s'", updatedPatientNotes, patientAggregate.Patient.Notes) - } + require.Equal(t, updatedPatientNotes, patientAggregate.Patient.Notes) } func TestPatientAggregate_UpdateHumanReadableIdentifier(t *testing.T) { @@ -112,13 +114,12 @@ func TestPatientAggregate_UpdateHumanReadableIdentifier(t *testing.T) { patientID, initialPatientHumanReadableIdentifier, "", + v1.Gender_GENDER_UNSPECIFIED, + nil, ) }) - if patientAggregate.Patient.HumanReadableIdentifier != initialPatientHumanReadableIdentifier { - t.Errorf("Patient Notes: expected '%s' got '%s'", - initialPatientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) - } + require.Equal(t, initialPatientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { return patientEventsV1.NewHumanReadableIdentifierUpdatedEvent( @@ -127,11 +128,73 @@ func TestPatientAggregate_UpdateHumanReadableIdentifier(t *testing.T) { updatedPatientHumanReadableIdentifier, ) }) + require.Equal(t, updatedPatientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) +} - if patientAggregate.Patient.HumanReadableIdentifier != updatedPatientHumanReadableIdentifier { - t.Errorf("Patient Notes: expected '%s' got '%s'", - updatedPatientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) - } +func TestPatientAggregate_UpdateGender(t *testing.T) { + ctx := context.Background() + ctx = auth.ContextWithUserID(ctx, uuid.New()) + ctx = auth.ContextWithOrganizationID(ctx, uuid.New()) + + patientID := uuid.New() + + patientAggregate := aggregate.NewPatientAggregate(patientID) + + MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { + return patientEventsV1.NewPatientCreatedEvent( + ctx, + patientAggregate, + patientID, + t.Name(), + "", + v1.Gender_GENDER_UNSPECIFIED, + nil, + ) + }) + + require.Equal(t, v1.Gender_GENDER_UNSPECIFIED, patientAggregate.Patient.Gender) + + MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { + return patientEventsV1.NewGenderUpdatedEvent( + ctx, + patientAggregate, + v1.Gender_GENDER_DIVERSE, + ) + }) + require.Equal(t, v1.Gender_GENDER_DIVERSE, patientAggregate.Patient.Gender) +} + +func TestPatientAggregate_UpdateDateOfBirth(t *testing.T) { + ctx := context.Background() + ctx = auth.ContextWithUserID(ctx, uuid.New()) + ctx = auth.ContextWithOrganizationID(ctx, uuid.New()) + + patientID := uuid.New() + + patientAggregate := aggregate.NewPatientAggregate(patientID) + + MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { + return patientEventsV1.NewPatientCreatedEvent( + ctx, + patientAggregate, + patientID, + t.Name(), + "", + v1.Gender_GENDER_UNSPECIFIED, + nil, + ) + }) + + newDoB := time.Now().UTC() + + MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { + return patientEventsV1.NewDateOfBirthUpdatedEvent( + ctx, + patientAggregate, + newDoB, + ) + }) + require.Equal(t, newDoB, *patientAggregate.Patient.DateOfBirth) } func TestPatientAggregate_DischargeReadmitPatient(t *testing.T) { @@ -150,13 +213,12 @@ func TestPatientAggregate_DischargeReadmitPatient(t *testing.T) { patientID, patientHumanReadableIdentifier, "", + v1.Gender_GENDER_UNSPECIFIED, + nil, ) }) - if patientAggregate.Patient.HumanReadableIdentifier != patientHumanReadableIdentifier { - t.Errorf("Patient humanReadableIdentifier: expected '%s' got '%s'", - patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) - } + require.Equal(t, patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { return patientEventsV1.NewPatientDischargedEvent(ctx, patientAggregate) @@ -193,31 +255,24 @@ func TestPatientAggregate_AssignUnassignBed(t *testing.T) { patientID, patientHumanReadableIdentifier, "", + v1.Gender_GENDER_UNSPECIFIED, + nil, ) }) - if patientAggregate.Patient.HumanReadableIdentifier != patientHumanReadableIdentifier { - t.Errorf("Patient humanReadableIdentifier: expected '%s' got '%s'", - patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) - } + require.Equal(t, patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { return patientEventsV1.NewBedAssignedEvent(ctx, patientAggregate, newBedID) }) - if patientAggregate.Patient.BedID.UUID != newBedID { - t.Errorf("Patient BedID: expected '%s' got '%s'", - newBedID.String(), patientAggregate.Patient.BedID.UUID.String()) - } + require.Equal(t, newBedID, patientAggregate.Patient.BedID.UUID) MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { return patientEventsV1.NewBedUnassignedEvent(ctx, patientAggregate) }) - if patientAggregate.Patient.BedID.UUID != uuid.Nil { - t.Errorf("Patient BedID: expected '%s' got '%s'", - uuid.Nil.String(), patientAggregate.Patient.BedID.UUID.String()) - } + require.Equal(t, uuid.Nil, patientAggregate.Patient.BedID.UUID) } func TestPatientAggregate_DeletePatient(t *testing.T) { @@ -230,9 +285,14 @@ func TestPatientAggregate_DeletePatient(t *testing.T) { patientAggregate := aggregate.NewPatientAggregate(patientID) - if err := patientAggregate.CreatePatient(ctx, humanRI, notes); err != nil { - t.Error(err) - } + err := patientAggregate.CreatePatient( + ctx, + humanRI, + notes, + v1.Gender_GENDER_UNSPECIFIED, + nil, + ) + require.NoError(t, err) if err := patientAggregate.DeletePatient(ctx); err != nil { t.Error(err) diff --git a/services/tasks-svc/internal/patient/api/grpc.go b/services/tasks-svc/internal/patient/api/grpc.go index 37519cf7a..f03c1a5a3 100644 --- a/services/tasks-svc/internal/patient/api/grpc.go +++ b/services/tasks-svc/internal/patient/api/grpc.go @@ -11,6 +11,7 @@ import ( "hwdb/locale" "hwes" "hwutil" + "time" "github.com/google/uuid" zlog "github.com/rs/zerolog/log" @@ -54,8 +55,14 @@ func (s *PatientGrpcService) CreatePatient( log := zlog.Ctx(ctx) patientID := uuid.New() + var dateOfBirth *time.Time + if dob := req.GetDateOfBirth(); dob != nil { + asTime := dob.GetDate().AsTime() + dateOfBirth = &asTime + } + consistency, err := s.handlers.Commands.V1.CreatePatient( - ctx, patientID, req.GetHumanReadableIdentifier(), req.Notes) + ctx, patientID, req.GetHumanReadableIdentifier(), req.Notes, req.GetGender(), dateOfBirth) if err != nil { return nil, err } @@ -455,7 +462,14 @@ func (s *PatientGrpcService) UpdatePatient( return nil, err } - consistency, err := s.handlers.Commands.V1.UpdatePatient(ctx, patientID, req.HumanReadableIdentifier, req.Notes) + consistency, err := s.handlers.Commands.V1.UpdatePatient( + ctx, + patientID, + req.HumanReadableIdentifier, + req.Notes, + req.Gender, + req.DateOfBirth, + ) if err != nil { return nil, err } diff --git a/services/tasks-svc/internal/patient/commands/v1/create_patient.go b/services/tasks-svc/internal/patient/commands/v1/create_patient.go index 41d4013ca..4174cfdd8 100644 --- a/services/tasks-svc/internal/patient/commands/v1/create_patient.go +++ b/services/tasks-svc/internal/patient/commands/v1/create_patient.go @@ -4,9 +4,11 @@ import ( "common" "context" "errors" + v1 "gen/libs/common/v1" "hwauthz" "hwauthz/commonPerm" "hwes" + "time" "tasks-svc/internal/patient/perm" @@ -20,6 +22,8 @@ type CreatePatientCommandHandler func( patientID uuid.UUID, humanReadableIdentifier string, notes *string, + gender v1.Gender, + dateOfBirth *time.Time, ) (common.ConsistencyToken, error) func NewCreatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) CreatePatientCommandHandler { @@ -28,6 +32,8 @@ func NewCreatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) patientID uuid.UUID, humanReadableIdentifier string, notes *string, + gender v1.Gender, + dateOfBirth *time.Time, ) (common.ConsistencyToken, error) { a := aggregate.NewPatientAggregate(patientID) @@ -53,7 +59,7 @@ func NewCreatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) finalNotes = *notes } - if err := a.CreatePatient(ctx, humanReadableIdentifier, finalNotes); err != nil { + if err := a.CreatePatient(ctx, humanReadableIdentifier, finalNotes, gender, dateOfBirth); err != nil { return 0, err } diff --git a/services/tasks-svc/internal/patient/commands/v1/update_patient.go b/services/tasks-svc/internal/patient/commands/v1/update_patient.go index 85776e9d8..8006a7118 100644 --- a/services/tasks-svc/internal/patient/commands/v1/update_patient.go +++ b/services/tasks-svc/internal/patient/commands/v1/update_patient.go @@ -3,10 +3,10 @@ package v1 import ( "common" "context" + v1 "gen/libs/common/v1" "hwauthz" "hwauthz/commonPerm" "hwes" - "tasks-svc/internal/patient/perm" "github.com/google/uuid" @@ -19,6 +19,8 @@ type UpdatePatientCommandHandler func( patientID uuid.UUID, humanReadableIdentifier *string, notes *string, + gender *v1.Gender, + dateOfBirth *v1.Date, ) (common.ConsistencyToken, error) func NewUpdatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) UpdatePatientCommandHandler { @@ -27,6 +29,8 @@ func NewUpdatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) patientID uuid.UUID, humanReadableIdentifier *string, notes *string, + gender *v1.Gender, + dateOfBirth *v1.Date, ) (common.ConsistencyToken, error) { user := commonPerm.UserFromCtx(ctx) check := hwauthz.NewPermissionCheck(user, perm.PatientCanUserUpdate, perm.Patient(patientID)) @@ -51,6 +55,18 @@ func NewUpdatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) } } + if gender != nil { + if err := a.UpdateGender(ctx, *gender); err != nil { + return 0, err + } + } + + if dateOfBirth != nil { + if err := a.UpdateDateOfBirth(ctx, dateOfBirth.Date.AsTime()); err != nil { + return 0, err + } + } + return as.Save(ctx, a) } } diff --git a/services/tasks-svc/internal/patient/events/v1/events.go b/services/tasks-svc/internal/patient/events/v1/events.go index 7a4d24ce0..9cd0e62d2 100644 --- a/services/tasks-svc/internal/patient/events/v1/events.go +++ b/services/tasks-svc/internal/patient/events/v1/events.go @@ -2,7 +2,9 @@ package v1 import ( "context" + v1 "gen/libs/common/v1" "hwes" + "time" "github.com/google/uuid" ) @@ -11,6 +13,8 @@ const ( PatientCreated = "PATIENT_CREATED_v1" HumanReadableIdentifierUpdated = "HUMAN_READABLE_IDENTIFIER_UPDATED_v1" NotesUpdated = "NOTES_UPDATED_v1" + GenderUpdated = "GENDER_UPDATED_v1" + DateOfBirthUpdated = "DATE_OF_BIRTH_UPDATED_v1" BedAssigned = "BED_ASSIGNED_v1" BedUnsassigned = "BED_UNASSIGNED_v1" PatientDischarged = "PATIENT_DISCHARGED_v1" @@ -19,9 +23,11 @@ const ( ) type PatientCreatedEvent struct { - ID string `json:"id"` - HumanReadableIdentifier string `json:"human_readable_identifier"` - Notes string `json:"notes"` + ID string `json:"id"` + HumanReadableIdentifier string `json:"human_readable_identifier"` + Notes string `json:"notes"` + Gender v1.Gender `json:"gender"` + DateOfBirth *time.Time `json:"date_of_birth"` } type HumanReadableIdentifierUpdatedEvent struct { @@ -34,6 +40,16 @@ type NotesUpdatedEvent struct { Notes string `json:"notes"` } +type GenderUpdatedEvent struct { + PatientID string `json:"patient_id"` + Gender v1.Gender `json:"gender"` +} + +type DateOfBirthUpdatedEvent struct { + PatientID string `json:"patient_id"` + DateOfBirth time.Time `json:"date_of_birth"` +} + type BedAssignedEvent struct { BedID string `json:"bed_id"` } @@ -48,11 +64,15 @@ func NewPatientCreatedEvent( id uuid.UUID, humanReadableIdentifier string, notes string, + gender v1.Gender, + dateOfBirth *time.Time, ) (hwes.Event, error) { payload := PatientCreatedEvent{ ID: id.String(), HumanReadableIdentifier: humanReadableIdentifier, Notes: notes, + Gender: gender, + DateOfBirth: dateOfBirth, } return hwes.NewEvent(a, PatientCreated, hwes.WithContext(ctx), hwes.WithData(payload)) } @@ -76,6 +96,22 @@ func NewNotesUpdatedEvent(ctx context.Context, a hwes.Aggregate, notes string) ( return hwes.NewEvent(a, NotesUpdated, hwes.WithContext(ctx), hwes.WithData(payload)) } +func NewGenderUpdatedEvent(ctx context.Context, a hwes.Aggregate, gender v1.Gender) (hwes.Event, error) { + payload := GenderUpdatedEvent{ + PatientID: a.GetID().String(), + Gender: gender, + } + return hwes.NewEvent(a, GenderUpdated, hwes.WithContext(ctx), hwes.WithData(payload)) +} + +func NewDateOfBirthUpdatedEvent(ctx context.Context, a hwes.Aggregate, dateOfBirth time.Time) (hwes.Event, error) { + payload := DateOfBirthUpdatedEvent{ + PatientID: a.GetID().String(), + DateOfBirth: dateOfBirth, + } + return hwes.NewEvent(a, DateOfBirthUpdated, hwes.WithContext(ctx), hwes.WithData(payload)) +} + func NewBedAssignedEvent(ctx context.Context, a hwes.Aggregate, bedID uuid.UUID) (hwes.Event, error) { payload := BedAssignedEvent{ BedID: bedID.String(), diff --git a/services/tasks-svc/internal/patient/models/patient.go b/services/tasks-svc/internal/patient/models/patient.go index c5f570309..1d03d12ef 100644 --- a/services/tasks-svc/internal/patient/models/patient.go +++ b/services/tasks-svc/internal/patient/models/patient.go @@ -1,6 +1,7 @@ package models import ( + v1 "gen/libs/common/v1" "time" "github.com/google/uuid" @@ -15,6 +16,8 @@ type Patient struct { IsDischarged bool CreatedAt time.Time UpdatedAt time.Time + Gender v1.Gender + DateOfBirth *time.Time } type PatientWithConsistency struct { diff --git a/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go b/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go index efa4afa8e..e1f72ef16 100644 --- a/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go +++ b/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go @@ -42,6 +42,8 @@ func (p *Projection) initEventListeners() { p.RegisterEventListener(patientEventsV1.BedUnsassigned, p.onBedUnassigned) p.RegisterEventListener(patientEventsV1.PatientDischarged, p.onPatientDischarged) p.RegisterEventListener(patientEventsV1.NotesUpdated, p.onNotesUpdated) + p.RegisterEventListener(patientEventsV1.GenderUpdated, p.onGenderUpdated) + p.RegisterEventListener(patientEventsV1.DateOfBirthUpdated, p.onDateOfBirthUpdated) p.RegisterEventListener(patientEventsV1.HumanReadableIdentifierUpdated, p.onHumanReadableIdentifierUpdated) p.RegisterEventListener(patientEventsV1.PatientReadmitted, p.onPatientReadmitted) p.RegisterEventListener(patientEventsV1.PatientDeleted, p.onPatientDeleted) @@ -71,6 +73,8 @@ func (a *Projection) onPatientCreated(ctx context.Context, evt hwes.Event) (erro ID: patientID, HumanReadableIdentifier: payload.HumanReadableIdentifier, Notes: payload.Notes, + Gender: int32(payload.Gender), + DateOfBirth: hwdb.TimePtrToDate(payload.DateOfBirth), CreatedAt: hwdb.TimeToTimestamp(evt.Timestamp), UpdatedAt: hwdb.TimeToTimestamp(evt.Timestamp), Consistency: int64(evt.GetVersion()), //nolint:gosec @@ -160,6 +164,50 @@ func (a *Projection) onNotesUpdated(ctx context.Context, evt hwes.Event) (error, return nil, nil } +func (a *Projection) onGenderUpdated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { + log := zlog.Ctx(ctx) + + var payload patientEventsV1.GenderUpdatedEvent + if err := evt.GetJsonData(&payload); err != nil { + log.Error().Err(err).Msg("unmarshal failed") + return err, hwutil.PtrTo(esdb.NackActionPark) + } + + err := a.patientRepo.UpdatePatient(ctx, patient_repo.UpdatePatientParams{ + ID: evt.AggregateID, + Gender: hwutil.PtrTo(int32(payload.Gender)), + UpdatedAt: hwdb.TimeToTimestamp(evt.Timestamp), + Consistency: int64(evt.GetVersion()), //nolint:gosec + }) + if err := hwdb.Error(ctx, err); err != nil { + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + return nil, nil +} + +func (a *Projection) onDateOfBirthUpdated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { + log := zlog.Ctx(ctx) + + var payload patientEventsV1.DateOfBirthUpdatedEvent + if err := evt.GetJsonData(&payload); err != nil { + log.Error().Err(err).Msg("unmarshal failed") + return err, hwutil.PtrTo(esdb.NackActionPark) + } + + err := a.patientRepo.UpdatePatient(ctx, patient_repo.UpdatePatientParams{ + ID: evt.AggregateID, + DateOfBirth: hwdb.TimeToDate(payload.DateOfBirth), + UpdatedAt: hwdb.TimeToTimestamp(evt.Timestamp), + Consistency: int64(evt.GetVersion()), //nolint:gosec + }) + if err := hwdb.Error(ctx, err); err != nil { + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + return nil, nil +} + func (a *Projection) onHumanReadableIdentifierUpdated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { log := zlog.Ctx(ctx) diff --git a/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go b/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go index ca66a2f14..f8793c9ba 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go @@ -4,6 +4,7 @@ import ( "common" "common/auth" "context" + v1 "gen/libs/common/v1" pb "gen/services/tasks_svc/v1" "hwauthz" "hwauthz/commonPerm" @@ -74,6 +75,8 @@ func NewGetAllPatientsWithDetailsQueryHandler(authz hwauthz.AuthZ) GetAllPatient IsDischarged: row.Patient.IsDischarged, CreatedAt: row.Patient.CreatedAt.Time, UpdatedAt: row.Patient.UpdatedAt.Time, + Gender: v1.Gender(row.Patient.Gender), + DateOfBirth: hwdb.DateToTime(row.Patient.DateOfBirth), }, Consistency: common.ConsistencyToken(row.Patient.Consistency).String(), //nolint:gosec }, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go index bbdc53a1c..2eacdbad1 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go @@ -62,6 +62,7 @@ func NewGetPatientAssignmentByWardQueryHandler(authz hwauthz.AuthZ) GetPatientAs Patient: models.Patient{ ID: bedRow.PatientID.UUID, HumanReadableIdentifier: *bedRow.PatientHumanReadableIdentifier, + // TODO }, Consistency: common.ConsistencyToken(roomRow.RoomConsistency).String(), //nolint:gosec } diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go index d0b2599ee..95fc6ba82 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go @@ -3,6 +3,7 @@ package v1 import ( "common" "context" + v1 "gen/libs/common/v1" "hwauthz" "hwauthz/commonPerm" "hwdb" @@ -57,6 +58,8 @@ func NewGetPatientByBedQueryHandler(authz hwauthz.AuthZ) GetPatientByBedQueryHan IsDischarged: patient.IsDischarged, CreatedAt: patient.CreatedAt.Time, UpdatedAt: patient.UpdatedAt.Time, + Gender: v1.Gender(patient.Gender), + DateOfBirth: hwdb.DateToTime(patient.DateOfBirth), }, Consistency: common.ConsistencyToken(patient.Consistency).String(), //nolint:gosec }, nil diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go index 63919654f..3a26dfc77 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go @@ -3,6 +3,7 @@ package v1 import ( "common" "context" + v1 "gen/libs/common/v1" "hwauthz" "hwauthz/commonPerm" "hwdb" @@ -76,6 +77,8 @@ func NewGetPatientWithDetailsByIDQueryHandler( IsDischarged: patientRes.IsDischarged, CreatedAt: patientRes.CreatedAt.Time, UpdatedAt: patientRes.UpdatedAt.Time, + Gender: v1.Gender(patientRes.Gender), + DateOfBirth: hwdb.DateToTime(patientRes.DateOfBirth), }, Consistency: common.ConsistencyToken(patientRes.Consistency).String(), //nolint:gosec }, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go b/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go index 969b05180..5d82704e1 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go @@ -3,6 +3,7 @@ package v1 import ( "common" "context" + v1 "gen/libs/common/v1" "hwauthz" "hwauthz/commonPerm" "hwdb" @@ -56,6 +57,8 @@ func NewGetPatientsByWardQueryHandler(authz hwauthz.AuthZ) GetPatientsByWardQuer IsDischarged: patient.IsDischarged, CreatedAt: patient.CreatedAt.Time, UpdatedAt: patient.UpdatedAt.Time, + Gender: v1.Gender(patient.Gender), + DateOfBirth: hwdb.DateToTime(patient.DateOfBirth), }, Consistency: common.ConsistencyToken(patient.Consistency).String(), //nolint:gosec } diff --git a/services/tasks-svc/migrations/000030_gender_dob.up.sql b/services/tasks-svc/migrations/000030_gender_dob.up.sql index 94f38b029..577e525a9 100644 --- a/services/tasks-svc/migrations/000030_gender_dob.up.sql +++ b/services/tasks-svc/migrations/000030_gender_dob.up.sql @@ -1,2 +1,2 @@ -ALTER TABLE patients ADD COLUMN IF NOT EXISTS gender integer; +ALTER TABLE patients ADD COLUMN IF NOT EXISTS gender integer NOT NULL DEFAULT 0; ALTER TABLE patients ADD COLUMN IF NOT EXISTS date_of_birth date; diff --git a/services/tasks-svc/repos/bed_repo/models.go b/services/tasks-svc/repos/bed_repo/models.go index 0019994b6..09ec8c18f 100644 --- a/services/tasks-svc/repos/bed_repo/models.go +++ b/services/tasks-svc/repos/bed_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/patient_repo.sql b/services/tasks-svc/repos/patient_repo.sql index 8278d1438..57d0549b8 100644 --- a/services/tasks-svc/repos/patient_repo.sql +++ b/services/tasks-svc/repos/patient_repo.sql @@ -9,6 +9,8 @@ SET human_readable_identifier = coalesce(sqlc.narg('human_readable_identfier'), notes = coalesce(sqlc.narg('notes'), notes), updated_at = coalesce(sqlc.narg('updated_at'), updated_at), is_discharged = coalesce(sqlc.narg('is_discharged'), is_discharged), + gender = coalesce(sqlc.narg('gender'), gender), + date_of_birth = coalesce(sqlc.narg('date_of_birth'), date_of_birth), consistency = @consistency WHERE id = $1; diff --git a/services/tasks-svc/repos/patient_repo/models.go b/services/tasks-svc/repos/patient_repo/models.go index 07062369d..2a19b7b9b 100644 --- a/services/tasks-svc/repos/patient_repo/models.go +++ b/services/tasks-svc/repos/patient_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/patient_repo/patient_repo.sql.go b/services/tasks-svc/repos/patient_repo/patient_repo.sql.go index 90292565e..39b8dce48 100644 --- a/services/tasks-svc/repos/patient_repo/patient_repo.sql.go +++ b/services/tasks-svc/repos/patient_repo/patient_repo.sql.go @@ -22,7 +22,7 @@ type CreatePatientParams struct { ID uuid.UUID HumanReadableIdentifier string Notes string - Gender *int32 + Gender int32 DateOfBirth pgtype.Date CreatedAt pgtype.Timestamp UpdatedAt pgtype.Timestamp @@ -204,7 +204,7 @@ type GetPatientWithBedAndRoomRow struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date BedName *string BedConsistency *int64 @@ -286,7 +286,9 @@ SET human_readable_identifier = coalesce($2, human_readable_identifier), notes = coalesce($3, notes), updated_at = coalesce($4, updated_at), is_discharged = coalesce($5, is_discharged), - consistency = $6 + gender = coalesce($6, gender), + date_of_birth = coalesce($7, date_of_birth), + consistency = $8 WHERE id = $1 ` @@ -296,6 +298,8 @@ type UpdatePatientParams struct { Notes *string UpdatedAt pgtype.Timestamp IsDischarged *bool + Gender *int32 + DateOfBirth pgtype.Date Consistency int64 } @@ -306,6 +310,8 @@ func (q *Queries) UpdatePatient(ctx context.Context, arg UpdatePatientParams) er arg.Notes, arg.UpdatedAt, arg.IsDischarged, + arg.Gender, + arg.DateOfBirth, arg.Consistency, ) return err diff --git a/services/tasks-svc/repos/room_repo/models.go b/services/tasks-svc/repos/room_repo/models.go index 7ce726d1c..a77aa056d 100644 --- a/services/tasks-svc/repos/room_repo/models.go +++ b/services/tasks-svc/repos/room_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/task_repo/models.go b/services/tasks-svc/repos/task_repo/models.go index 81e1133ed..3375ea9cc 100644 --- a/services/tasks-svc/repos/task_repo/models.go +++ b/services/tasks-svc/repos/task_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/task_template_repo/models.go b/services/tasks-svc/repos/task_template_repo/models.go index 1043d971e..041f65681 100644 --- a/services/tasks-svc/repos/task_template_repo/models.go +++ b/services/tasks-svc/repos/task_template_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/ward_repo/models.go b/services/tasks-svc/repos/ward_repo/models.go index 815bc5284..64ef84b9c 100644 --- a/services/tasks-svc/repos/ward_repo/models.go +++ b/services/tasks-svc/repos/ward_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender *int32 + Gender int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/schema.sql b/services/tasks-svc/schema.sql index 984819d6a..60e969fa7 100644 --- a/services/tasks-svc/schema.sql +++ b/services/tasks-svc/schema.sql @@ -60,7 +60,7 @@ CREATE TABLE public.patients ( is_discharged boolean DEFAULT false NOT NULL, consistency bigint DEFAULT 0 NOT NULL, organization_id uuid NOT NULL, - gender integer, + gender integer DEFAULT 0 NOT NULL, date_of_birth date ); diff --git a/services/tasks-svc/stories/PatientCRUD_test.go b/services/tasks-svc/stories/PatientCRUD_test.go index 88cba18c4..610b514dc 100644 --- a/services/tasks-svc/stories/PatientCRUD_test.go +++ b/services/tasks-svc/stories/PatientCRUD_test.go @@ -2,7 +2,9 @@ package stories import ( "context" + v1 "gen/libs/common/v1" pb "gen/services/tasks_svc/v1" + "google.golang.org/protobuf/types/known/timestamppb" "hwauthz" "hwauthz/commonPerm" "hwauthz/spicedb" @@ -30,6 +32,8 @@ func TestCreateUpdateGetPatient(t *testing.T) { createReq := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), + Gender: nil, + DateOfBirth: nil, } createRes, err := patientClient.CreatePatient(ctx, createReq) require.NoError(t, err, "could not create patient") @@ -48,14 +52,20 @@ func TestCreateUpdateGetPatient(t *testing.T) { assert.Equal(t, createReq.GetHumanReadableIdentifier(), getPatientRes.GetHumanReadableIdentifier()) assert.Equal(t, createReq.GetNotes(), getPatientRes.GetNotes()) assert.Equal(t, createRes.GetConsistency(), getPatientRes.GetConsistency()) + assert.Equal(t, v1.Gender_GENDER_UNSPECIFIED, getPatientRes.GetGender()) + assert.Equal(t, nil, getPatientRes.DateOfBirth) // // update patient // + dateOfBirth := time.Now().UTC().Round(time.Hour * 24) updateReq := &pb.UpdatePatientRequest{ Id: patientId, HumanReadableIdentifier: hwutil.PtrTo(t.Name() + " patient 1"), + Notes: hwutil.PtrTo(t.Name() + " Notes"), + Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + DateOfBirth: &v1.Date{Date: timestamppb.New(dateOfBirth)}, Consistency: &getPatientRes.Consistency, } updateRes, err := patientClient.UpdatePatient(ctx, updateReq) @@ -72,6 +82,8 @@ func TestCreateUpdateGetPatient(t *testing.T) { assert.Equal(t, updateReq.GetHumanReadableIdentifier(), getPatientRes.GetHumanReadableIdentifier()) assert.Equal(t, updateRes.GetConsistency(), getPatientRes.GetConsistency()) + assert.Equal(t, updateReq.GetGender(), getPatientRes.GetGender()) + assert.Equal(t, updateReq.GetDateOfBirth().Date.AsTime(), getPatientRes.GetDateOfBirth().Date.AsTime()) // // discharge patient From d361722b715b6806a4eef04502aa5433eccaad52 Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Thu, 2 Jan 2025 15:32:57 +0100 Subject: [PATCH 06/10] wip --- .../tasks_svc/v1/patient_svc.pbjson.dart | 149 ++++---- .../services/tasks_svc/v1/patient_svc.pb.go | 337 +++++++++--------- .../services/tasks_svc/v1/patient_svc_pb.d.ts | 45 +-- .../services/tasks_svc/v1/patient_svc_pb.js | 120 +------ libs/hwutil/types.go | 7 + proto/services/tasks_svc/v1/patient_svc.proto | 10 +- .../tasks-svc/internal/patient/api/grpc.go | 46 ++- .../tasks-svc/stories/PatientCRUD_test.go | 69 ++++ 8 files changed, 370 insertions(+), 413 deletions(-) diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart index 5952ecbc4..4c07ace69 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart @@ -70,15 +70,14 @@ const GetPatientResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 10, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 11, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, - {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Room', '9': 2, '10': 'room', '17': true}, - {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Bed', '9': 3, '10': 'bed', '17': true}, + {'1': 'gender', '3': 10, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'date_of_birth', '3': 11, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, + {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Room', '9': 1, '10': 'room', '17': true}, + {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Bed', '9': 2, '10': 'bed', '17': true}, {'1': 'consistency', '3': 9, '4': 1, '5': 9, '10': 'consistency'}, ], '3': [GetPatientResponse_Room$json, GetPatientResponse_Bed$json], '8': [ - {'1': '_gender'}, {'1': '_date_of_birth'}, {'1': '_room'}, {'1': '_bed'}, @@ -110,16 +109,16 @@ const GetPatientResponse_Bed$json = { final $typed_data.Uint8List getPatientResponseDescriptor = $convert.base64Decode( 'ChJHZXRQYXRpZW50UmVzcG9uc2USDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2' 'lkZW50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJ' - 'UgVub3RlcxIzCgZnZW5kZXIYCiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAFIGZ2VuZG' - 'VyiAEBEj0KDWRhdGVfb2ZfYmlydGgYCyABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAFSC2Rh' - 'dGVPZkJpcnRoiAEBEkcKBHJvb20YByABKAsyLi5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UG' - 'F0aWVudFJlc3BvbnNlLlJvb21IAlIEcm9vbYgBARJECgNiZWQYCCABKAsyLS5zZXJ2aWNlcy50' - 'YXNrc19zdmMudjEuR2V0UGF0aWVudFJlc3BvbnNlLkJlZEgDUgNiZWSIAQESIAoLY29uc2lzdG' - 'VuY3kYCSABKAlSC2NvbnNpc3RlbmN5GmUKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUY' - 'AiABKAlSBG5hbWUSFwoHd2FyZF9pZBgDIAEoCVIGd2FyZElkEiAKC2NvbnNpc3RlbmN5GAQgAS' - 'gJUgtjb25zaXN0ZW5jeRpLCgNCZWQSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5h' - 'bWUSIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3RlbmN5QgkKB19nZW5kZXJCEAoOX2RhdG' - 'Vfb2ZfYmlydGhCBwoFX3Jvb21CBgoEX2JlZA=='); + 'UgVub3RlcxIuCgZnZW5kZXIYCiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlch' + 'I9Cg1kYXRlX29mX2JpcnRoGAsgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZC' + 'aXJ0aIgBARJHCgRyb29tGAcgASgLMi4uc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbn' + 'RSZXNwb25zZS5Sb29tSAFSBHJvb22IAQESRAoDYmVkGAggASgLMi0uc2VydmljZXMudGFza3Nf' + 'c3ZjLnYxLkdldFBhdGllbnRSZXNwb25zZS5CZWRIAlIDYmVkiAEBEiAKC2NvbnNpc3RlbmN5GA' + 'kgASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJ' + 'UgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY2' + '9uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEiAK' + 'C2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeUIQCg5fZGF0ZV9vZl9iaXJ0aEIHCgVfcm' + '9vbUIGCgRfYmVk'); @$core.Deprecated('Use getPatientByBedRequestDescriptor instead') const GetPatientByBedRequest$json = { @@ -140,13 +139,12 @@ const GetPatientByBedResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '10': 'bedId'}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, ], '8': [ - {'1': '_gender'}, {'1': '_date_of_birth'}, ], }; @@ -155,10 +153,10 @@ const GetPatientByBedResponse$json = { final $typed_data.Uint8List getPatientByBedResponseDescriptor = $convert.base64Decode( 'ChdHZXRQYXRpZW50QnlCZWRSZXNwb25zZRIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZG' 'FibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMY' - 'AyABKAlSBW5vdGVzEjMKBmdlbmRlchgGIAEoDjIWLmxpYnMuY29tbW9uLnYxLkdlbmRlckgAUg' - 'ZnZW5kZXKIAQESPQoNZGF0ZV9vZl9iaXJ0aBgHIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVI' - 'AVILZGF0ZU9mQmlydGiIAQESFQoGYmVkX2lkGAQgASgJUgViZWRJZBIgCgtjb25zaXN0ZW5jeR' - 'gFIAEoCVILY29uc2lzdGVuY3lCCQoHX2dlbmRlckIQCg5fZGF0ZV9vZl9iaXJ0aA=='); + 'AyABKAlSBW5vdGVzEi4KBmdlbmRlchgGIAEoDjIWLmxpYnMuY29tbW9uLnYxLkdlbmRlclIGZ2' + 'VuZGVyEj0KDWRhdGVfb2ZfYmlydGgYByABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSABSC2Rh' + 'dGVPZkJpcnRoiAEBEhUKBmJlZF9pZBgEIAEoCVIFYmVkSWQSIAoLY29uc2lzdGVuY3kYBSABKA' + 'lSC2NvbnNpc3RlbmN5QhAKDl9kYXRlX29mX2JpcnRo'); @$core.Deprecated('Use getPatientsByWardRequestDescriptor instead') const GetPatientsByWardRequest$json = { @@ -188,13 +186,12 @@ const GetPatientsByWardResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, - {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'bedId', '17': true}, + {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, + {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 1, '10': 'bedId', '17': true}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, ], '8': [ - {'1': '_gender'}, {'1': '_date_of_birth'}, {'1': '_bed_id'}, ], @@ -204,12 +201,12 @@ const GetPatientsByWardResponse_Patient$json = { final $typed_data.Uint8List getPatientsByWardResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50c0J5V2FyZFJlc3BvbnNlElQKCHBhdGllbnRzGAEgAygLMjguc2VydmljZX' 'MudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRzQnlXYXJkUmVzcG9uc2UuUGF0aWVudFIIcGF0aWVu' - 'dHMaxQIKB1BhdGllbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aW' + 'dHMatQIKB1BhdGllbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aW' 'ZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJUgVub3Rl' - 'cxIzCgZnZW5kZXIYBiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAFIGZ2VuZGVyiAEBEj' - '0KDWRhdGVfb2ZfYmlydGgYByABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAFSC2RhdGVPZkJp' - 'cnRoiAEBEhoKBmJlZF9pZBgEIAEoCUgCUgViZWRJZIgBARIgCgtjb25zaXN0ZW5jeRgFIAEoCV' - 'ILY29uc2lzdGVuY3lCCQoHX2dlbmRlckIQCg5fZGF0ZV9vZl9iaXJ0aEIJCgdfYmVkX2lk'); + 'cxIuCgZnZW5kZXIYBiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlchI9Cg1kYX' + 'RlX29mX2JpcnRoGAcgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgB' + 'ARIaCgZiZWRfaWQYBCABKAlIAVIFYmVkSWSIAQESIAoLY29uc2lzdGVuY3kYBSABKAlSC2Nvbn' + 'Npc3RlbmN5QhAKDl9kYXRlX29mX2JpcnRoQgkKB19iZWRfaWQ='); @$core.Deprecated('Use getPatientAssignmentByWardRequestDescriptor instead') const GetPatientAssignmentByWardRequest$json = { @@ -303,17 +300,16 @@ const GetPatientDetailsResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 9, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 10, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'gender', '3': 9, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'date_of_birth', '3': 10, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 4, '4': 3, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Task', '10': 'tasks'}, - {'1': 'room', '3': 5, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Room', '9': 2, '10': 'room', '17': true}, - {'1': 'bed', '3': 6, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Bed', '9': 3, '10': 'bed', '17': true}, + {'1': 'room', '3': 5, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Room', '9': 1, '10': 'room', '17': true}, + {'1': 'bed', '3': 6, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Bed', '9': 2, '10': 'bed', '17': true}, {'1': 'is_discharged', '3': 7, '4': 1, '5': 8, '10': 'isDischarged'}, {'1': 'consistency', '3': 8, '4': 1, '5': 9, '10': 'consistency'}, ], '3': [GetPatientDetailsResponse_Room$json, GetPatientDetailsResponse_Bed$json, GetPatientDetailsResponse_Task$json], '8': [ - {'1': '_gender'}, {'1': '_date_of_birth'}, {'1': '_room'}, {'1': '_bed'}, @@ -375,27 +371,26 @@ const GetPatientDetailsResponse_Task_SubTask$json = { final $typed_data.Uint8List getPatientDetailsResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlEg4KAmlkGAEgASgJUgJpZBI6ChlodW1hbl9yZW' 'FkYWJsZV9pZGVudGlmaWVyGAIgASgJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3Rl' - 'cxgDIAEoCVIFbm90ZXMSMwoGZ2VuZGVyGAkgASgOMhYubGlicy5jb21tb24udjEuR2VuZGVySA' - 'BSBmdlbmRlcogBARI9Cg1kYXRlX29mX2JpcnRoGAogASgLMhQubGlicy5jb21tb24udjEuRGF0' - 'ZUgBUgtkYXRlT2ZCaXJ0aIgBARJLCgV0YXNrcxgEIAMoCzI1LnNlcnZpY2VzLnRhc2tzX3N2Yy' - '52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2tSBXRhc2tzEk4KBHJvb20YBSABKAsy' - 'NS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudERldGFpbHNSZXNwb25zZS5Sb29tSA' - 'JSBHJvb22IAQESSwoDYmVkGAYgASgLMjQuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGll' - 'bnREZXRhaWxzUmVzcG9uc2UuQmVkSANSA2JlZIgBARIjCg1pc19kaXNjaGFyZ2VkGAcgASgIUg' - 'xpc0Rpc2NoYXJnZWQSIAoLY29uc2lzdGVuY3kYCCABKAlSC2NvbnNpc3RlbmN5GmUKBFJvb20S' - 'DgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSFwoHd2FyZF9pZBgDIAEoCVIGd2' - 'FyZElkEiAKC2NvbnNpc3RlbmN5GAQgASgJUgtjb25zaXN0ZW5jeRpLCgNCZWQSDgoCaWQYASAB' - 'KAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3' - 'RlbmN5GsIDCgRUYXNrEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2Rl' - 'c2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhI5CgZzdGF0dXMYBCABKA4yIS5zZXJ2aWNlcy' - '50YXNrc19zdmMudjEuVGFza1N0YXR1c1IGc3RhdHVzEi0KEGFzc2lnbmVkX3VzZXJfaWQYBSAB' - 'KAlIAFIOYXNzaWduZWRVc2VySWSIAQESHQoKcGF0aWVudF9pZBgGIAEoCVIJcGF0aWVudElkEh' - 'YKBnB1YmxpYxgHIAEoCFIGcHVibGljElkKCHN1YnRhc2tzGAggAygLMj0uc2VydmljZXMudGFz' - 'a3Nfc3ZjLnYxLkdldFBhdGllbnREZXRhaWxzUmVzcG9uc2UuVGFzay5TdWJUYXNrUghzdWJ0YX' - 'NrcxIgCgtjb25zaXN0ZW5jeRgJIAEoCVILY29uc2lzdGVuY3kaQQoHU3ViVGFzaxIOCgJpZBgB' - 'IAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRISCgRkb25lGAMgASgIUgRkb25lQhMKEV9hc3' - 'NpZ25lZF91c2VyX2lkQgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGhCBwoFX3Jvb21CBgoE' - 'X2JlZA=='); + 'cxgDIAEoCVIFbm90ZXMSLgoGZ2VuZGVyGAkgASgOMhYubGlicy5jb21tb24udjEuR2VuZGVyUg' + 'ZnZW5kZXISPQoNZGF0ZV9vZl9iaXJ0aBgKIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAFIL' + 'ZGF0ZU9mQmlydGiIAQESSwoFdGFza3MYBCADKAsyNS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2' + 'V0UGF0aWVudERldGFpbHNSZXNwb25zZS5UYXNrUgV0YXNrcxJOCgRyb29tGAUgASgLMjUuc2Vy' + 'dmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnREZXRhaWxzUmVzcG9uc2UuUm9vbUgBUgRyb2' + '9tiAEBEksKA2JlZBgGIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50RGV0' + 'YWlsc1Jlc3BvbnNlLkJlZEgCUgNiZWSIAQESIwoNaXNfZGlzY2hhcmdlZBgHIAEoCFIMaXNEaX' + 'NjaGFyZ2VkEiAKC2NvbnNpc3RlbmN5GAggASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlk' + 'GAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZB' + 'IgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJp' + 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeR' + 'rCAwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlw' + 'dGlvbhgDIAEoCVILZGVzY3JpcHRpb24SOQoGc3RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3' + 'Nfc3ZjLnYxLlRhc2tTdGF0dXNSBnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABS' + 'DmFzc2lnbmVkVXNlcklkiAEBEh0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdW' + 'JsaWMYByABKAhSBnB1YmxpYxJZCghzdWJ0YXNrcxgIIAMoCzI9LnNlcnZpY2VzLnRhc2tzX3N2' + 'Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MSIA' + 'oLY29uc2lzdGVuY3kYCSABKAlSC2NvbnNpc3RlbmN5GkEKB1N1YlRhc2sSDgoCaWQYASABKAlS' + 'AmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZW' + 'RfdXNlcl9pZEIQCg5fZGF0ZV9vZl9iaXJ0aEIHCgVfcm9vbUIGCgRfYmVk'); @$core.Deprecated('Use getPatientListRequestDescriptor instead') const GetPatientListRequest$json = { @@ -452,15 +447,14 @@ const GetPatientListResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 5, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 8, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 0, '10': 'gender', '17': true}, - {'1': 'date_of_birth', '3': 9, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 1, '10': 'dateOfBirth', '17': true}, + {'1': 'gender', '3': 8, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'date_of_birth', '3': 9, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Room', '10': 'room'}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Bed', '10': 'bed'}, {'1': 'tasks', '3': 6, '4': 3, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Task', '10': 'tasks'}, {'1': 'consistency', '3': 7, '4': 1, '5': 9, '10': 'consistency'}, ], '8': [ - {'1': '_gender'}, {'1': '_date_of_birth'}, ], }; @@ -505,25 +499,24 @@ final $typed_data.Uint8List getPatientListResponseDescriptor = $convert.base64De 'Nwb25zZS5QYXRpZW50UhJkaXNjaGFyZ2VkUGF0aWVudHMaSwoDQmVkEg4KAmlkGAEgASgJUgJp' 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeR' 'plCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQY' - 'AyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3ka9QMKB1BhdG' + 'AyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3ka5QMKB1BhdG' 'llbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aWZpZXIYAiABKAlS' - 'F2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAUgASgJUgVub3RlcxIzCgZnZW5kZX' - 'IYCCABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAFIGZ2VuZGVyiAEBEj0KDWRhdGVfb2Zf' - 'YmlydGgYCSABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAFSC2RhdGVPZkJpcnRoiAEBEkYKBH' - 'Jvb20YAyABKAsyMi5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb25z' - 'ZS5Sb29tUgRyb29tEkMKA2JlZBgEIAEoCzIxLnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYX' - 'RpZW50TGlzdFJlc3BvbnNlLkJlZFIDYmVkEkgKBXRhc2tzGAYgAygLMjIuc2VydmljZXMudGFz' - 'a3Nfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuVGFza1IFdGFza3MSIAoLY29uc2lzdG' - 'VuY3kYByABKAlSC2NvbnNpc3RlbmN5QgkKB19nZW5kZXJCEAoOX2RhdGVfb2ZfYmlydGgavwMK' - 'BFRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb2' - '4YAyABKAlSC2Rlc2NyaXB0aW9uEjkKBnN0YXR1cxgEIAEoDjIhLnNlcnZpY2VzLnRhc2tzX3N2' - 'Yy52MS5UYXNrU3RhdHVzUgZzdGF0dXMSLQoQYXNzaWduZWRfdXNlcl9pZBgFIAEoCUgAUg5hc3' - 'NpZ25lZFVzZXJJZIgBARIdCgpwYXRpZW50X2lkGAYgASgJUglwYXRpZW50SWQSFgoGcHVibGlj' - 'GAcgASgIUgZwdWJsaWMSVgoIc3VidGFza3MYCCADKAsyOi5zZXJ2aWNlcy50YXNrc19zdmMudj' - 'EuR2V0UGF0aWVudExpc3RSZXNwb25zZS5UYXNrLlN1YlRhc2tSCHN1YnRhc2tzEiAKC2NvbnNp' - 'c3RlbmN5GAkgASgJUgtjb25zaXN0ZW5jeRpBCgdTdWJUYXNrEg4KAmlkGAEgASgJUgJpZBISCg' - 'RuYW1lGAIgASgJUgRuYW1lEhIKBGRvbmUYAyABKAhSBGRvbmVCEwoRX2Fzc2lnbmVkX3VzZXJf' - 'aWQ='); + 'F2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAUgASgJUgVub3RlcxIuCgZnZW5kZX' + 'IYCCABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlchI9Cg1kYXRlX29mX2JpcnRo' + 'GAkgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgBARJGCgRyb29tGA' + 'MgASgLMjIuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuUm9v' + 'bVIEcm9vbRJDCgNiZWQYBCABKAsyMS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudE' + 'xpc3RSZXNwb25zZS5CZWRSA2JlZBJICgV0YXNrcxgGIAMoCzIyLnNlcnZpY2VzLnRhc2tzX3N2' + 'Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlRhc2tSBXRhc2tzEiAKC2NvbnNpc3RlbmN5GA' + 'cgASgJUgtjb25zaXN0ZW5jeUIQCg5fZGF0ZV9vZl9iaXJ0aBq/AwoEVGFzaxIOCgJpZBgBIAEo' + 'CVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcH' + 'Rpb24SOQoGc3RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3Nfc3ZjLnYxLlRhc2tTdGF0dXNS' + 'BnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVkVXNlcklkiAEBEh' + '0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKAhSBnB1YmxpYxJW' + 'CghzdWJ0YXNrcxgIIAMoCzI6LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50TGlzdF' + 'Jlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MSIAoLY29uc2lzdGVuY3kYCSABKAlSC2Nv' + 'bnNpc3RlbmN5GkEKB1N1YlRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbW' + 'USEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZWRfdXNlcl9pZA=='); @$core.Deprecated('Use getRecentPatientsRequestDescriptor instead') const GetRecentPatientsRequest$json = { diff --git a/gen/go/services/tasks_svc/v1/patient_svc.pb.go b/gen/go/services/tasks_svc/v1/patient_svc.pb.go index caedbbccd..bcf569096 100644 --- a/gen/go/services/tasks_svc/v1/patient_svc.pb.go +++ b/gen/go/services/tasks_svc/v1/patient_svc.pb.go @@ -202,7 +202,7 @@ type GetPatientResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + Gender v1.Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` DateOfBirth *v1.Date `protobuf:"bytes,11,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` @@ -263,8 +263,8 @@ func (x *GetPatientResponse) GetNotes() string { } func (x *GetPatientResponse) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender + if x != nil { + return x.Gender } return v1.Gender(0) } @@ -349,13 +349,13 @@ type GetPatientByBedResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - BedId string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3" json:"bed_id,omitempty"` - Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3" json:"bed_id,omitempty"` + Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientByBedResponse) Reset() { @@ -412,8 +412,8 @@ func (x *GetPatientByBedResponse) GetNotes() string { } func (x *GetPatientByBedResponse) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender + if x != nil { + return x.Gender } return v1.Gender(0) } @@ -682,7 +682,7 @@ type GetPatientDetailsResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,9,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + Gender v1.Gender `protobuf:"varint,9,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` DateOfBirth *v1.Date `protobuf:"bytes,10,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientDetailsResponse_Task `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` Room *GetPatientDetailsResponse_Room `protobuf:"bytes,5,opt,name=room,proto3,oneof" json:"room,omitempty"` @@ -745,8 +745,8 @@ func (x *GetPatientDetailsResponse) GetNotes() string { } func (x *GetPatientDetailsResponse) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender + if x != nil { + return x.Gender } return v1.Gender(0) } @@ -1770,13 +1770,13 @@ type GetPatientsByWardResponse_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` - Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Gender v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientsByWardResponse_Patient) Reset() { @@ -1833,8 +1833,8 @@ func (x *GetPatientsByWardResponse_Patient) GetNotes() string { } func (x *GetPatientsByWardResponse_Patient) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender + if x != nil { + return x.Gender } return v1.Gender(0) } @@ -2515,7 +2515,7 @@ type GetPatientListResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` + Gender v1.Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` DateOfBirth *v1.Date `protobuf:"bytes,9,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Room *GetPatientListResponse_Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` Bed *GetPatientListResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3" json:"bed,omitempty"` @@ -2577,8 +2577,8 @@ func (x *GetPatientListResponse_Patient) GetNotes() string { } func (x *GetPatientListResponse_Patient) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender + if x != nil { + return x.Gender } return v1.Gender(0) } @@ -3041,7 +3041,7 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xfd, 0x04, 0x0a, 0x12, 0x47, 0x65, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xed, 0x04, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, @@ -3049,42 +3049,41 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, - 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, + 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, - 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x02, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, - 0x44, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x03, 0x52, 0x03, 0x62, - 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, - 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, - 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, + 0x72, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, + 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, + 0x01, 0x12, 0x47, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, + 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, 0x03, 0x62, 0x65, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, + 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xc5, 0x02, 0x0a, 0x17, 0x47, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xb5, 0x02, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, @@ -3092,49 +3091,47 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, + 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, - 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, - 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x06, - 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, - 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, + 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x12, 0x20, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xb9, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, + 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xa9, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xc5, 0x02, 0x0a, 0x07, + 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xb5, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, + 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, - 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, - 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, - 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, - 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, - 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, + 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, @@ -3178,7 +3175,7 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xc9, 0x09, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xb9, 0x09, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, @@ -3186,80 +3183,79 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, + 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, - 0x00, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, - 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, - 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x05, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x02, 0x52, - 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, + 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, + 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x03, 0x52, 0x03, 0x62, - 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, - 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, - 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, + 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, + 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, + 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, + 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, + 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xc2, 0x03, 0x0a, 0x04, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x1a, 0xc2, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x21, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x12, 0x59, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, - 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, - 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x59, 0x0a, 0x08, 0x73, + 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, + 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, - 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0xa5, 0x0b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x95, 0x0b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, @@ -3290,37 +3286,36 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xf5, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xe5, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, - 0x65, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x61, 0x74, 0x65, 0x48, 0x01, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, - 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x43, - 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, - 0x62, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, + 0x72, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, + 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, + 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, + 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x48, + 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, + 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x1a, 0xbf, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts index 0169b6c05..5e71f7aba 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts @@ -108,8 +108,6 @@ export class GetPatientResponse extends jspb.Message { getGender(): libs_common_v1_types_pb.Gender; setGender(value: libs_common_v1_types_pb.Gender): GetPatientResponse; - hasGender(): boolean; - clearGender(): GetPatientResponse; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientResponse; @@ -142,7 +140,7 @@ export namespace GetPatientResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: libs_common_v1_types_pb.Gender, + gender: libs_common_v1_types_pb.Gender, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientResponse.Room.AsObject, bed?: GetPatientResponse.Bed.AsObject, @@ -207,11 +205,6 @@ export namespace GetPatientResponse { } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 10, - } - export enum DateOfBirthCase { _DATE_OF_BIRTH_NOT_SET = 0, DATE_OF_BIRTH = 11, @@ -258,8 +251,6 @@ export class GetPatientByBedResponse extends jspb.Message { getGender(): libs_common_v1_types_pb.Gender; setGender(value: libs_common_v1_types_pb.Gender): GetPatientByBedResponse; - hasGender(): boolean; - clearGender(): GetPatientByBedResponse; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientByBedResponse; @@ -285,17 +276,12 @@ export namespace GetPatientByBedResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: libs_common_v1_types_pb.Gender, + gender: libs_common_v1_types_pb.Gender, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId: string, consistency: string, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 6, - } - export enum DateOfBirthCase { _DATE_OF_BIRTH_NOT_SET = 0, DATE_OF_BIRTH = 7, @@ -351,8 +337,6 @@ export namespace GetPatientsByWardResponse { getGender(): libs_common_v1_types_pb.Gender; setGender(value: libs_common_v1_types_pb.Gender): Patient; - hasGender(): boolean; - clearGender(): Patient; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; @@ -380,17 +364,12 @@ export namespace GetPatientsByWardResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: libs_common_v1_types_pb.Gender, + gender: libs_common_v1_types_pb.Gender, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, consistency: string, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 6, - } - export enum DateOfBirthCase { _DATE_OF_BIRTH_NOT_SET = 0, DATE_OF_BIRTH = 7, @@ -570,8 +549,6 @@ export class GetPatientDetailsResponse extends jspb.Message { getGender(): libs_common_v1_types_pb.Gender; setGender(value: libs_common_v1_types_pb.Gender): GetPatientDetailsResponse; - hasGender(): boolean; - clearGender(): GetPatientDetailsResponse; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientDetailsResponse; @@ -612,7 +589,7 @@ export namespace GetPatientDetailsResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: libs_common_v1_types_pb.Gender, + gender: libs_common_v1_types_pb.Gender, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, room?: GetPatientDetailsResponse.Room.AsObject, @@ -766,11 +743,6 @@ export namespace GetPatientDetailsResponse { } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 9, - } - export enum DateOfBirthCase { _DATE_OF_BIRTH_NOT_SET = 0, DATE_OF_BIRTH = 10, @@ -913,8 +885,6 @@ export namespace GetPatientListResponse { getGender(): libs_common_v1_types_pb.Gender; setGender(value: libs_common_v1_types_pb.Gender): Patient; - hasGender(): boolean; - clearGender(): Patient; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; @@ -952,7 +922,7 @@ export namespace GetPatientListResponse { id: string, humanReadableIdentifier: string, notes: string, - gender?: libs_common_v1_types_pb.Gender, + gender: libs_common_v1_types_pb.Gender, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientListResponse.Room.AsObject, bed?: GetPatientListResponse.Bed.AsObject, @@ -960,11 +930,6 @@ export namespace GetPatientListResponse { consistency: string, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 8, - } - export enum DateOfBirthCase { _DATE_OF_BIRTH_NOT_SET = 0, DATE_OF_BIRTH = 9, diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js index db8b38c5d..868318f4b 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js @@ -1767,8 +1767,8 @@ proto.services.tasks_svc.v1.GetPatientResponse.serializeBinaryToWriter = functio f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 10)); - if (f != null) { + f = message.getGender(); + if (f !== 0.0) { writer.writeEnum( 10, f @@ -2286,25 +2286,7 @@ proto.services.tasks_svc.v1.GetPatientResponse.prototype.getGender = function() * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this */ proto.services.tasks_svc.v1.GetPatientResponse.prototype.setGender = function(value) { - return jspb.Message.setField(this, 10, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this - */ -proto.services.tasks_svc.v1.GetPatientResponse.prototype.clearGender = function() { - return jspb.Message.setField(this, 10, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.tasks_svc.v1.GetPatientResponse.prototype.hasGender = function() { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.setProto3EnumField(this, 10, value); }; @@ -2721,8 +2703,8 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.serializeBinaryToWriter = fu f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 6)); - if (f != null) { + f = message.getGender(); + if (f !== 0.0) { writer.writeEnum( 6, f @@ -2821,25 +2803,7 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.getGender = functi * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this */ proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setGender = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this - */ -proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.clearGender = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.hasGender = function() { - return jspb.Message.getField(this, 6) != null; + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -3322,8 +3286,8 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.serializeBinaryToW f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 6)); - if (f != null) { + f = message.getGender(); + if (f !== 0.0) { writer.writeEnum( 6, f @@ -3422,25 +3386,7 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.getGende * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this */ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setGender = function(value) { - return jspb.Message.setField(this, 6, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this - */ -proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.clearGender = function() { - return jspb.Message.setField(this, 6, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.hasGender = function() { - return jspb.Message.getField(this, 6) != null; + return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -4854,8 +4800,8 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.serializeBinaryToWriter = f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 9)); - if (f != null) { + f = message.getGender(); + if (f !== 0.0) { writer.writeEnum( 9, f @@ -5996,25 +5942,7 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.getGender = func * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this */ proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setGender = function(value) { - return jspb.Message.setField(this, 9, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this - */ -proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.clearGender = function() { - return jspb.Message.setField(this, 9, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.hasGender = function() { - return jspb.Message.getField(this, 9) != null; + return jspb.Message.setProto3EnumField(this, 9, value); }; @@ -7088,8 +7016,8 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.serializeBinaryToWrit f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 8)); - if (f != null) { + f = message.getGender(); + if (f !== 0.0) { writer.writeEnum( 8, f @@ -7205,25 +7133,7 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getGender = * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this */ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setGender = function(value) { - return jspb.Message.setField(this, 8, value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this - */ -proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.clearGender = function() { - return jspb.Message.setField(this, 8, undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.hasGender = function() { - return jspb.Message.getField(this, 8) != null; + return jspb.Message.setProto3EnumField(this, 8, value); }; diff --git a/libs/hwutil/types.go b/libs/hwutil/types.go index 4b6fb9781..be6872980 100644 --- a/libs/hwutil/types.go +++ b/libs/hwutil/types.go @@ -1,5 +1,7 @@ package hwutil +import "time" + // IntInterval should be lower-bound inclusive, upper-bound exclusive type IntInterval struct { Min *int `json:"min"` @@ -8,3 +10,8 @@ type IntInterval struct { // InclusiveIntInterval is a IntInterval where both Min and Max should be inclusive type InclusiveIntInterval IntInterval + +// TruncateTimeToDay is useful for proto/lib/common/v1/types' Date type +func TruncateTimeToDay(t time.Time) time.Time { + return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location()) +} diff --git a/proto/services/tasks_svc/v1/patient_svc.proto b/proto/services/tasks_svc/v1/patient_svc.proto index 444381c9d..c8ad10ea3 100644 --- a/proto/services/tasks_svc/v1/patient_svc.proto +++ b/proto/services/tasks_svc/v1/patient_svc.proto @@ -36,7 +36,7 @@ message GetPatientResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional libs.common.v1.Gender gender = 10; + libs.common.v1.Gender gender = 10; optional libs.common.v1.Date date_of_birth = 11; @@ -71,7 +71,7 @@ message GetPatientByBedResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional libs.common.v1.Gender gender = 6; + libs.common.v1.Gender gender = 6; optional libs.common.v1.Date date_of_birth = 7; string bed_id = 4; @@ -93,7 +93,7 @@ message GetPatientsByWardResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional libs.common.v1.Gender gender = 6; + libs.common.v1.Gender gender = 6; optional libs.common.v1.Date date_of_birth = 7; optional string bed_id = 4; @@ -146,7 +146,7 @@ message GetPatientDetailsResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - optional libs.common.v1.Gender gender = 9; + libs.common.v1.Gender gender = 9; optional libs.common.v1.Date date_of_birth = 10; repeated Task tasks = 4; @@ -218,7 +218,7 @@ message GetPatientListResponse { string human_readable_identifier = 2; string notes = 5; - optional libs.common.v1.Gender gender = 8; + libs.common.v1.Gender gender = 8; optional libs.common.v1.Date date_of_birth = 9; Room room = 3; diff --git a/services/tasks-svc/internal/patient/api/grpc.go b/services/tasks-svc/internal/patient/api/grpc.go index f03c1a5a3..94cdfe7dd 100644 --- a/services/tasks-svc/internal/patient/api/grpc.go +++ b/services/tasks-svc/internal/patient/api/grpc.go @@ -4,7 +4,9 @@ import ( "common" "common/hwerr" "context" + v1 "gen/libs/common/v1" pb "gen/services/tasks_svc/v1" + "google.golang.org/protobuf/types/known/timestamppb" "hwauthz" "hwauthz/commonPerm" "hwdb" @@ -133,9 +135,13 @@ func (s *PatientGrpcService) GetPatient( Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, - Room: roomRes, - Bed: bedRes, - Consistency: patient.Consistency, + Gender: patient.Gender, + DateOfBirth: hwutil.MapNillable(patient.DateOfBirth, func(dob time.Time) v1.Date { + return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} + }), + Room: roomRes, + Bed: bedRes, + Consistency: patient.Consistency, }, nil } @@ -186,8 +192,12 @@ func (s *PatientGrpcService) GetPatientsByWard( Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, - BedId: hwutil.NullUUIDToStringPtr(patient.BedID), - Consistency: patient.Consistency, + Gender: patient.Gender, + DateOfBirth: hwutil.MapNillable(patient.DateOfBirth, func(dob time.Time) v1.Date { + return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} + }), + BedId: hwutil.NullUUIDToStringPtr(patient.BedID), + Consistency: patient.Consistency, } }), }, nil @@ -259,11 +269,15 @@ func (s *PatientGrpcService) GetPatientDetails( Id: patientWithDetails.ID.String(), HumanReadableIdentifier: patientWithDetails.HumanReadableIdentifier, Notes: patientWithDetails.Notes, - Tasks: taskResponse, - IsDischarged: patientWithDetails.IsDischarged, - Room: roomResponse, - Bed: bedResponse, - Consistency: patientWithDetails.Consistency, + Gender: patientWithDetails.Gender, + DateOfBirth: hwutil.MapNillable(patientWithDetails.DateOfBirth, func(dob time.Time) v1.Date { + return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} + }), + Tasks: taskResponse, + Room: roomResponse, + Bed: bedResponse, + IsDischarged: patientWithDetails.IsDischarged, + Consistency: patientWithDetails.Consistency, }, nil } @@ -344,11 +358,15 @@ func (s *PatientGrpcService) GetPatientList( res = append(res, &pb.GetPatientListResponse_Patient{ Id: patientDetails.ID.String(), HumanReadableIdentifier: patientDetails.HumanReadableIdentifier, - Room: roomResponse, - Bed: bedResponse, Notes: patientDetails.Notes, - Tasks: taskResponse, - Consistency: patientDetails.Consistency, + Gender: patientDetails.Gender, + DateOfBirth: hwutil.MapNillable(patientDetails.DateOfBirth, func(dob time.Time) v1.Date { + return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} + }), + Room: roomResponse, + Bed: bedResponse, + Tasks: taskResponse, + Consistency: patientDetails.Consistency, }) } diff --git a/services/tasks-svc/stories/PatientCRUD_test.go b/services/tasks-svc/stories/PatientCRUD_test.go index 8dc357147..cc3dd4d0a 100644 --- a/services/tasks-svc/stories/PatientCRUD_test.go +++ b/services/tasks-svc/stories/PatientCRUD_test.go @@ -21,6 +21,55 @@ import ( "github.com/stretchr/testify/require" ) +// nowTuple yields time.Now() wrapped in a v1.Date, and a rounded-to-date copy as Timestamp +func nowTuple() (*v1.Date, *timestamppb.Timestamp) { + now := time.Now() + y, m, d := now.Date() + exact := &v1.Date{Date: timestamppb.New(now)} + trunc := timestamppb.New(time.Date(y, m, d, 0, 0, 0, 0, time.UTC)) + return exact, trunc +} + +func TestCreatePatient(t *testing.T) { + ctx := context.Background() + patientClient := patientServiceClient() + + // + // create new patient + // + + hrI := t.Name() + " patient" + notes := "A " + t.Name() + " patient" + gender := v1.Gender_GENDER_DIVERSE + + dob, expDob := nowTuple() + + createRes, err := patientClient.CreatePatient(ctx, &pb.CreatePatientRequest{ + HumanReadableIdentifier: hrI, + Notes: ¬es, + Gender: &gender, + DateOfBirth: dob, + }) + require.NoError(t, err, "could not create patient") + + hwtesting.WaitForProjectionsToSettle() + + patientId := createRes.GetId() + + // + // get new patient + // + + getPatientRes, err := patientClient.GetPatient(ctx, &pb.GetPatientRequest{Id: patientId}) + require.NoError(t, err, "could not get after creation") + + assert.Equal(t, hrI, getPatientRes.GetHumanReadableIdentifier()) + assert.Equal(t, notes, getPatientRes.GetNotes()) + assert.Equal(t, createRes.GetConsistency(), getPatientRes.GetConsistency()) + assert.Equal(t, gender, getPatientRes.GetGender()) + assert.Equal(t, expDob, getPatientRes.DateOfBirth.Date) +} + func TestCreateUpdateGetPatient(t *testing.T) { ctx := context.Background() @@ -197,9 +246,13 @@ func TestGetPatientByBed(t *testing.T) { roomId, _ := prepareRoom(t, ctx, wardID, "") bedId, _ := prepareBed(t, ctx, roomId, "") + dob, expDob := nowTuple() + createReq := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), + Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + DateOfBirth: dob, } createRes, err := patientClient.CreatePatient(ctx, createReq) require.NoError(t, err, "could not create patient") @@ -227,6 +280,8 @@ func TestGetPatientByBed(t *testing.T) { assert.Equal(t, createReq.GetHumanReadableIdentifier(), getRes.GetHumanReadableIdentifier()) assert.Equal(t, createReq.GetNotes(), getRes.GetNotes()) assert.Equal(t, assRes.GetConsistency(), getRes.GetConsistency()) + assert.Equal(t, *createReq.Gender, getRes.GetGender()) + assert.Equal(t, expDob, getRes.DateOfBirth.Date) } func TestGetPatientsByWard(t *testing.T) { @@ -243,9 +298,13 @@ func TestGetPatientsByWard(t *testing.T) { bedId1, _ := prepareBed(t, ctx, roomId, "1") bedId2, _ := prepareBed(t, ctx, roomId, "2") + dob, expDob := nowTuple() + createReq1 := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient 1", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), + Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + DateOfBirth: dob, } createRes1, err := patientClient.CreatePatient(ctx, createReq1) require.NoError(t, err, "could not create patient") @@ -303,12 +362,16 @@ func TestGetPatientsByWard(t *testing.T) { assert.Equal(t, createReq1.HumanReadableIdentifier, patient1.HumanReadableIdentifier) assert.Equal(t, *createReq1.Notes, patient1.Notes) assert.Equal(t, assRes1.Consistency, patient1.Consistency) + assert.Equal(t, *createReq1.Gender, patient1.GetGender()) + assert.Equal(t, expDob, patient1.DateOfBirth.Date) assert.Equal(t, createRes2.Id, patient2.Id) assert.Equal(t, &bedId2, patient2.BedId) assert.Equal(t, createReq2.HumanReadableIdentifier, patient2.HumanReadableIdentifier) assert.Equal(t, *createReq2.Notes, patient2.Notes) assert.Equal(t, assRes2.Consistency, patient2.Consistency) + assert.Equal(t, v1.Gender_GENDER_UNSPECIFIED, patient2.GetGender()) + assert.Nil(t, patient2.DateOfBirth) } func TestGetPatientAssignmentByWard(t *testing.T) { @@ -561,9 +624,13 @@ func TestGetPatientDetails(t *testing.T) { roomId, _ := prepareRoom(t, ctx, wardID, "") bedId, _ := prepareBed(t, ctx, roomId, "") + dob, expDob := nowTuple() + createReq := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), + Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + DateOfBirth: dob, } createRes, err := patientClient.CreatePatient(ctx, createReq) require.NoError(t, err, "could not create patient") @@ -632,6 +699,8 @@ func TestGetPatientDetails(t *testing.T) { assert.Equal(t, createRes.Id, getRes.Id) assert.Equal(t, createReq.GetHumanReadableIdentifier(), getRes.GetHumanReadableIdentifier()) assert.Equal(t, createReq.GetNotes(), getRes.GetNotes()) + assert.Equal(t, *createReq.Gender, getRes.Gender) + assert.Equal(t, expDob, getRes.DateOfBirth.Date) assert.Len(t, getRes.GetTasks(), len(suffixMap)) assert.Subset(t, taskIds, hwutil.Map(getRes.GetTasks(), func(tsk *pb.GetPatientDetailsResponse_Task) string { From 5ae33ac1efb4ab05f7acf2f80a59245b5f3b5b3f Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Fri, 3 Jan 2025 16:35:01 +0100 Subject: [PATCH 07/10] formatDateOfBirth --- .../tasks-svc/internal/patient/api/grpc.go | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/services/tasks-svc/internal/patient/api/grpc.go b/services/tasks-svc/internal/patient/api/grpc.go index 94cdfe7dd..4e95783a3 100644 --- a/services/tasks-svc/internal/patient/api/grpc.go +++ b/services/tasks-svc/internal/patient/api/grpc.go @@ -79,6 +79,16 @@ func (s *PatientGrpcService) CreatePatient( }, nil } +// formatDateOfBirth takes a dob column values and yields a suitable proto message +func formatDateOfBirth(dob *time.Time) *v1.Date { + if dob == nil { + return nil + } + return &v1.Date{ + Date: timestamppb.New(hwutil.TruncateTimeToDay(*dob)), + } +} + func (s *PatientGrpcService) GetPatient( ctx context.Context, req *pb.GetPatientRequest, @@ -136,12 +146,10 @@ func (s *PatientGrpcService) GetPatient( HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, Gender: patient.Gender, - DateOfBirth: hwutil.MapNillable(patient.DateOfBirth, func(dob time.Time) v1.Date { - return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} - }), - Room: roomRes, - Bed: bedRes, - Consistency: patient.Consistency, + DateOfBirth: formatDateOfBirth(patient.DateOfBirth), + Room: roomRes, + Bed: bedRes, + Consistency: patient.Consistency, }, nil } @@ -193,11 +201,9 @@ func (s *PatientGrpcService) GetPatientsByWard( HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, Gender: patient.Gender, - DateOfBirth: hwutil.MapNillable(patient.DateOfBirth, func(dob time.Time) v1.Date { - return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} - }), - BedId: hwutil.NullUUIDToStringPtr(patient.BedID), - Consistency: patient.Consistency, + DateOfBirth: formatDateOfBirth(patient.DateOfBirth), + BedId: hwutil.NullUUIDToStringPtr(patient.BedID), + Consistency: patient.Consistency, } }), }, nil @@ -270,14 +276,12 @@ func (s *PatientGrpcService) GetPatientDetails( HumanReadableIdentifier: patientWithDetails.HumanReadableIdentifier, Notes: patientWithDetails.Notes, Gender: patientWithDetails.Gender, - DateOfBirth: hwutil.MapNillable(patientWithDetails.DateOfBirth, func(dob time.Time) v1.Date { - return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} - }), - Tasks: taskResponse, - Room: roomResponse, - Bed: bedResponse, - IsDischarged: patientWithDetails.IsDischarged, - Consistency: patientWithDetails.Consistency, + DateOfBirth: formatDateOfBirth(patientWithDetails.DateOfBirth), + Tasks: taskResponse, + Room: roomResponse, + Bed: bedResponse, + IsDischarged: patientWithDetails.IsDischarged, + Consistency: patientWithDetails.Consistency, }, nil } @@ -360,13 +364,11 @@ func (s *PatientGrpcService) GetPatientList( HumanReadableIdentifier: patientDetails.HumanReadableIdentifier, Notes: patientDetails.Notes, Gender: patientDetails.Gender, - DateOfBirth: hwutil.MapNillable(patientDetails.DateOfBirth, func(dob time.Time) v1.Date { - return v1.Date{Date: timestamppb.New(hwutil.TruncateTimeToDay(dob))} - }), - Room: roomResponse, - Bed: bedResponse, - Tasks: taskResponse, - Consistency: patientDetails.Consistency, + DateOfBirth: formatDateOfBirth(patientDetails.DateOfBirth), + Room: roomResponse, + Bed: bedResponse, + Tasks: taskResponse, + Consistency: patientDetails.Consistency, }) } From 3029f2f2bc06d932edca5541b5ba91b91da19f10 Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Fri, 3 Jan 2025 17:03:31 +0100 Subject: [PATCH 08/10] protos --- .../services/tasks_svc/v1/patient_svc.pb.dart | 28 ++++ .../tasks_svc/v1/patient_svc.pbjson.dart | 24 ++-- .../services/tasks_svc/v1/patient_svc.pb.go | 134 +++++++++++------- .../services/tasks_svc/v1/patient_svc_pb.d.ts | 8 ++ .../services/tasks_svc/v1/patient_svc_pb.js | 60 ++++++++ proto/services/tasks_svc/v1/patient_svc.proto | 2 + .../tasks-svc/internal/patient/api/grpc.go | 9 +- .../internal/patient/models/patient.go | 25 ++-- .../v1/get_all_patients_with_details.go | 20 +-- .../v1/get_patient_assignment_by_ward.go | 8 +- .../patient/queries/v1/get_patient_by_bed.go | 20 +-- .../v1/get_patient_with_details_by_id.go | 20 +-- .../queries/v1/get_patients_by_ward.go | 20 +-- 13 files changed, 263 insertions(+), 115 deletions(-) diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart index 978796da7..1a8aafb0e 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart @@ -1021,6 +1021,7 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM $core.String? id, $core.String? name, $core.String? consistency, + $18.Gender? gender, }) { final $result = create(); if (id != null) { @@ -1032,6 +1033,9 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } return $result; } GetPatientAssignmentByWardResponse_Room_Bed_Patient._() : super(); @@ -1042,6 +1046,7 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'consistency') + ..e<$18.Gender>(4, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) ..hasRequiredFields = false ; @@ -1092,6 +1097,15 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM $core.bool hasConsistency() => $_has(2); @$pb.TagNumber(3) void clearConsistency() => clearField(3); + + @$pb.TagNumber(4) + $18.Gender get gender => $_getN(3); + @$pb.TagNumber(4) + set gender($18.Gender v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasGender() => $_has(3); + @$pb.TagNumber(4) + void clearGender() => clearField(4); } class GetPatientAssignmentByWardResponse_Room_Bed extends $pb.GeneratedMessage { @@ -2833,6 +2847,7 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { GetRecentPatientsResponse_Room? room, GetRecentPatientsResponse_Bed? bed, $core.String? consistency, + $18.Gender? gender, }) { final $result = create(); if (id != null) { @@ -2850,6 +2865,9 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } + if (gender != null) { + $result.gender = gender; + } return $result; } GetRecentPatientsResponse_Patient._() : super(); @@ -2862,6 +2880,7 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { ..aOM(3, _omitFieldNames ? '' : 'room', subBuilder: GetRecentPatientsResponse_Room.create) ..aOM(4, _omitFieldNames ? '' : 'bed', subBuilder: GetRecentPatientsResponse_Bed.create) ..aOS(5, _omitFieldNames ? '' : 'consistency') + ..e<$18.Gender>(6, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) ..hasRequiredFields = false ; @@ -2934,6 +2953,15 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { $core.bool hasConsistency() => $_has(4); @$pb.TagNumber(5) void clearConsistency() => clearField(5); + + @$pb.TagNumber(6) + $18.Gender get gender => $_getN(5); + @$pb.TagNumber(6) + set gender($18.Gender v) { setField(6, v); } + @$pb.TagNumber(6) + $core.bool hasGender() => $_has(5); + @$pb.TagNumber(6) + void clearGender() => clearField(6); } class GetRecentPatientsResponse extends $pb.GeneratedMessage { diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart index 4c07ace69..e0a331797 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart @@ -263,6 +263,7 @@ const GetPatientAssignmentByWardResponse_Room_Bed_Patient$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + {'1': 'gender', '3': 4, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, {'1': 'consistency', '3': 3, '4': 1, '5': 9, '10': 'consistency'}, ], }; @@ -271,15 +272,16 @@ const GetPatientAssignmentByWardResponse_Room_Bed_Patient$json = { final $typed_data.Uint8List getPatientAssignmentByWardResponseDescriptor = $convert.base64Decode( 'CiJHZXRQYXRpZW50QXNzaWdubWVudEJ5V2FyZFJlc3BvbnNlElQKBXJvb21zGAEgAygLMj4uc2' 'VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRBc3NpZ25tZW50QnlXYXJkUmVzcG9uc2Uu' - 'Um9vbVIFcm9vbXMaugMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbW' + 'Um9vbVIFcm9vbXMa6gMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbW' 'USVgoEYmVkcxgDIAMoCzJCLnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50QXNzaWdu' 'bWVudEJ5V2FyZFJlc3BvbnNlLlJvb20uQmVkUgRiZWRzEiAKC2NvbnNpc3RlbmN5GAQgASgJUg' - 'tjb25zaXN0ZW5jeRqTAgoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1l' + 'tjb25zaXN0ZW5jeRrDAgoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1l' 'EmkKB3BhdGllbnQYAyABKAsySi5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudEFzc2' 'lnbm1lbnRCeVdhcmRSZXNwb25zZS5Sb29tLkJlZC5QYXRpZW50SABSB3BhdGllbnSIAQESIAoL' - 'Y29uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5Gk8KB1BhdGllbnQSDgoCaWQYASABKAlSAm' - 'lkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3RlbmN5' - 'QgoKCF9wYXRpZW50'); + 'Y29uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5Gn8KB1BhdGllbnQSDgoCaWQYASABKAlSAm' + 'lkEhIKBG5hbWUYAiABKAlSBG5hbWUSLgoGZ2VuZGVyGAQgASgOMhYubGlicy5jb21tb24udjEu' + 'R2VuZGVyUgZnZW5kZXISIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3RlbmN5QgoKCF9wYX' + 'RpZW50'); @$core.Deprecated('Use getPatientDetailsRequestDescriptor instead') const GetPatientDetailsRequest$json = { @@ -563,6 +565,7 @@ const GetRecentPatientsResponse_Patient$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, + {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetRecentPatientsResponse.Room', '9': 0, '10': 'room', '17': true}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetRecentPatientsResponse.Bed', '9': 1, '10': 'bed', '17': true}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, @@ -580,12 +583,13 @@ final $typed_data.Uint8List getRecentPatientsResponseDescriptor = $convert.base6 'DnJlY2VudFBhdGllbnRzGksKA0JlZBIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbm' 'FtZRIgCgtjb25zaXN0ZW5jeRgDIAEoCVILY29uc2lzdGVuY3kaZQoEUm9vbRIOCgJpZBgBIAEo' 'CVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIXCgd3YXJkX2lkGAMgASgJUgZ3YXJkSWQSIAoLY2' - '9uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5GqUCCgdQYXRpZW50Eg4KAmlkGAEgASgJUgJp' + '9uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5GtUCCgdQYXRpZW50Eg4KAmlkGAEgASgJUgJp' 'ZBI6ChlodW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyGAIgASgJUhdodW1hblJlYWRhYmxlSWRlbn' - 'RpZmllchJOCgRyb29tGAMgASgLMjUuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFJlY2VudFBh' - 'dGllbnRzUmVzcG9uc2UuUm9vbUgAUgRyb29tiAEBEksKA2JlZBgEIAEoCzI0LnNlcnZpY2VzLn' - 'Rhc2tzX3N2Yy52MS5HZXRSZWNlbnRQYXRpZW50c1Jlc3BvbnNlLkJlZEgBUgNiZWSIAQESIAoL' - 'Y29uc2lzdGVuY3kYBSABKAlSC2NvbnNpc3RlbmN5QgcKBV9yb29tQgYKBF9iZWQ='); + 'RpZmllchIuCgZnZW5kZXIYBiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlchJO' + 'CgRyb29tGAMgASgLMjUuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFJlY2VudFBhdGllbnRzUm' + 'VzcG9uc2UuUm9vbUgAUgRyb29tiAEBEksKA2JlZBgEIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2' + 'Yy52MS5HZXRSZWNlbnRQYXRpZW50c1Jlc3BvbnNlLkJlZEgBUgNiZWSIAQESIAoLY29uc2lzdG' + 'VuY3kYBSABKAlSC2NvbnNpc3RlbmN5QgcKBV9yb29tQgYKBF9iZWQ='); @$core.Deprecated('Use updatePatientRequestDescriptor instead') const UpdatePatientRequest$json = { diff --git a/gen/go/services/tasks_svc/v1/patient_svc.pb.go b/gen/go/services/tasks_svc/v1/patient_svc.pb.go index bcf569096..ec1ed74d8 100644 --- a/gen/go/services/tasks_svc/v1/patient_svc.pb.go +++ b/gen/go/services/tasks_svc/v1/patient_svc.pb.go @@ -2007,9 +2007,10 @@ type GetPatientAssignmentByWardResponse_Room_Bed_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Consistency string `protobuf:"bytes,3,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Gender v1.Gender `protobuf:"varint,4,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + Consistency string `protobuf:"bytes,3,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) Reset() { @@ -2058,6 +2059,13 @@ func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetName() string { return "" } +func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetGender() v1.Gender { + if x != nil { + return x.Gender + } + return v1.Gender(0) +} + func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetConsistency() string { if x != nil { return x.Consistency @@ -2933,6 +2941,7 @@ type GetRecentPatientsResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Gender v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` Room *GetRecentPatientsResponse_Room `protobuf:"bytes,3,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetRecentPatientsResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3,oneof" json:"bed,omitempty"` Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` @@ -2984,6 +2993,13 @@ func (x *GetRecentPatientsResponse_Patient) GetHumanReadableIdentifier() string return "" } +func (x *GetRecentPatientsResponse_Patient) GetGender() v1.Gender { + if x != nil { + return x.Gender + } + return v1.Gender(0) +} + func (x *GetRecentPatientsResponse_Patient) GetRoom() *GetRecentPatientsResponse_Room { if x != nil { return x.Room @@ -3137,14 +3153,14 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, - 0x64, 0x22, 0xb7, 0x04, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x64, 0x22, 0xe7, 0x04, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xba, + 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xea, 0x03, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x62, @@ -3155,7 +3171,7 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x93, 0x02, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xc3, 0x02, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x69, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, @@ -3166,10 +3182,13 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4f, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x7f, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, + 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, + 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2a, 0x0a, 0x18, 0x47, @@ -3346,7 +3365,7 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xda, 0x04, 0x0a, 0x19, 0x47, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8a, 0x05, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, @@ -3366,12 +3385,15 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, - 0xa5, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0xd5, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, + 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, @@ -3673,50 +3695,52 @@ var file_services_tasks_svc_v1_patient_svc_proto_depIdxs = []int32{ 47, // 25: services.tasks_svc.v1.GetPatientsByWardResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date 32, // 26: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed 33, // 27: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - 49, // 28: services.tasks_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus - 37, // 29: services.tasks_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task.SubTask - 46, // 30: services.tasks_svc.v1.GetPatientListResponse.Patient.gender:type_name -> libs.common.v1.Gender - 47, // 31: services.tasks_svc.v1.GetPatientListResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date - 39, // 32: services.tasks_svc.v1.GetPatientListResponse.Patient.room:type_name -> services.tasks_svc.v1.GetPatientListResponse.Room - 38, // 33: services.tasks_svc.v1.GetPatientListResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetPatientListResponse.Bed - 41, // 34: services.tasks_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task - 49, // 35: services.tasks_svc.v1.GetPatientListResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus - 42, // 36: services.tasks_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task.SubTask - 44, // 37: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.room:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Room - 43, // 38: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Bed - 0, // 39: services.tasks_svc.v1.PatientService.CreatePatient:input_type -> services.tasks_svc.v1.CreatePatientRequest - 2, // 40: services.tasks_svc.v1.PatientService.GetPatient:input_type -> services.tasks_svc.v1.GetPatientRequest - 4, // 41: services.tasks_svc.v1.PatientService.GetPatientByBed:input_type -> services.tasks_svc.v1.GetPatientByBedRequest - 6, // 42: services.tasks_svc.v1.PatientService.GetPatientsByWard:input_type -> services.tasks_svc.v1.GetPatientsByWardRequest - 8, // 43: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.tasks_svc.v1.GetPatientAssignmentByWardRequest - 10, // 44: services.tasks_svc.v1.PatientService.GetPatientDetails:input_type -> services.tasks_svc.v1.GetPatientDetailsRequest - 12, // 45: services.tasks_svc.v1.PatientService.GetPatientList:input_type -> services.tasks_svc.v1.GetPatientListRequest - 14, // 46: services.tasks_svc.v1.PatientService.GetRecentPatients:input_type -> services.tasks_svc.v1.GetRecentPatientsRequest - 16, // 47: services.tasks_svc.v1.PatientService.UpdatePatient:input_type -> services.tasks_svc.v1.UpdatePatientRequest - 18, // 48: services.tasks_svc.v1.PatientService.AssignBed:input_type -> services.tasks_svc.v1.AssignBedRequest - 20, // 49: services.tasks_svc.v1.PatientService.UnassignBed:input_type -> services.tasks_svc.v1.UnassignBedRequest - 22, // 50: services.tasks_svc.v1.PatientService.DischargePatient:input_type -> services.tasks_svc.v1.DischargePatientRequest - 24, // 51: services.tasks_svc.v1.PatientService.ReadmitPatient:input_type -> services.tasks_svc.v1.ReadmitPatientRequest - 26, // 52: services.tasks_svc.v1.PatientService.DeletePatient:input_type -> services.tasks_svc.v1.DeletePatientRequest - 1, // 53: services.tasks_svc.v1.PatientService.CreatePatient:output_type -> services.tasks_svc.v1.CreatePatientResponse - 3, // 54: services.tasks_svc.v1.PatientService.GetPatient:output_type -> services.tasks_svc.v1.GetPatientResponse - 5, // 55: services.tasks_svc.v1.PatientService.GetPatientByBed:output_type -> services.tasks_svc.v1.GetPatientByBedResponse - 7, // 56: services.tasks_svc.v1.PatientService.GetPatientsByWard:output_type -> services.tasks_svc.v1.GetPatientsByWardResponse - 9, // 57: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse - 11, // 58: services.tasks_svc.v1.PatientService.GetPatientDetails:output_type -> services.tasks_svc.v1.GetPatientDetailsResponse - 13, // 59: services.tasks_svc.v1.PatientService.GetPatientList:output_type -> services.tasks_svc.v1.GetPatientListResponse - 15, // 60: services.tasks_svc.v1.PatientService.GetRecentPatients:output_type -> services.tasks_svc.v1.GetRecentPatientsResponse - 17, // 61: services.tasks_svc.v1.PatientService.UpdatePatient:output_type -> services.tasks_svc.v1.UpdatePatientResponse - 19, // 62: services.tasks_svc.v1.PatientService.AssignBed:output_type -> services.tasks_svc.v1.AssignBedResponse - 21, // 63: services.tasks_svc.v1.PatientService.UnassignBed:output_type -> services.tasks_svc.v1.UnassignBedResponse - 23, // 64: services.tasks_svc.v1.PatientService.DischargePatient:output_type -> services.tasks_svc.v1.DischargePatientResponse - 25, // 65: services.tasks_svc.v1.PatientService.ReadmitPatient:output_type -> services.tasks_svc.v1.ReadmitPatientResponse - 27, // 66: services.tasks_svc.v1.PatientService.DeletePatient:output_type -> services.tasks_svc.v1.DeletePatientResponse - 53, // [53:67] is the sub-list for method output_type - 39, // [39:53] is the sub-list for method input_type - 39, // [39:39] is the sub-list for extension type_name - 39, // [39:39] is the sub-list for extension extendee - 0, // [0:39] is the sub-list for field type_name + 46, // 28: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.gender:type_name -> libs.common.v1.Gender + 49, // 29: services.tasks_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus + 37, // 30: services.tasks_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task.SubTask + 46, // 31: services.tasks_svc.v1.GetPatientListResponse.Patient.gender:type_name -> libs.common.v1.Gender + 47, // 32: services.tasks_svc.v1.GetPatientListResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date + 39, // 33: services.tasks_svc.v1.GetPatientListResponse.Patient.room:type_name -> services.tasks_svc.v1.GetPatientListResponse.Room + 38, // 34: services.tasks_svc.v1.GetPatientListResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetPatientListResponse.Bed + 41, // 35: services.tasks_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task + 49, // 36: services.tasks_svc.v1.GetPatientListResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus + 42, // 37: services.tasks_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task.SubTask + 46, // 38: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.gender:type_name -> libs.common.v1.Gender + 44, // 39: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.room:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Room + 43, // 40: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Bed + 0, // 41: services.tasks_svc.v1.PatientService.CreatePatient:input_type -> services.tasks_svc.v1.CreatePatientRequest + 2, // 42: services.tasks_svc.v1.PatientService.GetPatient:input_type -> services.tasks_svc.v1.GetPatientRequest + 4, // 43: services.tasks_svc.v1.PatientService.GetPatientByBed:input_type -> services.tasks_svc.v1.GetPatientByBedRequest + 6, // 44: services.tasks_svc.v1.PatientService.GetPatientsByWard:input_type -> services.tasks_svc.v1.GetPatientsByWardRequest + 8, // 45: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:input_type -> services.tasks_svc.v1.GetPatientAssignmentByWardRequest + 10, // 46: services.tasks_svc.v1.PatientService.GetPatientDetails:input_type -> services.tasks_svc.v1.GetPatientDetailsRequest + 12, // 47: services.tasks_svc.v1.PatientService.GetPatientList:input_type -> services.tasks_svc.v1.GetPatientListRequest + 14, // 48: services.tasks_svc.v1.PatientService.GetRecentPatients:input_type -> services.tasks_svc.v1.GetRecentPatientsRequest + 16, // 49: services.tasks_svc.v1.PatientService.UpdatePatient:input_type -> services.tasks_svc.v1.UpdatePatientRequest + 18, // 50: services.tasks_svc.v1.PatientService.AssignBed:input_type -> services.tasks_svc.v1.AssignBedRequest + 20, // 51: services.tasks_svc.v1.PatientService.UnassignBed:input_type -> services.tasks_svc.v1.UnassignBedRequest + 22, // 52: services.tasks_svc.v1.PatientService.DischargePatient:input_type -> services.tasks_svc.v1.DischargePatientRequest + 24, // 53: services.tasks_svc.v1.PatientService.ReadmitPatient:input_type -> services.tasks_svc.v1.ReadmitPatientRequest + 26, // 54: services.tasks_svc.v1.PatientService.DeletePatient:input_type -> services.tasks_svc.v1.DeletePatientRequest + 1, // 55: services.tasks_svc.v1.PatientService.CreatePatient:output_type -> services.tasks_svc.v1.CreatePatientResponse + 3, // 56: services.tasks_svc.v1.PatientService.GetPatient:output_type -> services.tasks_svc.v1.GetPatientResponse + 5, // 57: services.tasks_svc.v1.PatientService.GetPatientByBed:output_type -> services.tasks_svc.v1.GetPatientByBedResponse + 7, // 58: services.tasks_svc.v1.PatientService.GetPatientsByWard:output_type -> services.tasks_svc.v1.GetPatientsByWardResponse + 9, // 59: services.tasks_svc.v1.PatientService.GetPatientAssignmentByWard:output_type -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse + 11, // 60: services.tasks_svc.v1.PatientService.GetPatientDetails:output_type -> services.tasks_svc.v1.GetPatientDetailsResponse + 13, // 61: services.tasks_svc.v1.PatientService.GetPatientList:output_type -> services.tasks_svc.v1.GetPatientListResponse + 15, // 62: services.tasks_svc.v1.PatientService.GetRecentPatients:output_type -> services.tasks_svc.v1.GetRecentPatientsResponse + 17, // 63: services.tasks_svc.v1.PatientService.UpdatePatient:output_type -> services.tasks_svc.v1.UpdatePatientResponse + 19, // 64: services.tasks_svc.v1.PatientService.AssignBed:output_type -> services.tasks_svc.v1.AssignBedResponse + 21, // 65: services.tasks_svc.v1.PatientService.UnassignBed:output_type -> services.tasks_svc.v1.UnassignBedResponse + 23, // 66: services.tasks_svc.v1.PatientService.DischargePatient:output_type -> services.tasks_svc.v1.DischargePatientResponse + 25, // 67: services.tasks_svc.v1.PatientService.ReadmitPatient:output_type -> services.tasks_svc.v1.ReadmitPatientResponse + 27, // 68: services.tasks_svc.v1.PatientService.DeletePatient:output_type -> services.tasks_svc.v1.DeletePatientResponse + 55, // [55:69] is the sub-list for method output_type + 41, // [41:55] is the sub-list for method input_type + 41, // [41:41] is the sub-list for extension type_name + 41, // [41:41] is the sub-list for extension extendee + 0, // [0:41] is the sub-list for field type_name } func init() { file_services_tasks_svc_v1_patient_svc_proto_init() } diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts index 5e71f7aba..75b99b34e 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts @@ -489,6 +489,9 @@ export namespace GetPatientAssignmentByWardResponse { getName(): string; setName(value: string): Patient; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): Patient; + getConsistency(): string; setConsistency(value: string): Patient; @@ -504,6 +507,7 @@ export namespace GetPatientAssignmentByWardResponse { export type AsObject = { id: string, name: string, + gender: libs_common_v1_types_pb.Gender, consistency: string, } } @@ -1123,6 +1127,9 @@ export namespace GetRecentPatientsResponse { getHumanReadableIdentifier(): string; setHumanReadableIdentifier(value: string): Patient; + getGender(): libs_common_v1_types_pb.Gender; + setGender(value: libs_common_v1_types_pb.Gender): Patient; + getRoom(): GetRecentPatientsResponse.Room | undefined; setRoom(value?: GetRecentPatientsResponse.Room): Patient; hasRoom(): boolean; @@ -1148,6 +1155,7 @@ export namespace GetRecentPatientsResponse { export type AsObject = { id: string, humanReadableIdentifier: string, + gender: libs_common_v1_types_pb.Gender, room?: GetRecentPatientsResponse.Room.AsObject, bed?: GetRecentPatientsResponse.Bed.AsObject, consistency: string, diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js index 868318f4b..d27d2496b 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js @@ -4113,6 +4113,7 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), + gender: jspb.Message.getFieldWithDefault(msg, 4, 0), consistency: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -4158,6 +4159,10 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; + case 4: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setConsistency(value); @@ -4205,6 +4210,13 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. f ); } + f = message.getGender(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } f = message.getConsistency(); if (f.length > 0) { writer.writeString( @@ -4251,6 +4263,24 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. }; +/** + * optional libs.common.v1.Gender gender = 4; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient} returns this + */ +proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.prototype.setGender = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + /** * optional string consistency = 3; * @return {string} @@ -8693,6 +8723,7 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.toObject = functio var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), + gender: jspb.Message.getFieldWithDefault(msg, 6, 0), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetRecentPatientsResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.tasks_svc.v1.GetRecentPatientsResponse.Bed.toObject(includeInstance, f), consistency: jspb.Message.getFieldWithDefault(msg, 5, "") @@ -8740,6 +8771,10 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.deserializeBinaryF var value = /** @type {string} */ (reader.readString()); msg.setHumanReadableIdentifier(value); break; + case 6: + var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); + msg.setGender(value); + break; case 3: var value = new proto.services.tasks_svc.v1.GetRecentPatientsResponse.Room; reader.readMessage(value,proto.services.tasks_svc.v1.GetRecentPatientsResponse.Room.deserializeBinaryFromReader); @@ -8797,6 +8832,13 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.serializeBinaryToW f ); } + f = message.getGender(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } f = message.getRoom(); if (f != null) { writer.writeMessage( @@ -8859,6 +8901,24 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.setHuman }; +/** + * optional libs.common.v1.Gender gender = 6; + * @return {!proto.libs.common.v1.Gender} + */ +proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.getGender = function() { + return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.libs.common.v1.Gender} value + * @return {!proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient} returns this + */ +proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.setGender = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + /** * optional Room room = 3; * @return {?proto.services.tasks_svc.v1.GetRecentPatientsResponse.Room} diff --git a/proto/services/tasks_svc/v1/patient_svc.proto b/proto/services/tasks_svc/v1/patient_svc.proto index c8ad10ea3..03f66779a 100644 --- a/proto/services/tasks_svc/v1/patient_svc.proto +++ b/proto/services/tasks_svc/v1/patient_svc.proto @@ -128,6 +128,7 @@ message GetPatientAssignmentByWardResponse { message Patient { string id = 1; string name = 2; + libs.common.v1.Gender gender = 4; string consistency = 3; } } @@ -273,6 +274,7 @@ message GetRecentPatientsResponse { message Patient { string id = 1; string human_readable_identifier = 2; + libs.common.v1.Gender gender = 6; optional Room room = 3; optional Bed bed = 4; string consistency = 5; diff --git a/services/tasks-svc/internal/patient/api/grpc.go b/services/tasks-svc/internal/patient/api/grpc.go index 4e95783a3..a054d4641 100644 --- a/services/tasks-svc/internal/patient/api/grpc.go +++ b/services/tasks-svc/internal/patient/api/grpc.go @@ -6,7 +6,6 @@ import ( "context" v1 "gen/libs/common/v1" pb "gen/services/tasks_svc/v1" - "google.golang.org/protobuf/types/known/timestamppb" "hwauthz" "hwauthz/commonPerm" "hwdb" @@ -15,6 +14,8 @@ import ( "hwutil" "time" + "google.golang.org/protobuf/types/known/timestamppb" + "github.com/google/uuid" zlog "github.com/rs/zerolog/log" "google.golang.org/grpc/codes" @@ -174,6 +175,8 @@ func (s *PatientGrpcService) GetPatientByBed( Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, + Gender: patient.Gender, + DateOfBirth: formatDateOfBirth(patient.DateOfBirth), BedId: req.GetBedId(), Consistency: patient.Consistency, }, nil @@ -464,6 +467,7 @@ func (s *PatientGrpcService) GetRecentPatients( return &pb.GetRecentPatientsResponse_Patient{ Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, + Gender: patient.Gender, Room: roomRes, Bed: bedRes, Consistency: patient.Consistency, @@ -633,10 +637,11 @@ func (s *PatientGrpcService) GetPatientAssignmentByWard( Patient: hwutil.MapIf( bedWithPatient.Patient != nil, bedWithPatient.Patient, - func(row *models.PatientWithConsistency) pb.GetPatientAssignmentByWardResponse_Room_Bed_Patient { + func(row *models.PatientBaseWithConsistency) pb.GetPatientAssignmentByWardResponse_Room_Bed_Patient { return pb.GetPatientAssignmentByWardResponse_Room_Bed_Patient{ Id: bedWithPatient.Patient.ID.String(), Name: bedWithPatient.Patient.HumanReadableIdentifier, + Gender: bedWithPatient.Patient.Gender, Consistency: bedWithPatient.Patient.Consistency, } }), diff --git a/services/tasks-svc/internal/patient/models/patient.go b/services/tasks-svc/internal/patient/models/patient.go index 1d03d12ef..3e2a23f4b 100644 --- a/services/tasks-svc/internal/patient/models/patient.go +++ b/services/tasks-svc/internal/patient/models/patient.go @@ -8,16 +8,20 @@ import ( "tasks-svc/internal/task/models" ) -type Patient struct { +type PatientBase struct { ID uuid.UUID HumanReadableIdentifier string - Notes string - BedID uuid.NullUUID - IsDischarged bool - CreatedAt time.Time - UpdatedAt time.Time Gender v1.Gender - DateOfBirth *time.Time +} + +type Patient struct { + PatientBase + Notes string + BedID uuid.NullUUID + IsDischarged bool + CreatedAt time.Time + UpdatedAt time.Time + DateOfBirth *time.Time } type PatientWithConsistency struct { @@ -25,6 +29,11 @@ type PatientWithConsistency struct { Consistency string } +type PatientBaseWithConsistency struct { + PatientBase + Consistency string +} + type PatientDetails struct { PatientWithConsistency Tasks []*models.TaskWithConsistency @@ -47,7 +56,7 @@ type Room struct { type BedWithPatient struct { Bed - Patient *PatientWithConsistency + Patient *PatientBaseWithConsistency } type RoomWithBedsWithPatient struct { diff --git a/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go b/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go index f8793c9ba..354dea888 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go @@ -68,15 +68,17 @@ func NewGetAllPatientsWithDetailsQueryHandler(authz hwauthz.AuthZ) GetAllPatient patientDetail = &models.PatientDetails{ PatientWithConsistency: models.PatientWithConsistency{ Patient: models.Patient{ - ID: row.Patient.ID, - HumanReadableIdentifier: row.Patient.HumanReadableIdentifier, - Notes: row.Patient.Notes, - BedID: row.Patient.BedID, - IsDischarged: row.Patient.IsDischarged, - CreatedAt: row.Patient.CreatedAt.Time, - UpdatedAt: row.Patient.UpdatedAt.Time, - Gender: v1.Gender(row.Patient.Gender), - DateOfBirth: hwdb.DateToTime(row.Patient.DateOfBirth), + PatientBase: models.PatientBase{ + ID: row.Patient.ID, + HumanReadableIdentifier: row.Patient.HumanReadableIdentifier, + Gender: v1.Gender(row.Patient.Gender), + }, + Notes: row.Patient.Notes, + BedID: row.Patient.BedID, + IsDischarged: row.Patient.IsDischarged, + CreatedAt: row.Patient.CreatedAt.Time, + UpdatedAt: row.Patient.UpdatedAt.Time, + DateOfBirth: hwdb.DateToTime(row.Patient.DateOfBirth), }, Consistency: common.ConsistencyToken(row.Patient.Consistency).String(), //nolint:gosec }, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go index 2eacdbad1..03569bbfe 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go @@ -56,13 +56,13 @@ func NewGetPatientAssignmentByWardQueryHandler(authz hwauthz.AuthZ) GetPatientAs if bedRow.RoomID != roomRow.RoomID || !bedRow.BedID.Valid { return nil } - var patient *models.PatientWithConsistency + var patient *models.PatientBaseWithConsistency if bedRow.PatientID.Valid { - patient = &models.PatientWithConsistency{ - Patient: models.Patient{ + patient = &models.PatientBaseWithConsistency{ + PatientBase: models.PatientBase{ ID: bedRow.PatientID.UUID, HumanReadableIdentifier: *bedRow.PatientHumanReadableIdentifier, - // TODO + Gender: 0, }, Consistency: common.ConsistencyToken(roomRow.RoomConsistency).String(), //nolint:gosec } diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go index 95fc6ba82..c01f0abad 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go @@ -51,15 +51,17 @@ func NewGetPatientByBedQueryHandler(authz hwauthz.AuthZ) GetPatientByBedQueryHan // return return &models.PatientWithConsistency{ Patient: models.Patient{ - ID: patient.ID, - HumanReadableIdentifier: patient.HumanReadableIdentifier, - Notes: patient.Notes, - BedID: patient.BedID, - IsDischarged: patient.IsDischarged, - CreatedAt: patient.CreatedAt.Time, - UpdatedAt: patient.UpdatedAt.Time, - Gender: v1.Gender(patient.Gender), - DateOfBirth: hwdb.DateToTime(patient.DateOfBirth), + PatientBase: models.PatientBase{ + ID: patient.ID, + HumanReadableIdentifier: patient.HumanReadableIdentifier, + Gender: v1.Gender(patient.Gender), + }, + Notes: patient.Notes, + BedID: patient.BedID, + IsDischarged: patient.IsDischarged, + CreatedAt: patient.CreatedAt.Time, + UpdatedAt: patient.UpdatedAt.Time, + DateOfBirth: hwdb.DateToTime(patient.DateOfBirth), }, Consistency: common.ConsistencyToken(patient.Consistency).String(), //nolint:gosec }, nil diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go index 3a26dfc77..194d3250e 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go @@ -70,15 +70,17 @@ func NewGetPatientWithDetailsByIDQueryHandler( return &models.PatientDetails{ PatientWithConsistency: models.PatientWithConsistency{ Patient: models.Patient{ - ID: patientRes.ID, - HumanReadableIdentifier: patientRes.HumanReadableIdentifier, - Notes: patientRes.Notes, - BedID: patientRes.BedID, - IsDischarged: patientRes.IsDischarged, - CreatedAt: patientRes.CreatedAt.Time, - UpdatedAt: patientRes.UpdatedAt.Time, - Gender: v1.Gender(patientRes.Gender), - DateOfBirth: hwdb.DateToTime(patientRes.DateOfBirth), + PatientBase: models.PatientBase{ + ID: patientRes.ID, + HumanReadableIdentifier: patientRes.HumanReadableIdentifier, + Gender: v1.Gender(patientRes.Gender), + }, + Notes: patientRes.Notes, + BedID: patientRes.BedID, + IsDischarged: patientRes.IsDischarged, + CreatedAt: patientRes.CreatedAt.Time, + UpdatedAt: patientRes.UpdatedAt.Time, + DateOfBirth: hwdb.DateToTime(patientRes.DateOfBirth), }, Consistency: common.ConsistencyToken(patientRes.Consistency).String(), //nolint:gosec }, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go b/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go index 5d82704e1..740004988 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go @@ -50,15 +50,17 @@ func NewGetPatientsByWardQueryHandler(authz hwauthz.AuthZ) GetPatientsByWardQuer } res := &models.PatientWithConsistency{ Patient: models.Patient{ - ID: patient.ID, - HumanReadableIdentifier: patient.HumanReadableIdentifier, - Notes: patient.Notes, - BedID: patient.BedID, - IsDischarged: patient.IsDischarged, - CreatedAt: patient.CreatedAt.Time, - UpdatedAt: patient.UpdatedAt.Time, - Gender: v1.Gender(patient.Gender), - DateOfBirth: hwdb.DateToTime(patient.DateOfBirth), + PatientBase: models.PatientBase{ + ID: patient.ID, + HumanReadableIdentifier: patient.HumanReadableIdentifier, + Gender: v1.Gender(patient.Gender), + }, + Notes: patient.Notes, + BedID: patient.BedID, + IsDischarged: patient.IsDischarged, + CreatedAt: patient.CreatedAt.Time, + UpdatedAt: patient.UpdatedAt.Time, + DateOfBirth: hwdb.DateToTime(patient.DateOfBirth), }, Consistency: common.ConsistencyToken(patient.Consistency).String(), //nolint:gosec } From d4d51d9dbacfb03006f4cc909590057817240e5f Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Fri, 3 Jan 2025 17:11:51 +0100 Subject: [PATCH 09/10] use truncate --- services/property-svc/internal/property-value/api/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/property-svc/internal/property-value/api/grpc.go b/services/property-svc/internal/property-value/api/grpc.go index 62b1db98b..5d1528934 100644 --- a/services/property-svc/internal/property-value/api/grpc.go +++ b/services/property-svc/internal/property-value/api/grpc.go @@ -222,7 +222,7 @@ func (s *PropertyValueGrpcService) GetAttachedPropertyValues( case pnv.Value.DateValue != nil: res.Value = &pb.GetAttachedPropertyValuesResponse_Value_DateValue{ DateValue: &commonPb.Date{ - Date: timestamppb.New(*pnv.Value.DateValue), + Date: timestamppb.New(hwutil.TruncateTimeToDay(*pnv.Value.DateValue)), }, } default: From fdc5a55a2ba53f373a261f3bcc1a11a1a52ba46c Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Mon, 24 Feb 2025 15:19:36 +0100 Subject: [PATCH 10/10] gender -> sex --- gen/dart/lib/libs/common/v1/types.pbenum.dart | 28 +- gen/dart/lib/libs/common/v1/types.pbjson.dart | 22 +- .../services/tasks_svc/v1/patient_svc.pb.dart | 144 +- .../tasks_svc/v1/patient_svc.pbjson.dart | 175 ++- gen/go/libs/common/v1/types.pb.go | 81 +- .../services/tasks_svc/v1/patient_svc.pb.go | 1197 ++++++++--------- gen/ts/libs/common/v1/types_pb.d.ts | 10 +- gen/ts/libs/common/v1/types_pb.js | 12 +- .../services/tasks_svc/v1/patient_svc_pb.d.ts | 74 +- .../services/tasks_svc/v1/patient_svc_pb.js | 188 +-- proto/libs/common/v1/types.proto | 10 +- proto/services/tasks_svc/v1/patient_svc.proto | 18 +- .../internal/patient/aggregate/actions.go | 8 +- .../internal/patient/aggregate/aggregate.go | 10 +- .../patient/aggregate/aggregate_test.go | 30 +- .../tasks-svc/internal/patient/api/grpc.go | 18 +- .../patient/commands/v1/create_patient.go | 6 +- .../patient/commands/v1/update_patient.go | 8 +- .../internal/patient/events/v1/events.go | 22 +- .../internal/patient/models/patient.go | 2 +- .../patient_postgres_projection.go | 10 +- .../v1/get_all_patients_with_details.go | 2 +- .../v1/get_patient_assignment_by_ward.go | 2 +- .../patient/queries/v1/get_patient_by_bed.go | 2 +- .../v1/get_patient_with_details_by_id.go | 2 +- .../queries/v1/get_patients_by_ward.go | 2 +- .../migrations/000030_gender_dob.up.sql | 2 - ...r_dob.down.sql => 000030_sex_dob.down.sql} | 2 +- .../migrations/000030_sex_dob.up.sql | 2 + services/tasks-svc/repos/bed_repo/models.go | 2 +- services/tasks-svc/repos/patient_repo.sql | 4 +- .../tasks-svc/repos/patient_repo/models.go | 2 +- .../repos/patient_repo/patient_repo.sql.go | 30 +- services/tasks-svc/repos/room_repo/models.go | 2 +- services/tasks-svc/repos/task_repo/models.go | 2 +- .../repos/task_repo/task_repo.sql.go | 8 +- .../repos/task_template_repo/models.go | 2 +- services/tasks-svc/repos/ward_repo/models.go | 2 +- services/tasks-svc/schema.sql | 2 +- .../tasks-svc/stories/PatientCRUD_test.go | 28 +- 40 files changed, 1083 insertions(+), 1090 deletions(-) delete mode 100644 services/tasks-svc/migrations/000030_gender_dob.up.sql rename services/tasks-svc/migrations/{000030_gender_dob.down.sql => 000030_sex_dob.down.sql} (53%) create mode 100644 services/tasks-svc/migrations/000030_sex_dob.up.sql diff --git a/gen/dart/lib/libs/common/v1/types.pbenum.dart b/gen/dart/lib/libs/common/v1/types.pbenum.dart index 7deb84246..bdfca602b 100644 --- a/gen/dart/lib/libs/common/v1/types.pbenum.dart +++ b/gen/dart/lib/libs/common/v1/types.pbenum.dart @@ -13,23 +13,23 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -class Gender extends $pb.ProtobufEnum { - static const Gender GENDER_UNSPECIFIED = Gender._(0, _omitEnumNames ? '' : 'GENDER_UNSPECIFIED'); - static const Gender GENDER_FEMALE = Gender._(1, _omitEnumNames ? '' : 'GENDER_FEMALE'); - static const Gender GENDER_MALE = Gender._(2, _omitEnumNames ? '' : 'GENDER_MALE'); - static const Gender GENDER_DIVERSE = Gender._(3, _omitEnumNames ? '' : 'GENDER_DIVERSE'); - - static const $core.List values = [ - GENDER_UNSPECIFIED, - GENDER_FEMALE, - GENDER_MALE, - GENDER_DIVERSE, +class Sex extends $pb.ProtobufEnum { + static const Sex SEX_UNSPECIFIED = Sex._(0, _omitEnumNames ? '' : 'SEX_UNSPECIFIED'); + static const Sex SEX_FEMALE = Sex._(1, _omitEnumNames ? '' : 'SEX_FEMALE'); + static const Sex SEX_MALE = Sex._(2, _omitEnumNames ? '' : 'SEX_MALE'); + static const Sex SEX_DIVERSE = Sex._(3, _omitEnumNames ? '' : 'SEX_DIVERSE'); + + static const $core.List values = [ + SEX_UNSPECIFIED, + SEX_FEMALE, + SEX_MALE, + SEX_DIVERSE, ]; - static final $core.Map<$core.int, Gender> _byValue = $pb.ProtobufEnum.initByValue(values); - static Gender? valueOf($core.int value) => _byValue[value]; + static final $core.Map<$core.int, Sex> _byValue = $pb.ProtobufEnum.initByValue(values); + static Sex? valueOf($core.int value) => _byValue[value]; - const Gender._($core.int v, $core.String n) : super(v, n); + const Sex._($core.int v, $core.String n) : super(v, n); } diff --git a/gen/dart/lib/libs/common/v1/types.pbjson.dart b/gen/dart/lib/libs/common/v1/types.pbjson.dart index 3d8f9a512..a0344a50c 100644 --- a/gen/dart/lib/libs/common/v1/types.pbjson.dart +++ b/gen/dart/lib/libs/common/v1/types.pbjson.dart @@ -13,21 +13,21 @@ import 'dart:convert' as $convert; import 'dart:core' as $core; import 'dart:typed_data' as $typed_data; -@$core.Deprecated('Use genderDescriptor instead') -const Gender$json = { - '1': 'Gender', +@$core.Deprecated('Use sexDescriptor instead') +const Sex$json = { + '1': 'Sex', '2': [ - {'1': 'GENDER_UNSPECIFIED', '2': 0}, - {'1': 'GENDER_FEMALE', '2': 1}, - {'1': 'GENDER_MALE', '2': 2}, - {'1': 'GENDER_DIVERSE', '2': 3}, + {'1': 'SEX_UNSPECIFIED', '2': 0}, + {'1': 'SEX_FEMALE', '2': 1}, + {'1': 'SEX_MALE', '2': 2}, + {'1': 'SEX_DIVERSE', '2': 3}, ], }; -/// Descriptor for `Gender`. Decode as a `google.protobuf.EnumDescriptorProto`. -final $typed_data.Uint8List genderDescriptor = $convert.base64Decode( - 'CgZHZW5kZXISFgoSR0VOREVSX1VOU1BFQ0lGSUVEEAASEQoNR0VOREVSX0ZFTUFMRRABEg8KC0' - 'dFTkRFUl9NQUxFEAISEgoOR0VOREVSX0RJVkVSU0UQAw=='); +/// Descriptor for `Sex`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List sexDescriptor = $convert.base64Decode( + 'CgNTZXgSEwoPU0VYX1VOU1BFQ0lGSUVEEAASDgoKU0VYX0ZFTUFMRRABEgwKCFNFWF9NQUxFEA' + 'ISDwoLU0VYX0RJVkVSU0UQAw=='); @$core.Deprecated('Use dateDescriptor instead') const Date$json = { diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart index 1a8aafb0e..6307bc3c2 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pb.dart @@ -22,7 +22,7 @@ class CreatePatientRequest extends $pb.GeneratedMessage { factory CreatePatientRequest({ $core.String? humanReadableIdentifier, $core.String? notes, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -32,8 +32,8 @@ class CreatePatientRequest extends $pb.GeneratedMessage { if (notes != null) { $result.notes = notes; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -47,7 +47,7 @@ class CreatePatientRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePatientRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'services.tasks_svc.v1'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(2, _omitFieldNames ? '' : 'notes') - ..e<$18.Gender>(3, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(3, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(4, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -92,13 +92,13 @@ class CreatePatientRequest extends $pb.GeneratedMessage { void clearNotes() => clearField(2); @$pb.TagNumber(3) - $18.Gender get gender => $_getN(2); + $18.Sex get sex => $_getN(2); @$pb.TagNumber(3) - set gender($18.Gender v) { setField(3, v); } + set sex($18.Sex v) { setField(3, v); } @$pb.TagNumber(3) - $core.bool hasGender() => $_has(2); + $core.bool hasSex() => $_has(2); @$pb.TagNumber(3) - void clearGender() => clearField(3); + void clearSex() => clearField(3); @$pb.TagNumber(4) $18.Date get dateOfBirth => $_getN(3); @@ -404,7 +404,7 @@ class GetPatientResponse extends $pb.GeneratedMessage { GetPatientResponse_Room? room, GetPatientResponse_Bed? bed, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -426,8 +426,8 @@ class GetPatientResponse extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -445,7 +445,7 @@ class GetPatientResponse extends $pb.GeneratedMessage { ..aOM(7, _omitFieldNames ? '' : 'room', subBuilder: GetPatientResponse_Room.create) ..aOM(8, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientResponse_Bed.create) ..aOS(9, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(10, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(10, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(11, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -530,13 +530,13 @@ class GetPatientResponse extends $pb.GeneratedMessage { void clearConsistency() => clearField(9); @$pb.TagNumber(10) - $18.Gender get gender => $_getN(6); + $18.Sex get sex => $_getN(6); @$pb.TagNumber(10) - set gender($18.Gender v) { setField(10, v); } + set sex($18.Sex v) { setField(10, v); } @$pb.TagNumber(10) - $core.bool hasGender() => $_has(6); + $core.bool hasSex() => $_has(6); @$pb.TagNumber(10) - void clearGender() => clearField(10); + void clearSex() => clearField(10); @$pb.TagNumber(11) $18.Date get dateOfBirth => $_getN(7); @@ -607,7 +607,7 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { $core.String? notes, $core.String? bedId, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -626,8 +626,8 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -644,7 +644,7 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') ..aOS(5, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(6, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(6, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(7, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -716,13 +716,13 @@ class GetPatientByBedResponse extends $pb.GeneratedMessage { void clearConsistency() => clearField(5); @$pb.TagNumber(6) - $18.Gender get gender => $_getN(5); + $18.Sex get sex => $_getN(5); @$pb.TagNumber(6) - set gender($18.Gender v) { setField(6, v); } + set sex($18.Sex v) { setField(6, v); } @$pb.TagNumber(6) - $core.bool hasGender() => $_has(5); + $core.bool hasSex() => $_has(5); @$pb.TagNumber(6) - void clearGender() => clearField(6); + void clearSex() => clearField(6); @$pb.TagNumber(7) $18.Date get dateOfBirth => $_getN(6); @@ -793,7 +793,7 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { $core.String? notes, $core.String? bedId, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -812,8 +812,8 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -830,7 +830,7 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'bedId') ..aOS(5, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(6, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(6, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(7, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -902,13 +902,13 @@ class GetPatientsByWardResponse_Patient extends $pb.GeneratedMessage { void clearConsistency() => clearField(5); @$pb.TagNumber(6) - $18.Gender get gender => $_getN(5); + $18.Sex get sex => $_getN(5); @$pb.TagNumber(6) - set gender($18.Gender v) { setField(6, v); } + set sex($18.Sex v) { setField(6, v); } @$pb.TagNumber(6) - $core.bool hasGender() => $_has(5); + $core.bool hasSex() => $_has(5); @$pb.TagNumber(6) - void clearGender() => clearField(6); + void clearSex() => clearField(6); @$pb.TagNumber(7) $18.Date get dateOfBirth => $_getN(6); @@ -1021,7 +1021,7 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM $core.String? id, $core.String? name, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, }) { final $result = create(); if (id != null) { @@ -1033,8 +1033,8 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } return $result; } @@ -1046,7 +1046,7 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(4, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(4, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..hasRequiredFields = false ; @@ -1099,13 +1099,13 @@ class GetPatientAssignmentByWardResponse_Room_Bed_Patient extends $pb.GeneratedM void clearConsistency() => clearField(3); @$pb.TagNumber(4) - $18.Gender get gender => $_getN(3); + $18.Sex get sex => $_getN(3); @$pb.TagNumber(4) - set gender($18.Gender v) { setField(4, v); } + set sex($18.Sex v) { setField(4, v); } @$pb.TagNumber(4) - $core.bool hasGender() => $_has(3); + $core.bool hasSex() => $_has(3); @$pb.TagNumber(4) - void clearGender() => clearField(4); + void clearSex() => clearField(4); } class GetPatientAssignmentByWardResponse_Room_Bed extends $pb.GeneratedMessage { @@ -1796,7 +1796,7 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { GetPatientDetailsResponse_Bed? bed, $core.bool? isDischarged, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -1824,8 +1824,8 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -1845,7 +1845,7 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { ..aOM(6, _omitFieldNames ? '' : 'bed', subBuilder: GetPatientDetailsResponse_Bed.create) ..aOB(7, _omitFieldNames ? '' : 'isDischarged') ..aOS(8, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(9, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(9, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(10, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -1942,13 +1942,13 @@ class GetPatientDetailsResponse extends $pb.GeneratedMessage { void clearConsistency() => clearField(8); @$pb.TagNumber(9) - $18.Gender get gender => $_getN(8); + $18.Sex get sex => $_getN(8); @$pb.TagNumber(9) - set gender($18.Gender v) { setField(9, v); } + set sex($18.Sex v) { setField(9, v); } @$pb.TagNumber(9) - $core.bool hasGender() => $_has(8); + $core.bool hasSex() => $_has(8); @$pb.TagNumber(9) - void clearGender() => clearField(9); + void clearSex() => clearField(9); @$pb.TagNumber(10) $18.Date get dateOfBirth => $_getN(9); @@ -2191,7 +2191,7 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { $core.String? notes, $core.Iterable? tasks, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -2216,8 +2216,8 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -2236,7 +2236,7 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'notes') ..pc(6, _omitFieldNames ? '' : 'tasks', $pb.PbFieldType.PM, subBuilder: GetPatientListResponse_Task.create) ..aOS(7, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(8, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(8, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(9, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -2324,13 +2324,13 @@ class GetPatientListResponse_Patient extends $pb.GeneratedMessage { void clearConsistency() => clearField(7); @$pb.TagNumber(8) - $18.Gender get gender => $_getN(7); + $18.Sex get sex => $_getN(7); @$pb.TagNumber(8) - set gender($18.Gender v) { setField(8, v); } + set sex($18.Sex v) { setField(8, v); } @$pb.TagNumber(8) - $core.bool hasGender() => $_has(7); + $core.bool hasSex() => $_has(7); @$pb.TagNumber(8) - void clearGender() => clearField(8); + void clearSex() => clearField(8); @$pb.TagNumber(9) $18.Date get dateOfBirth => $_getN(8); @@ -2847,7 +2847,7 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { GetRecentPatientsResponse_Room? room, GetRecentPatientsResponse_Bed? bed, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, }) { final $result = create(); if (id != null) { @@ -2865,8 +2865,8 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } return $result; } @@ -2880,7 +2880,7 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { ..aOM(3, _omitFieldNames ? '' : 'room', subBuilder: GetRecentPatientsResponse_Room.create) ..aOM(4, _omitFieldNames ? '' : 'bed', subBuilder: GetRecentPatientsResponse_Bed.create) ..aOS(5, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(6, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(6, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..hasRequiredFields = false ; @@ -2955,13 +2955,13 @@ class GetRecentPatientsResponse_Patient extends $pb.GeneratedMessage { void clearConsistency() => clearField(5); @$pb.TagNumber(6) - $18.Gender get gender => $_getN(5); + $18.Sex get sex => $_getN(5); @$pb.TagNumber(6) - set gender($18.Gender v) { setField(6, v); } + set sex($18.Sex v) { setField(6, v); } @$pb.TagNumber(6) - $core.bool hasGender() => $_has(5); + $core.bool hasSex() => $_has(5); @$pb.TagNumber(6) - void clearGender() => clearField(6); + void clearSex() => clearField(6); } class GetRecentPatientsResponse extends $pb.GeneratedMessage { @@ -3014,7 +3014,7 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { $core.String? humanReadableIdentifier, $core.String? notes, $core.String? consistency, - $18.Gender? gender, + $18.Sex? sex, $18.Date? dateOfBirth, }) { final $result = create(); @@ -3030,8 +3030,8 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { if (consistency != null) { $result.consistency = consistency; } - if (gender != null) { - $result.gender = gender; + if (sex != null) { + $result.sex = sex; } if (dateOfBirth != null) { $result.dateOfBirth = dateOfBirth; @@ -3047,7 +3047,7 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'humanReadableIdentifier') ..aOS(3, _omitFieldNames ? '' : 'notes') ..aOS(4, _omitFieldNames ? '' : 'consistency') - ..e<$18.Gender>(5, _omitFieldNames ? '' : 'gender', $pb.PbFieldType.OE, defaultOrMaker: $18.Gender.GENDER_UNSPECIFIED, valueOf: $18.Gender.valueOf, enumValues: $18.Gender.values) + ..e<$18.Sex>(5, _omitFieldNames ? '' : 'sex', $pb.PbFieldType.OE, defaultOrMaker: $18.Sex.SEX_UNSPECIFIED, valueOf: $18.Sex.valueOf, enumValues: $18.Sex.values) ..aOM<$18.Date>(6, _omitFieldNames ? '' : 'dateOfBirth', subBuilder: $18.Date.create) ..hasRequiredFields = false ; @@ -3110,13 +3110,13 @@ class UpdatePatientRequest extends $pb.GeneratedMessage { void clearConsistency() => clearField(4); @$pb.TagNumber(5) - $18.Gender get gender => $_getN(4); + $18.Sex get sex => $_getN(4); @$pb.TagNumber(5) - set gender($18.Gender v) { setField(5, v); } + set sex($18.Sex v) { setField(5, v); } @$pb.TagNumber(5) - $core.bool hasGender() => $_has(4); + $core.bool hasSex() => $_has(4); @$pb.TagNumber(5) - void clearGender() => clearField(5); + void clearSex() => clearField(5); @$pb.TagNumber(6) $18.Date get dateOfBirth => $_getN(5); diff --git a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart index e0a331797..89b02ee13 100644 --- a/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart +++ b/gen/dart/lib/services/tasks_svc/v1/patient_svc.pbjson.dart @@ -19,12 +19,12 @@ const CreatePatientRequest$json = { '2': [ {'1': 'human_readable_identifier', '3': 1, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'notes', '17': true}, - {'1': 'gender', '3': 3, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 1, '10': 'gender', '17': true}, + {'1': 'sex', '3': 3, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '9': 1, '10': 'sex', '17': true}, {'1': 'date_of_birth', '3': 4, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 2, '10': 'dateOfBirth', '17': true}, ], '8': [ {'1': '_notes'}, - {'1': '_gender'}, + {'1': '_sex'}, {'1': '_date_of_birth'}, ], }; @@ -32,10 +32,10 @@ const CreatePatientRequest$json = { /// Descriptor for `CreatePatientRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createPatientRequestDescriptor = $convert.base64Decode( 'ChRDcmVhdGVQYXRpZW50UmVxdWVzdBI6ChlodW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyGAEgAS' - 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIZCgVub3RlcxgCIAEoCUgAUgVub3Rlc4gBARIz' - 'CgZnZW5kZXIYAyABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJIAVIGZ2VuZGVyiAEBEj0KDW' - 'RhdGVfb2ZfYmlydGgYBCABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAJSC2RhdGVPZkJpcnRo' - 'iAEBQggKBl9ub3Rlc0IJCgdfZ2VuZGVyQhAKDl9kYXRlX29mX2JpcnRo'); + 'gJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIZCgVub3RlcxgCIAEoCUgAUgVub3Rlc4gBARIq' + 'CgNzZXgYAyABKA4yEy5saWJzLmNvbW1vbi52MS5TZXhIAVIDc2V4iAEBEj0KDWRhdGVfb2ZfYm' + 'lydGgYBCABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSAJSC2RhdGVPZkJpcnRoiAEBQggKBl9u' + 'b3Rlc0IGCgRfc2V4QhAKDl9kYXRlX29mX2JpcnRo'); @$core.Deprecated('Use createPatientResponseDescriptor instead') const CreatePatientResponse$json = { @@ -70,7 +70,7 @@ const GetPatientResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 10, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 10, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'date_of_birth', '3': 11, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'room', '3': 7, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Room', '9': 1, '10': 'room', '17': true}, {'1': 'bed', '3': 8, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientResponse.Bed', '9': 2, '10': 'bed', '17': true}, @@ -109,16 +109,16 @@ const GetPatientResponse_Bed$json = { final $typed_data.Uint8List getPatientResponseDescriptor = $convert.base64Decode( 'ChJHZXRQYXRpZW50UmVzcG9uc2USDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2' 'lkZW50aWZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJ' - 'UgVub3RlcxIuCgZnZW5kZXIYCiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlch' - 'I9Cg1kYXRlX29mX2JpcnRoGAsgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZC' - 'aXJ0aIgBARJHCgRyb29tGAcgASgLMi4uc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbn' - 'RSZXNwb25zZS5Sb29tSAFSBHJvb22IAQESRAoDYmVkGAggASgLMi0uc2VydmljZXMudGFza3Nf' - 'c3ZjLnYxLkdldFBhdGllbnRSZXNwb25zZS5CZWRIAlIDYmVkiAEBEiAKC2NvbnNpc3RlbmN5GA' - 'kgASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJ' - 'UgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY2' - '9uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEiAK' - 'C2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeUIQCg5fZGF0ZV9vZl9iaXJ0aEIHCgVfcm' - '9vbUIGCgRfYmVk'); + 'UgVub3RlcxIlCgNzZXgYCiABKA4yEy5saWJzLmNvbW1vbi52MS5TZXhSA3NleBI9Cg1kYXRlX2' + '9mX2JpcnRoGAsgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgBARJH' + 'CgRyb29tGAcgASgLMi4uc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRSZXNwb25zZS' + '5Sb29tSAFSBHJvb22IAQESRAoDYmVkGAggASgLMi0uc2VydmljZXMudGFza3Nfc3ZjLnYxLkdl' + 'dFBhdGllbnRSZXNwb25zZS5CZWRIAlIDYmVkiAEBEiAKC2NvbnNpc3RlbmN5GAkgASgJUgtjb2' + '5zaXN0ZW5jeRplCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcK' + 'B3dhcmRfaWQYAyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3' + 'kaSwoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3Rl' + 'bmN5GAMgASgJUgtjb25zaXN0ZW5jeUIQCg5fZGF0ZV9vZl9iaXJ0aEIHCgVfcm9vbUIGCgRfYm' + 'Vk'); @$core.Deprecated('Use getPatientByBedRequestDescriptor instead') const GetPatientByBedRequest$json = { @@ -139,7 +139,7 @@ const GetPatientByBedResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '10': 'bedId'}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, @@ -153,10 +153,10 @@ const GetPatientByBedResponse$json = { final $typed_data.Uint8List getPatientByBedResponseDescriptor = $convert.base64Decode( 'ChdHZXRQYXRpZW50QnlCZWRSZXNwb25zZRIOCgJpZBgBIAEoCVICaWQSOgoZaHVtYW5fcmVhZG' 'FibGVfaWRlbnRpZmllchgCIAEoCVIXaHVtYW5SZWFkYWJsZUlkZW50aWZpZXISFAoFbm90ZXMY' - 'AyABKAlSBW5vdGVzEi4KBmdlbmRlchgGIAEoDjIWLmxpYnMuY29tbW9uLnYxLkdlbmRlclIGZ2' - 'VuZGVyEj0KDWRhdGVfb2ZfYmlydGgYByABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSABSC2Rh' - 'dGVPZkJpcnRoiAEBEhUKBmJlZF9pZBgEIAEoCVIFYmVkSWQSIAoLY29uc2lzdGVuY3kYBSABKA' - 'lSC2NvbnNpc3RlbmN5QhAKDl9kYXRlX29mX2JpcnRo'); + 'AyABKAlSBW5vdGVzEiUKA3NleBgGIAEoDjITLmxpYnMuY29tbW9uLnYxLlNleFIDc2V4Ej0KDW' + 'RhdGVfb2ZfYmlydGgYByABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSABSC2RhdGVPZkJpcnRo' + 'iAEBEhUKBmJlZF9pZBgEIAEoCVIFYmVkSWQSIAoLY29uc2lzdGVuY3kYBSABKAlSC2NvbnNpc3' + 'RlbmN5QhAKDl9kYXRlX29mX2JpcnRo'); @$core.Deprecated('Use getPatientsByWardRequestDescriptor instead') const GetPatientsByWardRequest$json = { @@ -186,7 +186,7 @@ const GetPatientsByWardResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'date_of_birth', '3': 7, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'bed_id', '3': 4, '4': 1, '5': 9, '9': 1, '10': 'bedId', '17': true}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, @@ -201,12 +201,12 @@ const GetPatientsByWardResponse_Patient$json = { final $typed_data.Uint8List getPatientsByWardResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50c0J5V2FyZFJlc3BvbnNlElQKCHBhdGllbnRzGAEgAygLMjguc2VydmljZX' 'MudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRzQnlXYXJkUmVzcG9uc2UuUGF0aWVudFIIcGF0aWVu' - 'dHMatQIKB1BhdGllbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aW' + 'dHMarAIKB1BhdGllbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aW' 'ZpZXIYAiABKAlSF2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAMgASgJUgVub3Rl' - 'cxIuCgZnZW5kZXIYBiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlchI9Cg1kYX' - 'RlX29mX2JpcnRoGAcgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgB' - 'ARIaCgZiZWRfaWQYBCABKAlIAVIFYmVkSWSIAQESIAoLY29uc2lzdGVuY3kYBSABKAlSC2Nvbn' - 'Npc3RlbmN5QhAKDl9kYXRlX29mX2JpcnRoQgkKB19iZWRfaWQ='); + 'cxIlCgNzZXgYBiABKA4yEy5saWJzLmNvbW1vbi52MS5TZXhSA3NleBI9Cg1kYXRlX29mX2Jpcn' + 'RoGAcgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgBARIaCgZiZWRf' + 'aWQYBCABKAlIAVIFYmVkSWSIAQESIAoLY29uc2lzdGVuY3kYBSABKAlSC2NvbnNpc3RlbmN5Qh' + 'AKDl9kYXRlX29mX2JpcnRoQgkKB19iZWRfaWQ='); @$core.Deprecated('Use getPatientAssignmentByWardRequestDescriptor instead') const GetPatientAssignmentByWardRequest$json = { @@ -263,7 +263,7 @@ const GetPatientAssignmentByWardResponse_Room_Bed_Patient$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, - {'1': 'gender', '3': 4, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 4, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'consistency', '3': 3, '4': 1, '5': 9, '10': 'consistency'}, ], }; @@ -272,16 +272,15 @@ const GetPatientAssignmentByWardResponse_Room_Bed_Patient$json = { final $typed_data.Uint8List getPatientAssignmentByWardResponseDescriptor = $convert.base64Decode( 'CiJHZXRQYXRpZW50QXNzaWdubWVudEJ5V2FyZFJlc3BvbnNlElQKBXJvb21zGAEgAygLMj4uc2' 'VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRBc3NpZ25tZW50QnlXYXJkUmVzcG9uc2Uu' - 'Um9vbVIFcm9vbXMa6gMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbW' + 'Um9vbVIFcm9vbXMa4QMKBFJvb20SDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbW' 'USVgoEYmVkcxgDIAMoCzJCLnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50QXNzaWdu' 'bWVudEJ5V2FyZFJlc3BvbnNlLlJvb20uQmVkUgRiZWRzEiAKC2NvbnNpc3RlbmN5GAQgASgJUg' - 'tjb25zaXN0ZW5jeRrDAgoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1l' + 'tjb25zaXN0ZW5jeRq6AgoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1l' 'EmkKB3BhdGllbnQYAyABKAsySi5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudEFzc2' 'lnbm1lbnRCeVdhcmRSZXNwb25zZS5Sb29tLkJlZC5QYXRpZW50SABSB3BhdGllbnSIAQESIAoL' - 'Y29uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5Gn8KB1BhdGllbnQSDgoCaWQYASABKAlSAm' - 'lkEhIKBG5hbWUYAiABKAlSBG5hbWUSLgoGZ2VuZGVyGAQgASgOMhYubGlicy5jb21tb24udjEu' - 'R2VuZGVyUgZnZW5kZXISIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3RlbmN5QgoKCF9wYX' - 'RpZW50'); + 'Y29uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5GnYKB1BhdGllbnQSDgoCaWQYASABKAlSAm' + 'lkEhIKBG5hbWUYAiABKAlSBG5hbWUSJQoDc2V4GAQgASgOMhMubGlicy5jb21tb24udjEuU2V4' + 'UgNzZXgSIAoLY29uc2lzdGVuY3kYAyABKAlSC2NvbnNpc3RlbmN5QgoKCF9wYXRpZW50'); @$core.Deprecated('Use getPatientDetailsRequestDescriptor instead') const GetPatientDetailsRequest$json = { @@ -302,7 +301,7 @@ const GetPatientDetailsResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 9, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 9, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'date_of_birth', '3': 10, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'tasks', '3': 4, '4': 3, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Task', '10': 'tasks'}, {'1': 'room', '3': 5, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientDetailsResponse.Room', '9': 1, '10': 'room', '17': true}, @@ -373,26 +372,26 @@ const GetPatientDetailsResponse_Task_SubTask$json = { final $typed_data.Uint8List getPatientDetailsResponseDescriptor = $convert.base64Decode( 'ChlHZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlEg4KAmlkGAEgASgJUgJpZBI6ChlodW1hbl9yZW' 'FkYWJsZV9pZGVudGlmaWVyGAIgASgJUhdodW1hblJlYWRhYmxlSWRlbnRpZmllchIUCgVub3Rl' - 'cxgDIAEoCVIFbm90ZXMSLgoGZ2VuZGVyGAkgASgOMhYubGlicy5jb21tb24udjEuR2VuZGVyUg' - 'ZnZW5kZXISPQoNZGF0ZV9vZl9iaXJ0aBgKIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAFIL' - 'ZGF0ZU9mQmlydGiIAQESSwoFdGFza3MYBCADKAsyNS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2' - 'V0UGF0aWVudERldGFpbHNSZXNwb25zZS5UYXNrUgV0YXNrcxJOCgRyb29tGAUgASgLMjUuc2Vy' - 'dmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnREZXRhaWxzUmVzcG9uc2UuUm9vbUgBUgRyb2' - '9tiAEBEksKA2JlZBgGIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50RGV0' - 'YWlsc1Jlc3BvbnNlLkJlZEgCUgNiZWSIAQESIwoNaXNfZGlzY2hhcmdlZBgHIAEoCFIMaXNEaX' - 'NjaGFyZ2VkEiAKC2NvbnNpc3RlbmN5GAggASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlk' - 'GAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZB' - 'IgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJp' - 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeR' - 'rCAwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlw' - 'dGlvbhgDIAEoCVILZGVzY3JpcHRpb24SOQoGc3RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3' - 'Nfc3ZjLnYxLlRhc2tTdGF0dXNSBnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABS' - 'DmFzc2lnbmVkVXNlcklkiAEBEh0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdW' - 'JsaWMYByABKAhSBnB1YmxpYxJZCghzdWJ0YXNrcxgIIAMoCzI9LnNlcnZpY2VzLnRhc2tzX3N2' - 'Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MSIA' - 'oLY29uc2lzdGVuY3kYCSABKAlSC2NvbnNpc3RlbmN5GkEKB1N1YlRhc2sSDgoCaWQYASABKAlS' - 'AmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZW' - 'RfdXNlcl9pZEIQCg5fZGF0ZV9vZl9iaXJ0aEIHCgVfcm9vbUIGCgRfYmVk'); + 'cxgDIAEoCVIFbm90ZXMSJQoDc2V4GAkgASgOMhMubGlicy5jb21tb24udjEuU2V4UgNzZXgSPQ' + 'oNZGF0ZV9vZl9iaXJ0aBgKIAEoCzIULmxpYnMuY29tbW9uLnYxLkRhdGVIAFILZGF0ZU9mQmly' + 'dGiIAQESSwoFdGFza3MYBCADKAsyNS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudE' + 'RldGFpbHNSZXNwb25zZS5UYXNrUgV0YXNrcxJOCgRyb29tGAUgASgLMjUuc2VydmljZXMudGFz' + 'a3Nfc3ZjLnYxLkdldFBhdGllbnREZXRhaWxzUmVzcG9uc2UuUm9vbUgBUgRyb29tiAEBEksKA2' + 'JlZBgGIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50RGV0YWlsc1Jlc3Bv' + 'bnNlLkJlZEgCUgNiZWSIAQESIwoNaXNfZGlzY2hhcmdlZBgHIAEoCFIMaXNEaXNjaGFyZ2VkEi' + 'AKC2NvbnNpc3RlbmN5GAggASgJUgtjb25zaXN0ZW5jeRplCgRSb29tEg4KAmlkGAEgASgJUgJp' + 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQYAyABKAlSBndhcmRJZBIgCgtjb25zaX' + 'N0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3kaSwoDQmVkEg4KAmlkGAEgASgJUgJpZBISCgRuYW1l' + 'GAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeRrCAwoEVGFzax' + 'IOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEo' + 'CVILZGVzY3JpcHRpb24SOQoGc3RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3Nfc3ZjLnYxLl' + 'Rhc2tTdGF0dXNSBnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVk' + 'VXNlcklkiAEBEh0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKA' + 'hSBnB1YmxpYxJZCghzdWJ0YXNrcxgIIAMoCzI9LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQ' + 'YXRpZW50RGV0YWlsc1Jlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MSIAoLY29uc2lzdG' + 'VuY3kYCSABKAlSC2NvbnNpc3RlbmN5GkEKB1N1YlRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5h' + 'bWUYAiABKAlSBG5hbWUSEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZWRfdXNlcl9pZE' + 'IQCg5fZGF0ZV9vZl9iaXJ0aEIHCgVfcm9vbUIGCgRfYmVk'); @$core.Deprecated('Use getPatientListRequestDescriptor instead') const GetPatientListRequest$json = { @@ -449,7 +448,7 @@ const GetPatientListResponse_Patient$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, {'1': 'notes', '3': 5, '4': 1, '5': 9, '10': 'notes'}, - {'1': 'gender', '3': 8, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 8, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'date_of_birth', '3': 9, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 0, '10': 'dateOfBirth', '17': true}, {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Room', '10': 'room'}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetPatientListResponse.Bed', '10': 'bed'}, @@ -501,24 +500,24 @@ final $typed_data.Uint8List getPatientListResponseDescriptor = $convert.base64De 'Nwb25zZS5QYXRpZW50UhJkaXNjaGFyZ2VkUGF0aWVudHMaSwoDQmVkEg4KAmlkGAEgASgJUgJp' 'ZBISCgRuYW1lGAIgASgJUgRuYW1lEiAKC2NvbnNpc3RlbmN5GAMgASgJUgtjb25zaXN0ZW5jeR' 'plCgRSb29tEg4KAmlkGAEgASgJUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhcKB3dhcmRfaWQY' - 'AyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3ka5QMKB1BhdG' + 'AyABKAlSBndhcmRJZBIgCgtjb25zaXN0ZW5jeRgEIAEoCVILY29uc2lzdGVuY3ka3AMKB1BhdG' 'llbnQSDgoCaWQYASABKAlSAmlkEjoKGWh1bWFuX3JlYWRhYmxlX2lkZW50aWZpZXIYAiABKAlS' - 'F2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAUgASgJUgVub3RlcxIuCgZnZW5kZX' - 'IYCCABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlchI9Cg1kYXRlX29mX2JpcnRo' - 'GAkgASgLMhQubGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgBARJGCgRyb29tGA' - 'MgASgLMjIuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuUm9v' - 'bVIEcm9vbRJDCgNiZWQYBCABKAsyMS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudE' - 'xpc3RSZXNwb25zZS5CZWRSA2JlZBJICgV0YXNrcxgGIAMoCzIyLnNlcnZpY2VzLnRhc2tzX3N2' - 'Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLlRhc2tSBXRhc2tzEiAKC2NvbnNpc3RlbmN5GA' - 'cgASgJUgtjb25zaXN0ZW5jeUIQCg5fZGF0ZV9vZl9iaXJ0aBq/AwoEVGFzaxIOCgJpZBgBIAEo' - 'CVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcH' - 'Rpb24SOQoGc3RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3Nfc3ZjLnYxLlRhc2tTdGF0dXNS' - 'BnN0YXR1cxItChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVkVXNlcklkiAEBEh' - '0KCnBhdGllbnRfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKAhSBnB1YmxpYxJW' - 'CghzdWJ0YXNrcxgIIAMoCzI6LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50TGlzdF' - 'Jlc3BvbnNlLlRhc2suU3ViVGFza1IIc3VidGFza3MSIAoLY29uc2lzdGVuY3kYCSABKAlSC2Nv' - 'bnNpc3RlbmN5GkEKB1N1YlRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbW' - 'USEgoEZG9uZRgDIAEoCFIEZG9uZUITChFfYXNzaWduZWRfdXNlcl9pZA=='); + 'F2h1bWFuUmVhZGFibGVJZGVudGlmaWVyEhQKBW5vdGVzGAUgASgJUgVub3RlcxIlCgNzZXgYCC' + 'ABKA4yEy5saWJzLmNvbW1vbi52MS5TZXhSA3NleBI9Cg1kYXRlX29mX2JpcnRoGAkgASgLMhQu' + 'bGlicy5jb21tb24udjEuRGF0ZUgAUgtkYXRlT2ZCaXJ0aIgBARJGCgRyb29tGAMgASgLMjIuc2' + 'VydmljZXMudGFza3Nfc3ZjLnYxLkdldFBhdGllbnRMaXN0UmVzcG9uc2UuUm9vbVIEcm9vbRJD' + 'CgNiZWQYBCABKAsyMS5zZXJ2aWNlcy50YXNrc19zdmMudjEuR2V0UGF0aWVudExpc3RSZXNwb2' + '5zZS5CZWRSA2JlZBJICgV0YXNrcxgGIAMoCzIyLnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQ' + 'YXRpZW50TGlzdFJlc3BvbnNlLlRhc2tSBXRhc2tzEiAKC2NvbnNpc3RlbmN5GAcgASgJUgtjb2' + '5zaXN0ZW5jeUIQCg5fZGF0ZV9vZl9iaXJ0aBq/AwoEVGFzaxIOCgJpZBgBIAEoCVICaWQSEgoE' + 'bmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SOQoGc3' + 'RhdHVzGAQgASgOMiEuc2VydmljZXMudGFza3Nfc3ZjLnYxLlRhc2tTdGF0dXNSBnN0YXR1cxIt' + 'ChBhc3NpZ25lZF91c2VyX2lkGAUgASgJSABSDmFzc2lnbmVkVXNlcklkiAEBEh0KCnBhdGllbn' + 'RfaWQYBiABKAlSCXBhdGllbnRJZBIWCgZwdWJsaWMYByABKAhSBnB1YmxpYxJWCghzdWJ0YXNr' + 'cxgIIAMoCzI6LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRQYXRpZW50TGlzdFJlc3BvbnNlLl' + 'Rhc2suU3ViVGFza1IIc3VidGFza3MSIAoLY29uc2lzdGVuY3kYCSABKAlSC2NvbnNpc3RlbmN5' + 'GkEKB1N1YlRhc2sSDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSEgoEZG9uZR' + 'gDIAEoCFIEZG9uZUITChFfYXNzaWduZWRfdXNlcl9pZA=='); @$core.Deprecated('Use getRecentPatientsRequestDescriptor instead') const GetRecentPatientsRequest$json = { @@ -565,7 +564,7 @@ const GetRecentPatientsResponse_Patient$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '10': 'humanReadableIdentifier'}, - {'1': 'gender', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '10': 'gender'}, + {'1': 'sex', '3': 6, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '10': 'sex'}, {'1': 'room', '3': 3, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetRecentPatientsResponse.Room', '9': 0, '10': 'room', '17': true}, {'1': 'bed', '3': 4, '4': 1, '5': 11, '6': '.services.tasks_svc.v1.GetRecentPatientsResponse.Bed', '9': 1, '10': 'bed', '17': true}, {'1': 'consistency', '3': 5, '4': 1, '5': 9, '10': 'consistency'}, @@ -583,13 +582,13 @@ final $typed_data.Uint8List getRecentPatientsResponseDescriptor = $convert.base6 'DnJlY2VudFBhdGllbnRzGksKA0JlZBIOCgJpZBgBIAEoCVICaWQSEgoEbmFtZRgCIAEoCVIEbm' 'FtZRIgCgtjb25zaXN0ZW5jeRgDIAEoCVILY29uc2lzdGVuY3kaZQoEUm9vbRIOCgJpZBgBIAEo' 'CVICaWQSEgoEbmFtZRgCIAEoCVIEbmFtZRIXCgd3YXJkX2lkGAMgASgJUgZ3YXJkSWQSIAoLY2' - '9uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5GtUCCgdQYXRpZW50Eg4KAmlkGAEgASgJUgJp' + '9uc2lzdGVuY3kYBCABKAlSC2NvbnNpc3RlbmN5GswCCgdQYXRpZW50Eg4KAmlkGAEgASgJUgJp' 'ZBI6ChlodW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyGAIgASgJUhdodW1hblJlYWRhYmxlSWRlbn' - 'RpZmllchIuCgZnZW5kZXIYBiABKA4yFi5saWJzLmNvbW1vbi52MS5HZW5kZXJSBmdlbmRlchJO' - 'CgRyb29tGAMgASgLMjUuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFJlY2VudFBhdGllbnRzUm' - 'VzcG9uc2UuUm9vbUgAUgRyb29tiAEBEksKA2JlZBgEIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2' - 'Yy52MS5HZXRSZWNlbnRQYXRpZW50c1Jlc3BvbnNlLkJlZEgBUgNiZWSIAQESIAoLY29uc2lzdG' - 'VuY3kYBSABKAlSC2NvbnNpc3RlbmN5QgcKBV9yb29tQgYKBF9iZWQ='); + 'RpZmllchIlCgNzZXgYBiABKA4yEy5saWJzLmNvbW1vbi52MS5TZXhSA3NleBJOCgRyb29tGAMg' + 'ASgLMjUuc2VydmljZXMudGFza3Nfc3ZjLnYxLkdldFJlY2VudFBhdGllbnRzUmVzcG9uc2UuUm' + '9vbUgAUgRyb29tiAEBEksKA2JlZBgEIAEoCzI0LnNlcnZpY2VzLnRhc2tzX3N2Yy52MS5HZXRS' + 'ZWNlbnRQYXRpZW50c1Jlc3BvbnNlLkJlZEgBUgNiZWSIAQESIAoLY29uc2lzdGVuY3kYBSABKA' + 'lSC2NvbnNpc3RlbmN5QgcKBV9yb29tQgYKBF9iZWQ='); @$core.Deprecated('Use updatePatientRequestDescriptor instead') const UpdatePatientRequest$json = { @@ -598,14 +597,14 @@ const UpdatePatientRequest$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'human_readable_identifier', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'humanReadableIdentifier', '17': true}, {'1': 'notes', '3': 3, '4': 1, '5': 9, '9': 1, '10': 'notes', '17': true}, - {'1': 'gender', '3': 5, '4': 1, '5': 14, '6': '.libs.common.v1.Gender', '9': 2, '10': 'gender', '17': true}, + {'1': 'sex', '3': 5, '4': 1, '5': 14, '6': '.libs.common.v1.Sex', '9': 2, '10': 'sex', '17': true}, {'1': 'date_of_birth', '3': 6, '4': 1, '5': 11, '6': '.libs.common.v1.Date', '9': 3, '10': 'dateOfBirth', '17': true}, {'1': 'consistency', '3': 4, '4': 1, '5': 9, '9': 4, '10': 'consistency', '17': true}, ], '8': [ {'1': '_human_readable_identifier'}, {'1': '_notes'}, - {'1': '_gender'}, + {'1': '_sex'}, {'1': '_date_of_birth'}, {'1': '_consistency'}, ], @@ -615,11 +614,11 @@ const UpdatePatientRequest$json = { final $typed_data.Uint8List updatePatientRequestDescriptor = $convert.base64Decode( 'ChRVcGRhdGVQYXRpZW50UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSPwoZaHVtYW5fcmVhZGFibG' 'VfaWRlbnRpZmllchgCIAEoCUgAUhdodW1hblJlYWRhYmxlSWRlbnRpZmllcogBARIZCgVub3Rl' - 'cxgDIAEoCUgBUgVub3Rlc4gBARIzCgZnZW5kZXIYBSABKA4yFi5saWJzLmNvbW1vbi52MS5HZW' - '5kZXJIAlIGZ2VuZGVyiAEBEj0KDWRhdGVfb2ZfYmlydGgYBiABKAsyFC5saWJzLmNvbW1vbi52' - 'MS5EYXRlSANSC2RhdGVPZkJpcnRoiAEBEiUKC2NvbnNpc3RlbmN5GAQgASgJSARSC2NvbnNpc3' - 'RlbmN5iAEBQhwKGl9odW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyQggKBl9ub3Rlc0IJCgdfZ2Vu' - 'ZGVyQhAKDl9kYXRlX29mX2JpcnRoQg4KDF9jb25zaXN0ZW5jeQ=='); + 'cxgDIAEoCUgBUgVub3Rlc4gBARIqCgNzZXgYBSABKA4yEy5saWJzLmNvbW1vbi52MS5TZXhIAl' + 'IDc2V4iAEBEj0KDWRhdGVfb2ZfYmlydGgYBiABKAsyFC5saWJzLmNvbW1vbi52MS5EYXRlSANS' + 'C2RhdGVPZkJpcnRoiAEBEiUKC2NvbnNpc3RlbmN5GAQgASgJSARSC2NvbnNpc3RlbmN5iAEBQh' + 'wKGl9odW1hbl9yZWFkYWJsZV9pZGVudGlmaWVyQggKBl9ub3Rlc0IGCgRfc2V4QhAKDl9kYXRl' + 'X29mX2JpcnRoQg4KDF9jb25zaXN0ZW5jeQ=='); @$core.Deprecated('Use updatePatientResponseDescriptor instead') const UpdatePatientResponse$json = { diff --git a/gen/go/libs/common/v1/types.pb.go b/gen/go/libs/common/v1/types.pb.go index 579e36244..1d7b4b8d3 100644 --- a/gen/go/libs/common/v1/types.pb.go +++ b/gen/go/libs/common/v1/types.pb.go @@ -21,55 +21,55 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type Gender int32 +type Sex int32 const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 + Sex_SEX_UNSPECIFIED Sex = 0 + Sex_SEX_FEMALE Sex = 1 + Sex_SEX_MALE Sex = 2 + Sex_SEX_DIVERSE Sex = 3 ) -// Enum value maps for Gender. +// Enum value maps for Sex. var ( - Gender_name = map[int32]string{ - 0: "GENDER_UNSPECIFIED", - 1: "GENDER_FEMALE", - 2: "GENDER_MALE", - 3: "GENDER_DIVERSE", + Sex_name = map[int32]string{ + 0: "SEX_UNSPECIFIED", + 1: "SEX_FEMALE", + 2: "SEX_MALE", + 3: "SEX_DIVERSE", } - Gender_value = map[string]int32{ - "GENDER_UNSPECIFIED": 0, - "GENDER_FEMALE": 1, - "GENDER_MALE": 2, - "GENDER_DIVERSE": 3, + Sex_value = map[string]int32{ + "SEX_UNSPECIFIED": 0, + "SEX_FEMALE": 1, + "SEX_MALE": 2, + "SEX_DIVERSE": 3, } ) -func (x Gender) Enum() *Gender { - p := new(Gender) +func (x Sex) Enum() *Sex { + p := new(Sex) *p = x return p } -func (x Gender) String() string { +func (x Sex) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Gender) Descriptor() protoreflect.EnumDescriptor { +func (Sex) Descriptor() protoreflect.EnumDescriptor { return file_libs_common_v1_types_proto_enumTypes[0].Descriptor() } -func (Gender) Type() protoreflect.EnumType { +func (Sex) Type() protoreflect.EnumType { return &file_libs_common_v1_types_proto_enumTypes[0] } -func (x Gender) Number() protoreflect.EnumNumber { +func (x Sex) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Gender.Descriptor instead. -func (Gender) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use Sex.Descriptor instead. +func (Sex) EnumDescriptor() ([]byte, []int) { return file_libs_common_v1_types_proto_rawDescGZIP(), []int{0} } @@ -132,22 +132,21 @@ var file_libs_common_v1_types_proto_rawDesc = []byte{ 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x65, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, - 0x16, 0x0a, 0x12, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, 0x45, - 0x52, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45, - 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, 0x42, - 0x8e, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, 0x02, - 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x1a, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, - 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x04, 0x64, 0x61, 0x74, 0x65, 0x2a, 0x49, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x12, 0x13, 0x0a, 0x0f, + 0x53, 0x45, 0x58, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x45, 0x58, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, + 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x58, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, + 0x0f, 0x0a, 0x0b, 0x53, 0x45, 0x58, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, + 0x42, 0x8e, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x2f, 0x6c, 0x69, 0x62, 0x73, 0x2f, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4c, 0x43, 0x58, 0xaa, + 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x0e, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x1a, 0x4c, 0x69, 0x62, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x10, 0x4c, 0x69, 0x62, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -165,7 +164,7 @@ func file_libs_common_v1_types_proto_rawDescGZIP() []byte { var file_libs_common_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_libs_common_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_libs_common_v1_types_proto_goTypes = []interface{}{ - (Gender)(0), // 0: libs.common.v1.Gender + (Sex)(0), // 0: libs.common.v1.Sex (*Date)(nil), // 1: libs.common.v1.Date (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp } diff --git a/gen/go/services/tasks_svc/v1/patient_svc.pb.go b/gen/go/services/tasks_svc/v1/patient_svc.pb.go index ec1ed74d8..66b7f6f99 100644 --- a/gen/go/services/tasks_svc/v1/patient_svc.pb.go +++ b/gen/go/services/tasks_svc/v1/patient_svc.pb.go @@ -26,10 +26,10 @@ type CreatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" - Notes *string `protobuf:"bytes,2,opt,name=notes,proto3,oneof" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,1,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty" validate:"required"` // @gotags: validate:"required" + Notes *string `protobuf:"bytes,2,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + Sex *v1.Sex `protobuf:"varint,3,opt,name=sex,proto3,enum=libs.common.v1.Sex,oneof" json:"sex,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` } func (x *CreatePatientRequest) Reset() { @@ -78,11 +78,11 @@ func (x *CreatePatientRequest) GetNotes() string { return "" } -func (x *CreatePatientRequest) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender +func (x *CreatePatientRequest) GetSex() v1.Sex { + if x != nil && x.Sex != nil { + return *x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *CreatePatientRequest) GetDateOfBirth() *v1.Date { @@ -202,7 +202,7 @@ type GetPatientResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender v1.Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + Sex v1.Sex `protobuf:"varint,10,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` DateOfBirth *v1.Date `protobuf:"bytes,11,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Room *GetPatientResponse_Room `protobuf:"bytes,7,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetPatientResponse_Bed `protobuf:"bytes,8,opt,name=bed,proto3,oneof" json:"bed,omitempty"` @@ -262,11 +262,11 @@ func (x *GetPatientResponse) GetNotes() string { return "" } -func (x *GetPatientResponse) GetGender() v1.Gender { +func (x *GetPatientResponse) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetPatientResponse) GetDateOfBirth() *v1.Date { @@ -349,13 +349,13 @@ type GetPatientByBedResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - BedId string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3" json:"bed_id,omitempty"` - Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Sex v1.Sex `protobuf:"varint,6,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3" json:"bed_id,omitempty"` + Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientByBedResponse) Reset() { @@ -411,11 +411,11 @@ func (x *GetPatientByBedResponse) GetNotes() string { return "" } -func (x *GetPatientByBedResponse) GetGender() v1.Gender { +func (x *GetPatientByBedResponse) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetPatientByBedResponse) GetDateOfBirth() *v1.Date { @@ -682,7 +682,7 @@ type GetPatientDetailsResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender v1.Gender `protobuf:"varint,9,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + Sex v1.Sex `protobuf:"varint,9,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` DateOfBirth *v1.Date `protobuf:"bytes,10,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Tasks []*GetPatientDetailsResponse_Task `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` Room *GetPatientDetailsResponse_Room `protobuf:"bytes,5,opt,name=room,proto3,oneof" json:"room,omitempty"` @@ -744,11 +744,11 @@ func (x *GetPatientDetailsResponse) GetNotes() string { return "" } -func (x *GetPatientDetailsResponse) GetGender() v1.Gender { +func (x *GetPatientDetailsResponse) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetPatientDetailsResponse) GetDateOfBirth() *v1.Date { @@ -993,12 +993,12 @@ type UpdatePatientRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" - HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` - Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` - Gender *v1.Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=libs.common.v1.Gender,oneof" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - Consistency *string `protobuf:"bytes,4,opt,name=consistency,proto3,oneof" json:"consistency,omitempty"` // no conflict detection, if not provided + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4"` // @gotags: validate:"uuid4" + HumanReadableIdentifier *string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3,oneof" json:"human_readable_identifier,omitempty"` + Notes *string `protobuf:"bytes,3,opt,name=notes,proto3,oneof" json:"notes,omitempty"` + Sex *v1.Sex `protobuf:"varint,5,opt,name=sex,proto3,enum=libs.common.v1.Sex,oneof" json:"sex,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,6,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + Consistency *string `protobuf:"bytes,4,opt,name=consistency,proto3,oneof" json:"consistency,omitempty"` // no conflict detection, if not provided } func (x *UpdatePatientRequest) Reset() { @@ -1054,11 +1054,11 @@ func (x *UpdatePatientRequest) GetNotes() string { return "" } -func (x *UpdatePatientRequest) GetGender() v1.Gender { - if x != nil && x.Gender != nil { - return *x.Gender +func (x *UpdatePatientRequest) GetSex() v1.Sex { + if x != nil && x.Sex != nil { + return *x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *UpdatePatientRequest) GetDateOfBirth() *v1.Date { @@ -1770,13 +1770,13 @@ type GetPatientsByWardResponse_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` - Gender v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` - DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` - BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` - Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` + Sex v1.Sex `protobuf:"varint,6,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` + DateOfBirth *v1.Date `protobuf:"bytes,7,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` + BedId *string `protobuf:"bytes,4,opt,name=bed_id,json=bedId,proto3,oneof" json:"bed_id,omitempty"` + Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientsByWardResponse_Patient) Reset() { @@ -1832,11 +1832,11 @@ func (x *GetPatientsByWardResponse_Patient) GetNotes() string { return "" } -func (x *GetPatientsByWardResponse_Patient) GetGender() v1.Gender { +func (x *GetPatientsByWardResponse_Patient) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetPatientsByWardResponse_Patient) GetDateOfBirth() *v1.Date { @@ -2007,10 +2007,10 @@ type GetPatientAssignmentByWardResponse_Room_Bed_Patient struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Gender v1.Gender `protobuf:"varint,4,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` - Consistency string `protobuf:"bytes,3,opt,name=consistency,proto3" json:"consistency,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Sex v1.Sex `protobuf:"varint,4,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` + Consistency string `protobuf:"bytes,3,opt,name=consistency,proto3" json:"consistency,omitempty"` } func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) Reset() { @@ -2059,11 +2059,11 @@ func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetName() string { return "" } -func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetGender() v1.Gender { +func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetPatientAssignmentByWardResponse_Room_Bed_Patient) GetConsistency() string { @@ -2523,7 +2523,7 @@ type GetPatientListResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` - Gender v1.Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + Sex v1.Sex `protobuf:"varint,8,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` DateOfBirth *v1.Date `protobuf:"bytes,9,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"` Room *GetPatientListResponse_Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` Bed *GetPatientListResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3" json:"bed,omitempty"` @@ -2584,11 +2584,11 @@ func (x *GetPatientListResponse_Patient) GetNotes() string { return "" } -func (x *GetPatientListResponse_Patient) GetGender() v1.Gender { +func (x *GetPatientListResponse_Patient) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetPatientListResponse_Patient) GetDateOfBirth() *v1.Date { @@ -2941,7 +2941,7 @@ type GetRecentPatientsResponse_Patient struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` HumanReadableIdentifier string `protobuf:"bytes,2,opt,name=human_readable_identifier,json=humanReadableIdentifier,proto3" json:"human_readable_identifier,omitempty"` - Gender v1.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=libs.common.v1.Gender" json:"gender,omitempty"` + Sex v1.Sex `protobuf:"varint,6,opt,name=sex,proto3,enum=libs.common.v1.Sex" json:"sex,omitempty"` Room *GetRecentPatientsResponse_Room `protobuf:"bytes,3,opt,name=room,proto3,oneof" json:"room,omitempty"` Bed *GetRecentPatientsResponse_Bed `protobuf:"bytes,4,opt,name=bed,proto3,oneof" json:"bed,omitempty"` Consistency string `protobuf:"bytes,5,opt,name=consistency,proto3" json:"consistency,omitempty"` @@ -2993,11 +2993,11 @@ func (x *GetRecentPatientsResponse_Patient) GetHumanReadableIdentifier() string return "" } -func (x *GetRecentPatientsResponse_Patient) GetGender() v1.Gender { +func (x *GetRecentPatientsResponse_Patient) GetSex() v1.Sex { if x != nil { - return x.Gender + return x.Sex } - return v1.Gender(0) + return v1.Sex(0) } func (x *GetRecentPatientsResponse_Patient) GetRoom() *GetRecentPatientsResponse_Room { @@ -3033,168 +3033,165 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6c, 0x69, 0x62, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, - 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, - 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfc, + 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, - 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, - 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x01, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, - 0x69, 0x72, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, - 0x48, 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, - 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x09, 0x0a, 0x07, - 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x22, 0x49, 0x0a, 0x15, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xed, 0x04, 0x0a, 0x12, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, - 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, - 0x72, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2a, + 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, + 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, + 0x48, 0x01, 0x52, 0x03, 0x73, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, + 0x74, 0x65, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x73, 0x65, 0x78, 0x42, 0x10, 0x0a, 0x0e, 0x5f, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x22, 0x49, 0x0a, + 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe4, 0x04, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x3d, 0x0a, + 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, + 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x04, + 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x01, 0x52, 0x04, 0x72, 0x6f, + 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, + 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, + 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, + 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, + 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, + 0x5f, 0x62, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xac, 0x02, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, + 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, + 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, + 0x69, 0x72, 0x74, 0x68, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xa0, 0x03, 0x0a, 0x19, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xac, 0x02, + 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, + 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, + 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x73, + 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, + 0x65, 0x78, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, + 0x72, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, - 0x01, 0x12, 0x47, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, - 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, 0x03, 0x62, 0x65, - 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, - 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, + 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x01, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, + 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, + 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xde, 0x04, 0x0a, 0x22, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x54, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, + 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xe1, 0x03, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, - 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x16, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x22, 0xb5, 0x02, 0x0a, 0x17, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, - 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, - 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, - 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, - 0x74, 0x68, 0x22, 0x33, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, - 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0xa9, 0x03, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x08, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0xb5, 0x02, 0x0a, 0x07, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, - 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, - 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, - 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, - 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x64, - 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, - 0x64, 0x22, 0xe7, 0x04, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x1a, 0xea, - 0x03, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x62, - 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, - 0x65, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xc3, 0x02, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x69, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x4a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a, 0x04, 0x62, 0x65, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, - 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, + 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x04, 0x62, 0x65, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x7f, - 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, - 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, - 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xba, + 0x02, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x69, 0x0a, 0x07, 0x70, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4a, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x2e, 0x42, 0x65, 0x64, 0x2e, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x76, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x2a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xb9, 0x09, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xb0, 0x09, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, @@ -3202,403 +3199,401 @@ var file_services_tasks_svc_v1_patient_svc_proto_rawDesc = []byte{ 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, - 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, - 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, - 0x73, 0x6b, 0x73, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, - 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, - 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, - 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, - 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, - 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xc2, 0x03, 0x0a, 0x04, - 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x59, 0x0a, 0x08, 0x73, - 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, - 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, + 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x3d, + 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, + 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, + 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, + 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, + 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x02, 0x52, + 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x64, 0x69, + 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, + 0x69, 0x73, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, + 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, + 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, + 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x1a, 0xc2, 0x03, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, - 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, - 0x62, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, - 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, - 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x95, 0x0b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x12, 0x66, 0x0a, 0x13, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x75, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x66, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x63, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x64, 0x69, - 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, - 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, - 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, - 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xe5, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, - 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, - 0x72, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, - 0x00, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, - 0x01, 0x12, 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, - 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x48, - 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x12, 0x59, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, + 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, + 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, + 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x15, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x8c, 0x0b, + 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, + 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x75, 0x6e, 0x61, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x75, 0x6e, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x66, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x70, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x12, 0x64, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xdc, 0x03, 0x0a, 0x07, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, + 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, + 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x73, 0x65, 0x78, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, 0x65, 0x78, + 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, + 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, + 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, + 0x46, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, - 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x1a, 0xbf, 0x03, 0x0a, - 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, + 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x43, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x52, 0x03, 0x62, 0x65, 0x64, 0x12, 0x48, 0x0a, 0x05, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x56, 0x0a, 0x08, - 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, - 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, - 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x1a, - 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8a, 0x05, 0x0a, 0x19, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, - 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, - 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x63, - 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x4b, 0x0a, 0x03, 0x42, - 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x1a, 0xbf, 0x03, 0x0a, 0x04, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x56, 0x0a, 0x08, 0x73, 0x75, + 0x62, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x2e, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x41, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x81, 0x05, 0x0a, 0x19, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, + 0x5f, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x65, 0x6e, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x4b, 0x0a, 0x03, 0x42, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, - 0xd5, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, - 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, - 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, - 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x48, 0x00, 0x52, 0x04, - 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, 0x62, 0x65, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, 0x01, 0x52, 0x03, 0x62, 0x65, - 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x72, 0x6f, 0x6f, 0x6d, 0x42, - 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0xf2, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0x65, 0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x1a, 0xcc, 0x02, + 0x0a, 0x07, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x68, 0x75, 0x6d, + 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x68, 0x75, + 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x4e, 0x0a, 0x04, + 0x72, 0x6f, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x6f, 0x6f, + 0x6d, 0x48, 0x00, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x4b, 0x0a, 0x03, + 0x62, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x64, 0x48, + 0x01, 0x52, 0x03, 0x62, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x72, 0x6f, 0x6f, 0x6d, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x62, 0x65, 0x64, 0x22, 0xe6, 0x02, 0x0a, + 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, + 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, + 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x2a, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, + 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x78, 0x48, 0x02, 0x52, 0x03, 0x73, 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, + 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, 0x52, 0x0b, 0x64, 0x61, + 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x04, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, + 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x5f, + 0x73, 0x65, 0x78, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, + 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, + 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x70, 0x0a, 0x10, 0x41, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, + 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, + 0x65, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x7d, 0x0a, 0x11, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, + 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, + 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x5b, 0x0a, 0x12, 0x55, 0x6e, + 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x3f, 0x0a, 0x19, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x17, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x61, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x88, 0x01, - 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x01, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, - 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6c, - 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x48, 0x02, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x88, 0x01, - 0x01, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, - 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x48, 0x03, - 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x68, 0x75, 0x6d, 0x61, - 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x42, 0x0e, 0x0a, 0x0c, - 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x81, 0x01, 0x0a, - 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, - 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, - 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, - 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, - 0x22, 0x70, 0x0a, 0x10, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x62, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x65, 0x64, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, - 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, - 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x22, 0x7d, 0x0a, 0x11, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, - 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, - 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, - 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, - 0x74, 0x22, 0x5b, 0x0a, 0x12, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0e, - 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x7f, - 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, - 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, - 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, - 0x29, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x18, 0x44, 0x69, - 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, - 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, - 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, - 0x22, 0x3a, 0x0a, 0x16, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x26, 0x0a, 0x14, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xda, 0x0c, - 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x6c, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x7f, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, + 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x62, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, + 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x22, 0x29, 0x0a, 0x17, 0x44, 0x69, 0x73, 0x63, + 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x18, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, + 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x22, 0x36, 0x0a, 0x15, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x16, 0x52, 0x65, 0x61, + 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, 0x0a, + 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xda, 0x0c, 0x0a, 0x0e, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0d, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, + 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, + 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, + 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, - 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, - 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x12, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, + 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x93, 0x01, 0x0a, 0x1a, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, - 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x73, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x93, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, - 0x12, 0x38, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x73, 0x73, - 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x79, 0x57, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2f, 0x2e, 0x73, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x47, 0x65, + 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, - 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, - 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x09, 0x41, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, - 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x0b, - 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x12, 0x29, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x12, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x65, + 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x30, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, + 0x65, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x10, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, - 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x52, - 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, - 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, - 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xb9, 0x01, 0x0a, 0x19, 0x63, - 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, - 0x74, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x67, 0x65, 0x6e, - 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2d, - 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x14, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, - 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x5c, 0x56, - 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, - 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, + 0x12, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x0b, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x42, 0x65, 0x64, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x42, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, + 0x10, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, + 0x74, 0x12, 0x2e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x68, 0x61, + 0x72, 0x67, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, + 0x64, 0x6d, 0x69, 0x74, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, + 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0xb9, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, + 0x31, 0x42, 0x0f, 0x50, 0x61, 0x74, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x67, 0x65, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2d, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x53, 0x54, 0x58, 0xaa, 0x02, 0x14, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x5c, 0x54, + 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x3a, 0x3a, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3661,23 +3656,23 @@ var file_services_tasks_svc_v1_patient_svc_proto_goTypes = []interface{}{ (*GetRecentPatientsResponse_Bed)(nil), // 43: services.tasks_svc.v1.GetRecentPatientsResponse.Bed (*GetRecentPatientsResponse_Room)(nil), // 44: services.tasks_svc.v1.GetRecentPatientsResponse.Room (*GetRecentPatientsResponse_Patient)(nil), // 45: services.tasks_svc.v1.GetRecentPatientsResponse.Patient - (v1.Gender)(0), // 46: libs.common.v1.Gender - (*v1.Date)(nil), // 47: libs.common.v1.Date - (*v1.Conflict)(nil), // 48: libs.common.v1.Conflict - (TaskStatus)(0), // 49: services.tasks_svc.v1.TaskStatus + (v1.Sex)(0), // 46: libs.common.v1.Sex + (*v1.Date)(nil), // 47: libs.common.v1.Date + (*v1.Conflict)(nil), // 48: libs.common.v1.Conflict + (TaskStatus)(0), // 49: services.tasks_svc.v1.TaskStatus } var file_services_tasks_svc_v1_patient_svc_proto_depIdxs = []int32{ - 46, // 0: services.tasks_svc.v1.CreatePatientRequest.gender:type_name -> libs.common.v1.Gender + 46, // 0: services.tasks_svc.v1.CreatePatientRequest.sex:type_name -> libs.common.v1.Sex 47, // 1: services.tasks_svc.v1.CreatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date - 46, // 2: services.tasks_svc.v1.GetPatientResponse.gender:type_name -> libs.common.v1.Gender + 46, // 2: services.tasks_svc.v1.GetPatientResponse.sex:type_name -> libs.common.v1.Sex 47, // 3: services.tasks_svc.v1.GetPatientResponse.date_of_birth:type_name -> libs.common.v1.Date 28, // 4: services.tasks_svc.v1.GetPatientResponse.room:type_name -> services.tasks_svc.v1.GetPatientResponse.Room 29, // 5: services.tasks_svc.v1.GetPatientResponse.bed:type_name -> services.tasks_svc.v1.GetPatientResponse.Bed - 46, // 6: services.tasks_svc.v1.GetPatientByBedResponse.gender:type_name -> libs.common.v1.Gender + 46, // 6: services.tasks_svc.v1.GetPatientByBedResponse.sex:type_name -> libs.common.v1.Sex 47, // 7: services.tasks_svc.v1.GetPatientByBedResponse.date_of_birth:type_name -> libs.common.v1.Date 30, // 8: services.tasks_svc.v1.GetPatientsByWardResponse.patients:type_name -> services.tasks_svc.v1.GetPatientsByWardResponse.Patient 31, // 9: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.rooms:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room - 46, // 10: services.tasks_svc.v1.GetPatientDetailsResponse.gender:type_name -> libs.common.v1.Gender + 46, // 10: services.tasks_svc.v1.GetPatientDetailsResponse.sex:type_name -> libs.common.v1.Sex 47, // 11: services.tasks_svc.v1.GetPatientDetailsResponse.date_of_birth:type_name -> libs.common.v1.Date 36, // 12: services.tasks_svc.v1.GetPatientDetailsResponse.tasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task 34, // 13: services.tasks_svc.v1.GetPatientDetailsResponse.room:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Room @@ -3686,26 +3681,26 @@ var file_services_tasks_svc_v1_patient_svc_proto_depIdxs = []int32{ 40, // 16: services.tasks_svc.v1.GetPatientListResponse.unassigned_patients:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient 40, // 17: services.tasks_svc.v1.GetPatientListResponse.discharged_patients:type_name -> services.tasks_svc.v1.GetPatientListResponse.Patient 45, // 18: services.tasks_svc.v1.GetRecentPatientsResponse.recent_patients:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Patient - 46, // 19: services.tasks_svc.v1.UpdatePatientRequest.gender:type_name -> libs.common.v1.Gender + 46, // 19: services.tasks_svc.v1.UpdatePatientRequest.sex:type_name -> libs.common.v1.Sex 47, // 20: services.tasks_svc.v1.UpdatePatientRequest.date_of_birth:type_name -> libs.common.v1.Date 48, // 21: services.tasks_svc.v1.UpdatePatientResponse.conflict:type_name -> libs.common.v1.Conflict 48, // 22: services.tasks_svc.v1.AssignBedResponse.conflict:type_name -> libs.common.v1.Conflict 48, // 23: services.tasks_svc.v1.UnassignBedResponse.conflict:type_name -> libs.common.v1.Conflict - 46, // 24: services.tasks_svc.v1.GetPatientsByWardResponse.Patient.gender:type_name -> libs.common.v1.Gender + 46, // 24: services.tasks_svc.v1.GetPatientsByWardResponse.Patient.sex:type_name -> libs.common.v1.Sex 47, // 25: services.tasks_svc.v1.GetPatientsByWardResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date 32, // 26: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.beds:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed 33, // 27: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.patient:type_name -> services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient - 46, // 28: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.gender:type_name -> libs.common.v1.Gender + 46, // 28: services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.sex:type_name -> libs.common.v1.Sex 49, // 29: services.tasks_svc.v1.GetPatientDetailsResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus 37, // 30: services.tasks_svc.v1.GetPatientDetailsResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientDetailsResponse.Task.SubTask - 46, // 31: services.tasks_svc.v1.GetPatientListResponse.Patient.gender:type_name -> libs.common.v1.Gender + 46, // 31: services.tasks_svc.v1.GetPatientListResponse.Patient.sex:type_name -> libs.common.v1.Sex 47, // 32: services.tasks_svc.v1.GetPatientListResponse.Patient.date_of_birth:type_name -> libs.common.v1.Date 39, // 33: services.tasks_svc.v1.GetPatientListResponse.Patient.room:type_name -> services.tasks_svc.v1.GetPatientListResponse.Room 38, // 34: services.tasks_svc.v1.GetPatientListResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetPatientListResponse.Bed 41, // 35: services.tasks_svc.v1.GetPatientListResponse.Patient.tasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task 49, // 36: services.tasks_svc.v1.GetPatientListResponse.Task.status:type_name -> services.tasks_svc.v1.TaskStatus 42, // 37: services.tasks_svc.v1.GetPatientListResponse.Task.subtasks:type_name -> services.tasks_svc.v1.GetPatientListResponse.Task.SubTask - 46, // 38: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.gender:type_name -> libs.common.v1.Gender + 46, // 38: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.sex:type_name -> libs.common.v1.Sex 44, // 39: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.room:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Room 43, // 40: services.tasks_svc.v1.GetRecentPatientsResponse.Patient.bed:type_name -> services.tasks_svc.v1.GetRecentPatientsResponse.Bed 0, // 41: services.tasks_svc.v1.PatientService.CreatePatient:input_type -> services.tasks_svc.v1.CreatePatientRequest diff --git a/gen/ts/libs/common/v1/types_pb.d.ts b/gen/ts/libs/common/v1/types_pb.d.ts index a1082616b..ed0e54198 100644 --- a/gen/ts/libs/common/v1/types_pb.d.ts +++ b/gen/ts/libs/common/v1/types_pb.d.ts @@ -23,9 +23,9 @@ export namespace Date { } } -export enum Gender { - GENDER_UNSPECIFIED = 0, - GENDER_FEMALE = 1, - GENDER_MALE = 2, - GENDER_DIVERSE = 3, +export enum Sex { + SEX_UNSPECIFIED = 0, + SEX_FEMALE = 1, + SEX_MALE = 2, + SEX_DIVERSE = 3, } diff --git a/gen/ts/libs/common/v1/types_pb.js b/gen/ts/libs/common/v1/types_pb.js index cd8fa0d3f..65c622d87 100644 --- a/gen/ts/libs/common/v1/types_pb.js +++ b/gen/ts/libs/common/v1/types_pb.js @@ -24,7 +24,7 @@ var global = var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.libs.common.v1.Date', null, global); -goog.exportSymbol('proto.libs.common.v1.Gender', null, global); +goog.exportSymbol('proto.libs.common.v1.Sex', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -200,11 +200,11 @@ proto.libs.common.v1.Date.prototype.hasDate = function() { /** * @enum {number} */ -proto.libs.common.v1.Gender = { - GENDER_UNSPECIFIED: 0, - GENDER_FEMALE: 1, - GENDER_MALE: 2, - GENDER_DIVERSE: 3 +proto.libs.common.v1.Sex = { + SEX_UNSPECIFIED: 0, + SEX_FEMALE: 1, + SEX_MALE: 2, + SEX_DIVERSE: 3 }; goog.object.extend(exports, proto.libs.common.v1); diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts index 75b99b34e..85f38f97a 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.d.ts @@ -14,10 +14,10 @@ export class CreatePatientRequest extends jspb.Message { hasNotes(): boolean; clearNotes(): CreatePatientRequest; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): CreatePatientRequest; - hasGender(): boolean; - clearGender(): CreatePatientRequest; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): CreatePatientRequest; + hasSex(): boolean; + clearSex(): CreatePatientRequest; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): CreatePatientRequest; @@ -36,7 +36,7 @@ export namespace CreatePatientRequest { export type AsObject = { humanReadableIdentifier: string, notes?: string, - gender?: libs_common_v1_types_pb.Gender, + sex?: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, } @@ -45,9 +45,9 @@ export namespace CreatePatientRequest { NOTES = 2, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 3, + export enum SexCase { + _SEX_NOT_SET = 0, + SEX = 3, } export enum DateOfBirthCase { @@ -106,8 +106,8 @@ export class GetPatientResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientResponse; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): GetPatientResponse; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): GetPatientResponse; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientResponse; @@ -140,7 +140,7 @@ export namespace GetPatientResponse { id: string, humanReadableIdentifier: string, notes: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientResponse.Room.AsObject, bed?: GetPatientResponse.Bed.AsObject, @@ -249,8 +249,8 @@ export class GetPatientByBedResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientByBedResponse; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): GetPatientByBedResponse; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): GetPatientByBedResponse; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientByBedResponse; @@ -276,7 +276,7 @@ export namespace GetPatientByBedResponse { id: string, humanReadableIdentifier: string, notes: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId: string, consistency: string, @@ -335,8 +335,8 @@ export namespace GetPatientsByWardResponse { getNotes(): string; setNotes(value: string): Patient; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): Patient; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): Patient; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; @@ -364,7 +364,7 @@ export namespace GetPatientsByWardResponse { id: string, humanReadableIdentifier: string, notes: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, bedId?: string, consistency: string, @@ -489,8 +489,8 @@ export namespace GetPatientAssignmentByWardResponse { getName(): string; setName(value: string): Patient; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): Patient; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): Patient; getConsistency(): string; setConsistency(value: string): Patient; @@ -507,7 +507,7 @@ export namespace GetPatientAssignmentByWardResponse { export type AsObject = { id: string, name: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, consistency: string, } } @@ -551,8 +551,8 @@ export class GetPatientDetailsResponse extends jspb.Message { getNotes(): string; setNotes(value: string): GetPatientDetailsResponse; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): GetPatientDetailsResponse; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): GetPatientDetailsResponse; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): GetPatientDetailsResponse; @@ -593,7 +593,7 @@ export namespace GetPatientDetailsResponse { id: string, humanReadableIdentifier: string, notes: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, tasksList: Array, room?: GetPatientDetailsResponse.Room.AsObject, @@ -887,8 +887,8 @@ export namespace GetPatientListResponse { getNotes(): string; setNotes(value: string): Patient; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): Patient; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): Patient; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): Patient; @@ -926,7 +926,7 @@ export namespace GetPatientListResponse { id: string, humanReadableIdentifier: string, notes: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, room?: GetPatientListResponse.Room.AsObject, bed?: GetPatientListResponse.Bed.AsObject, @@ -1127,8 +1127,8 @@ export namespace GetRecentPatientsResponse { getHumanReadableIdentifier(): string; setHumanReadableIdentifier(value: string): Patient; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): Patient; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): Patient; getRoom(): GetRecentPatientsResponse.Room | undefined; setRoom(value?: GetRecentPatientsResponse.Room): Patient; @@ -1155,7 +1155,7 @@ export namespace GetRecentPatientsResponse { export type AsObject = { id: string, humanReadableIdentifier: string, - gender: libs_common_v1_types_pb.Gender, + sex: libs_common_v1_types_pb.Sex, room?: GetRecentPatientsResponse.Room.AsObject, bed?: GetRecentPatientsResponse.Bed.AsObject, consistency: string, @@ -1188,10 +1188,10 @@ export class UpdatePatientRequest extends jspb.Message { hasNotes(): boolean; clearNotes(): UpdatePatientRequest; - getGender(): libs_common_v1_types_pb.Gender; - setGender(value: libs_common_v1_types_pb.Gender): UpdatePatientRequest; - hasGender(): boolean; - clearGender(): UpdatePatientRequest; + getSex(): libs_common_v1_types_pb.Sex; + setSex(value: libs_common_v1_types_pb.Sex): UpdatePatientRequest; + hasSex(): boolean; + clearSex(): UpdatePatientRequest; getDateOfBirth(): libs_common_v1_types_pb.Date | undefined; setDateOfBirth(value?: libs_common_v1_types_pb.Date): UpdatePatientRequest; @@ -1216,7 +1216,7 @@ export namespace UpdatePatientRequest { id: string, humanReadableIdentifier?: string, notes?: string, - gender?: libs_common_v1_types_pb.Gender, + sex?: libs_common_v1_types_pb.Sex, dateOfBirth?: libs_common_v1_types_pb.Date.AsObject, consistency?: string, } @@ -1231,9 +1231,9 @@ export namespace UpdatePatientRequest { NOTES = 3, } - export enum GenderCase { - _GENDER_NOT_SET = 0, - GENDER = 5, + export enum SexCase { + _SEX_NOT_SET = 0, + SEX = 5, } export enum DateOfBirthCase { diff --git a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js index d27d2496b..40dae1089 100644 --- a/gen/ts/services/tasks_svc/v1/patient_svc_pb.js +++ b/gen/ts/services/tasks_svc/v1/patient_svc_pb.js @@ -1073,7 +1073,7 @@ proto.services.tasks_svc.v1.CreatePatientRequest.toObject = function(includeInst var f, obj = { humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 1, ""), notes: jspb.Message.getFieldWithDefault(msg, 2, ""), - gender: jspb.Message.getFieldWithDefault(msg, 3, 0), + sex: jspb.Message.getFieldWithDefault(msg, 3, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f) }; @@ -1120,8 +1120,8 @@ proto.services.tasks_svc.v1.CreatePatientRequest.deserializeBinaryFromReader = f msg.setNotes(value); break; case 3: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 4: var value = new libs_common_v1_types_pb.Date; @@ -1171,7 +1171,7 @@ proto.services.tasks_svc.v1.CreatePatientRequest.serializeBinaryToWriter = funct f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 3)); + f = /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeEnum( 3, @@ -1244,19 +1244,19 @@ proto.services.tasks_svc.v1.CreatePatientRequest.prototype.hasNotes = function() /** - * optional libs.common.v1.Gender gender = 3; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 3; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.CreatePatientRequest.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.CreatePatientRequest} returns this */ -proto.services.tasks_svc.v1.CreatePatientRequest.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.setSex = function(value) { return jspb.Message.setField(this, 3, value); }; @@ -1265,7 +1265,7 @@ proto.services.tasks_svc.v1.CreatePatientRequest.prototype.setGender = function( * Clears the field making it undefined. * @return {!proto.services.tasks_svc.v1.CreatePatientRequest} returns this */ -proto.services.tasks_svc.v1.CreatePatientRequest.prototype.clearGender = function() { +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.clearSex = function() { return jspb.Message.setField(this, 3, undefined); }; @@ -1274,7 +1274,7 @@ proto.services.tasks_svc.v1.CreatePatientRequest.prototype.clearGender = functio * Returns whether this field is set. * @return {boolean} */ -proto.services.tasks_svc.v1.CreatePatientRequest.prototype.hasGender = function() { +proto.services.tasks_svc.v1.CreatePatientRequest.prototype.hasSex = function() { return jspb.Message.getField(this, 3) != null; }; @@ -1641,7 +1641,7 @@ proto.services.tasks_svc.v1.GetPatientResponse.toObject = function(includeInstan id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 10, 0), + sex: jspb.Message.getFieldWithDefault(msg, 10, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetPatientResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.tasks_svc.v1.GetPatientResponse.Bed.toObject(includeInstance, f), @@ -1695,8 +1695,8 @@ proto.services.tasks_svc.v1.GetPatientResponse.deserializeBinaryFromReader = fun msg.setNotes(value); break; case 10: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 11: var value = new libs_common_v1_types_pb.Date; @@ -1767,7 +1767,7 @@ proto.services.tasks_svc.v1.GetPatientResponse.serializeBinaryToWriter = functio f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 10, @@ -2273,19 +2273,19 @@ proto.services.tasks_svc.v1.GetPatientResponse.prototype.setNotes = function(val /** - * optional libs.common.v1.Gender gender = 10; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 10; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetPatientResponse.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +proto.services.tasks_svc.v1.GetPatientResponse.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetPatientResponse} returns this */ -proto.services.tasks_svc.v1.GetPatientResponse.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetPatientResponse.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 10, value); }; @@ -2584,7 +2584,7 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.toObject = function(includeI id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 6, 0), + sex: jspb.Message.getFieldWithDefault(msg, 6, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, ""), consistency: jspb.Message.getFieldWithDefault(msg, 5, "") @@ -2637,8 +2637,8 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.deserializeBinaryFromReader msg.setNotes(value); break; case 6: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 7: var value = new libs_common_v1_types_pb.Date; @@ -2703,7 +2703,7 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.serializeBinaryToWriter = fu f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 6, @@ -2790,19 +2790,19 @@ proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setNotes = functio /** - * optional libs.common.v1.Gender gender = 6; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 6; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetPatientByBedResponse} returns this */ -proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetPatientByBedResponse.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -3167,7 +3167,7 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.toObject = functio id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 6, 0), + sex: jspb.Message.getFieldWithDefault(msg, 6, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), bedId: jspb.Message.getFieldWithDefault(msg, 4, ""), consistency: jspb.Message.getFieldWithDefault(msg, 5, "") @@ -3220,8 +3220,8 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.deserializeBinaryF msg.setNotes(value); break; case 6: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 7: var value = new libs_common_v1_types_pb.Date; @@ -3286,7 +3286,7 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.serializeBinaryToW f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 6, @@ -3373,19 +3373,19 @@ proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setNotes /** - * optional libs.common.v1.Gender gender = 6; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 6; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient} returns this */ -proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetPatientsByWardResponse.Patient.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -4113,7 +4113,7 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), - gender: jspb.Message.getFieldWithDefault(msg, 4, 0), + sex: jspb.Message.getFieldWithDefault(msg, 4, 0), consistency: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -4160,8 +4160,8 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. msg.setName(value); break; case 4: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -4210,7 +4210,7 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 4, @@ -4264,19 +4264,19 @@ proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient. /** - * optional libs.common.v1.Gender gender = 4; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 4; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient} returns this */ -proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetPatientAssignmentByWardResponse.Room.Bed.Patient.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; @@ -4692,7 +4692,7 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.toObject = function(includ id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 9, 0), + sex: jspb.Message.getFieldWithDefault(msg, 9, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), tasksList: jspb.Message.toObjectList(msg.getTasksList(), proto.services.tasks_svc.v1.GetPatientDetailsResponse.Task.toObject, includeInstance), @@ -4749,8 +4749,8 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.deserializeBinaryFromReade msg.setNotes(value); break; case 9: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 10: var value = new libs_common_v1_types_pb.Date; @@ -4830,7 +4830,7 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.serializeBinaryToWriter = f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 9, @@ -5959,19 +5959,19 @@ proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setNotes = funct /** - * optional libs.common.v1.Gender gender = 9; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 9; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetPatientDetailsResponse} returns this */ -proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetPatientDetailsResponse.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 9, value); }; @@ -6913,7 +6913,7 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.toObject = function(i id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 5, ""), - gender: jspb.Message.getFieldWithDefault(msg, 8, 0), + sex: jspb.Message.getFieldWithDefault(msg, 8, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetPatientListResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.tasks_svc.v1.GetPatientListResponse.Bed.toObject(includeInstance, f), @@ -6969,8 +6969,8 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.deserializeBinaryFrom msg.setNotes(value); break; case 8: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 9: var value = new libs_common_v1_types_pb.Date; @@ -7046,7 +7046,7 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.serializeBinaryToWrit f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 8, @@ -7150,19 +7150,19 @@ proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setNotes = /** - * optional libs.common.v1.Gender gender = 8; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 8; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetPatientListResponse.Patient} returns this */ -proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetPatientListResponse.Patient.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 8, value); }; @@ -8723,7 +8723,7 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.toObject = functio var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), - gender: jspb.Message.getFieldWithDefault(msg, 6, 0), + sex: jspb.Message.getFieldWithDefault(msg, 6, 0), room: (f = msg.getRoom()) && proto.services.tasks_svc.v1.GetRecentPatientsResponse.Room.toObject(includeInstance, f), bed: (f = msg.getBed()) && proto.services.tasks_svc.v1.GetRecentPatientsResponse.Bed.toObject(includeInstance, f), consistency: jspb.Message.getFieldWithDefault(msg, 5, "") @@ -8772,8 +8772,8 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.deserializeBinaryF msg.setHumanReadableIdentifier(value); break; case 6: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 3: var value = new proto.services.tasks_svc.v1.GetRecentPatientsResponse.Room; @@ -8832,7 +8832,7 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.serializeBinaryToW f ); } - f = message.getGender(); + f = message.getSex(); if (f !== 0.0) { writer.writeEnum( 6, @@ -8902,19 +8902,19 @@ proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.setHuman /** - * optional libs.common.v1.Gender gender = 6; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 6; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient} returns this */ -proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.GetRecentPatientsResponse.Patient.prototype.setSex = function(value) { return jspb.Message.setProto3EnumField(this, 6, value); }; @@ -9084,7 +9084,7 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.toObject = function(includeInst id: jspb.Message.getFieldWithDefault(msg, 1, ""), humanReadableIdentifier: jspb.Message.getFieldWithDefault(msg, 2, ""), notes: jspb.Message.getFieldWithDefault(msg, 3, ""), - gender: jspb.Message.getFieldWithDefault(msg, 5, 0), + sex: jspb.Message.getFieldWithDefault(msg, 5, 0), dateOfBirth: (f = msg.getDateOfBirth()) && libs_common_v1_types_pb.Date.toObject(includeInstance, f), consistency: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -9136,8 +9136,8 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.deserializeBinaryFromReader = f msg.setNotes(value); break; case 5: - var value = /** @type {!proto.libs.common.v1.Gender} */ (reader.readEnum()); - msg.setGender(value); + var value = /** @type {!proto.libs.common.v1.Sex} */ (reader.readEnum()); + msg.setSex(value); break; case 6: var value = new libs_common_v1_types_pb.Date; @@ -9198,7 +9198,7 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.serializeBinaryToWriter = funct f ); } - f = /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getField(message, 5)); + f = /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeEnum( 5, @@ -9314,19 +9314,19 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.hasNotes = function() /** - * optional libs.common.v1.Gender gender = 5; - * @return {!proto.libs.common.v1.Gender} + * optional libs.common.v1.Sex sex = 5; + * @return {!proto.libs.common.v1.Sex} */ -proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.getGender = function() { - return /** @type {!proto.libs.common.v1.Gender} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.getSex = function() { + return /** @type {!proto.libs.common.v1.Sex} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * @param {!proto.libs.common.v1.Gender} value + * @param {!proto.libs.common.v1.Sex} value * @return {!proto.services.tasks_svc.v1.UpdatePatientRequest} returns this */ -proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.setGender = function(value) { +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.setSex = function(value) { return jspb.Message.setField(this, 5, value); }; @@ -9335,7 +9335,7 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.setGender = function( * Clears the field making it undefined. * @return {!proto.services.tasks_svc.v1.UpdatePatientRequest} returns this */ -proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.clearGender = function() { +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.clearSex = function() { return jspb.Message.setField(this, 5, undefined); }; @@ -9344,7 +9344,7 @@ proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.clearGender = functio * Returns whether this field is set. * @return {boolean} */ -proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.hasGender = function() { +proto.services.tasks_svc.v1.UpdatePatientRequest.prototype.hasSex = function() { return jspb.Message.getField(this, 5) != null; }; diff --git a/proto/libs/common/v1/types.proto b/proto/libs/common/v1/types.proto index a2395835b..b07d5d288 100644 --- a/proto/libs/common/v1/types.proto +++ b/proto/libs/common/v1/types.proto @@ -11,9 +11,9 @@ message Date { google.protobuf.Timestamp date = 1; } -enum Gender { - GENDER_UNSPECIFIED = 0; - GENDER_FEMALE = 1; - GENDER_MALE = 2; - GENDER_DIVERSE = 3; +enum Sex { + SEX_UNSPECIFIED = 0; + SEX_FEMALE = 1; + SEX_MALE = 2; + SEX_DIVERSE = 3; } diff --git a/proto/services/tasks_svc/v1/patient_svc.proto b/proto/services/tasks_svc/v1/patient_svc.proto index 03f66779a..130f34a43 100644 --- a/proto/services/tasks_svc/v1/patient_svc.proto +++ b/proto/services/tasks_svc/v1/patient_svc.proto @@ -15,7 +15,7 @@ option go_package = "gen/services/tasks-svc/v1"; message CreatePatientRequest { string human_readable_identifier = 1; // @gotags: validate:"required" optional string notes = 2; - optional libs.common.v1.Gender gender = 3; + optional libs.common.v1.Sex sex = 3; optional libs.common.v1.Date date_of_birth = 4; } @@ -36,7 +36,7 @@ message GetPatientResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - libs.common.v1.Gender gender = 10; + libs.common.v1.Sex sex = 10; optional libs.common.v1.Date date_of_birth = 11; @@ -71,7 +71,7 @@ message GetPatientByBedResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - libs.common.v1.Gender gender = 6; + libs.common.v1.Sex sex = 6; optional libs.common.v1.Date date_of_birth = 7; string bed_id = 4; @@ -93,7 +93,7 @@ message GetPatientsByWardResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - libs.common.v1.Gender gender = 6; + libs.common.v1.Sex sex = 6; optional libs.common.v1.Date date_of_birth = 7; optional string bed_id = 4; @@ -128,7 +128,7 @@ message GetPatientAssignmentByWardResponse { message Patient { string id = 1; string name = 2; - libs.common.v1.Gender gender = 4; + libs.common.v1.Sex sex = 4; string consistency = 3; } } @@ -147,7 +147,7 @@ message GetPatientDetailsResponse { string id = 1; string human_readable_identifier = 2; string notes = 3; - libs.common.v1.Gender gender = 9; + libs.common.v1.Sex sex = 9; optional libs.common.v1.Date date_of_birth = 10; repeated Task tasks = 4; @@ -219,7 +219,7 @@ message GetPatientListResponse { string human_readable_identifier = 2; string notes = 5; - libs.common.v1.Gender gender = 8; + libs.common.v1.Sex sex = 8; optional libs.common.v1.Date date_of_birth = 9; Room room = 3; @@ -274,7 +274,7 @@ message GetRecentPatientsResponse { message Patient { string id = 1; string human_readable_identifier = 2; - libs.common.v1.Gender gender = 6; + libs.common.v1.Sex sex = 6; optional Room room = 3; optional Bed bed = 4; string consistency = 5; @@ -290,7 +290,7 @@ message UpdatePatientRequest { string id = 1; // @gotags: validate:"uuid4" optional string human_readable_identifier = 2; optional string notes = 3; - optional libs.common.v1.Gender gender = 5; + optional libs.common.v1.Sex sex = 5; optional libs.common.v1.Date date_of_birth = 6; optional string consistency = 4; // no conflict detection, if not provided } diff --git a/services/tasks-svc/internal/patient/aggregate/actions.go b/services/tasks-svc/internal/patient/aggregate/actions.go index e4f1d57eb..fb99d2c7b 100644 --- a/services/tasks-svc/internal/patient/aggregate/actions.go +++ b/services/tasks-svc/internal/patient/aggregate/actions.go @@ -14,13 +14,13 @@ func (a *PatientAggregate) CreatePatient( ctx context.Context, humanReadableIdentifier string, notes string, - gender v1.Gender, + sex v1.Sex, dateOfBirth *time.Time, ) error { // The "Patient" entity is our main entity in this aggregate. // Therefore, we are using the same ID id := a.GetID() - event, err := patientEventsV1.NewPatientCreatedEvent(ctx, a, id, humanReadableIdentifier, notes, gender, dateOfBirth) + event, err := patientEventsV1.NewPatientCreatedEvent(ctx, a, id, humanReadableIdentifier, notes, sex, dateOfBirth) if err != nil { return err } @@ -67,8 +67,8 @@ func (a *PatientAggregate) UpdateNotes(ctx context.Context, newNotes string) err return a.Apply(event) } -func (a *PatientAggregate) UpdateGender(ctx context.Context, gender v1.Gender) error { - event, err := patientEventsV1.NewGenderUpdatedEvent(ctx, a, gender) +func (a *PatientAggregate) UpdateSex(ctx context.Context, sex v1.Sex) error { + event, err := patientEventsV1.NewSexUpdatedEvent(ctx, a, sex) if err != nil { return err } diff --git a/services/tasks-svc/internal/patient/aggregate/aggregate.go b/services/tasks-svc/internal/patient/aggregate/aggregate.go index 34e047fc6..15fa499bb 100644 --- a/services/tasks-svc/internal/patient/aggregate/aggregate.go +++ b/services/tasks-svc/internal/patient/aggregate/aggregate.go @@ -39,7 +39,7 @@ func (a *PatientAggregate) initEventListeners() { a.RegisterEventListener(patientEventsV1.BedUnsassigned, a.onBedUnassigned) a.RegisterEventListener(patientEventsV1.PatientDischarged, a.onPatientDischarged) a.RegisterEventListener(patientEventsV1.NotesUpdated, a.onNotesUpdated) - a.RegisterEventListener(patientEventsV1.GenderUpdated, a.onGenderUpdated) + a.RegisterEventListener(patientEventsV1.SexUpdated, a.onSexUpdated) a.RegisterEventListener(patientEventsV1.DateOfBirthUpdated, a.onDateOfBirthUpdated) a.RegisterEventListener(patientEventsV1.HumanReadableIdentifierUpdated, a.onHumanReadableIdentifierUpdated) a.RegisterEventListener(patientEventsV1.PatientReadmitted, a.onPatientReadmitted) @@ -57,7 +57,7 @@ func (a *PatientAggregate) onPatientCreated(evt hwes.Event) error { a.Patient.HumanReadableIdentifier = payload.HumanReadableIdentifier a.Patient.CreatedAt = evt.Timestamp a.Patient.UpdatedAt = evt.Timestamp - a.Patient.Gender = payload.Gender + a.Patient.Sex = payload.Sex a.Patient.DateOfBirth = payload.DateOfBirth return nil @@ -103,13 +103,13 @@ func (a *PatientAggregate) onNotesUpdated(evt hwes.Event) error { return nil } -func (a *PatientAggregate) onGenderUpdated(evt hwes.Event) error { - var payload patientEventsV1.GenderUpdatedEvent +func (a *PatientAggregate) onSexUpdated(evt hwes.Event) error { + var payload patientEventsV1.SexUpdatedEvent if err := evt.GetJsonData(&payload); err != nil { return err } - a.Patient.Gender = payload.Gender + a.Patient.Sex = payload.Sex return nil } diff --git a/services/tasks-svc/internal/patient/aggregate/aggregate_test.go b/services/tasks-svc/internal/patient/aggregate/aggregate_test.go index 0834095a9..f76cf6d48 100644 --- a/services/tasks-svc/internal/patient/aggregate/aggregate_test.go +++ b/services/tasks-svc/internal/patient/aggregate/aggregate_test.go @@ -38,7 +38,7 @@ func TestPatientAggregate_CreatePatient(t *testing.T) { patientHumanReadableIdentifier := t.Name() patientNotes := "test-notes" - gender := v1.Gender_GENDER_DIVERSE + sex := v1.Sex_SEX_DIVERSE dateOfBirth := time.Now().UTC() patientAggregate := aggregate.NewPatientAggregate(patientID) @@ -50,14 +50,14 @@ func TestPatientAggregate_CreatePatient(t *testing.T) { patientID, patientHumanReadableIdentifier, patientNotes, - gender, + sex, &dateOfBirth, ) }) require.Equal(t, patientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) require.Equal(t, patientNotes, patientAggregate.Patient.Notes) - require.Equal(t, gender, patientAggregate.Patient.Gender) + require.Equal(t, sex, patientAggregate.Patient.Sex) require.Equal(t, dateOfBirth, *patientAggregate.Patient.DateOfBirth) } @@ -81,7 +81,7 @@ func TestPatientAggregate_UpdateNotes(t *testing.T) { patientID, patientHumanReadableIdentifier, initialPatientNotes, - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) }) @@ -114,7 +114,7 @@ func TestPatientAggregate_UpdateHumanReadableIdentifier(t *testing.T) { patientID, initialPatientHumanReadableIdentifier, "", - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) }) @@ -131,7 +131,7 @@ func TestPatientAggregate_UpdateHumanReadableIdentifier(t *testing.T) { require.Equal(t, updatedPatientHumanReadableIdentifier, patientAggregate.Patient.HumanReadableIdentifier) } -func TestPatientAggregate_UpdateGender(t *testing.T) { +func TestPatientAggregate_UpdateSex(t *testing.T) { ctx := context.Background() ctx = auth.ContextWithUserID(ctx, uuid.New()) ctx = auth.ContextWithOrganizationID(ctx, uuid.New()) @@ -147,21 +147,21 @@ func TestPatientAggregate_UpdateGender(t *testing.T) { patientID, t.Name(), "", - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) }) - require.Equal(t, v1.Gender_GENDER_UNSPECIFIED, patientAggregate.Patient.Gender) + require.Equal(t, v1.Sex_SEX_UNSPECIFIED, patientAggregate.Patient.Sex) MustApplyEvent(t, patientAggregate, func() (hwes.Event, error) { - return patientEventsV1.NewGenderUpdatedEvent( + return patientEventsV1.NewSexUpdatedEvent( ctx, patientAggregate, - v1.Gender_GENDER_DIVERSE, + v1.Sex_SEX_DIVERSE, ) }) - require.Equal(t, v1.Gender_GENDER_DIVERSE, patientAggregate.Patient.Gender) + require.Equal(t, v1.Sex_SEX_DIVERSE, patientAggregate.Patient.Sex) } func TestPatientAggregate_UpdateDateOfBirth(t *testing.T) { @@ -180,7 +180,7 @@ func TestPatientAggregate_UpdateDateOfBirth(t *testing.T) { patientID, t.Name(), "", - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) }) @@ -213,7 +213,7 @@ func TestPatientAggregate_DischargeReadmitPatient(t *testing.T) { patientID, patientHumanReadableIdentifier, "", - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) }) @@ -255,7 +255,7 @@ func TestPatientAggregate_AssignUnassignBed(t *testing.T) { patientID, patientHumanReadableIdentifier, "", - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) }) @@ -289,7 +289,7 @@ func TestPatientAggregate_DeletePatient(t *testing.T) { ctx, humanRI, notes, - v1.Gender_GENDER_UNSPECIFIED, + v1.Sex_SEX_UNSPECIFIED, nil, ) require.NoError(t, err) diff --git a/services/tasks-svc/internal/patient/api/grpc.go b/services/tasks-svc/internal/patient/api/grpc.go index a054d4641..8e0516d69 100644 --- a/services/tasks-svc/internal/patient/api/grpc.go +++ b/services/tasks-svc/internal/patient/api/grpc.go @@ -65,7 +65,7 @@ func (s *PatientGrpcService) CreatePatient( } consistency, err := s.handlers.Commands.V1.CreatePatient( - ctx, patientID, req.GetHumanReadableIdentifier(), req.Notes, req.GetGender(), dateOfBirth) + ctx, patientID, req.GetHumanReadableIdentifier(), req.Notes, req.GetSex(), dateOfBirth) if err != nil { return nil, err } @@ -146,7 +146,7 @@ func (s *PatientGrpcService) GetPatient( Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, - Gender: patient.Gender, + Sex: patient.Sex, DateOfBirth: formatDateOfBirth(patient.DateOfBirth), Room: roomRes, Bed: bedRes, @@ -175,7 +175,7 @@ func (s *PatientGrpcService) GetPatientByBed( Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, - Gender: patient.Gender, + Sex: patient.Sex, DateOfBirth: formatDateOfBirth(patient.DateOfBirth), BedId: req.GetBedId(), Consistency: patient.Consistency, @@ -203,7 +203,7 @@ func (s *PatientGrpcService) GetPatientsByWard( Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, Notes: patient.Notes, - Gender: patient.Gender, + Sex: patient.Sex, DateOfBirth: formatDateOfBirth(patient.DateOfBirth), BedId: hwutil.NullUUIDToStringPtr(patient.BedID), Consistency: patient.Consistency, @@ -278,7 +278,7 @@ func (s *PatientGrpcService) GetPatientDetails( Id: patientWithDetails.ID.String(), HumanReadableIdentifier: patientWithDetails.HumanReadableIdentifier, Notes: patientWithDetails.Notes, - Gender: patientWithDetails.Gender, + Sex: patientWithDetails.Sex, DateOfBirth: formatDateOfBirth(patientWithDetails.DateOfBirth), Tasks: taskResponse, Room: roomResponse, @@ -366,7 +366,7 @@ func (s *PatientGrpcService) GetPatientList( Id: patientDetails.ID.String(), HumanReadableIdentifier: patientDetails.HumanReadableIdentifier, Notes: patientDetails.Notes, - Gender: patientDetails.Gender, + Sex: patientDetails.Sex, DateOfBirth: formatDateOfBirth(patientDetails.DateOfBirth), Room: roomResponse, Bed: bedResponse, @@ -467,7 +467,7 @@ func (s *PatientGrpcService) GetRecentPatients( return &pb.GetRecentPatientsResponse_Patient{ Id: patient.ID.String(), HumanReadableIdentifier: patient.HumanReadableIdentifier, - Gender: patient.Gender, + Sex: patient.Sex, Room: roomRes, Bed: bedRes, Consistency: patient.Consistency, @@ -491,7 +491,7 @@ func (s *PatientGrpcService) UpdatePatient( patientID, req.HumanReadableIdentifier, req.Notes, - req.Gender, + req.Sex, req.DateOfBirth, ) if err != nil { @@ -641,7 +641,7 @@ func (s *PatientGrpcService) GetPatientAssignmentByWard( return pb.GetPatientAssignmentByWardResponse_Room_Bed_Patient{ Id: bedWithPatient.Patient.ID.String(), Name: bedWithPatient.Patient.HumanReadableIdentifier, - Gender: bedWithPatient.Patient.Gender, + Sex: bedWithPatient.Patient.Sex, Consistency: bedWithPatient.Patient.Consistency, } }), diff --git a/services/tasks-svc/internal/patient/commands/v1/create_patient.go b/services/tasks-svc/internal/patient/commands/v1/create_patient.go index 25b114993..2683a4717 100644 --- a/services/tasks-svc/internal/patient/commands/v1/create_patient.go +++ b/services/tasks-svc/internal/patient/commands/v1/create_patient.go @@ -22,7 +22,7 @@ type CreatePatientCommandHandler func( patientID uuid.UUID, humanReadableIdentifier string, notes *string, - gender v1.Gender, + sex v1.Sex, dateOfBirth *time.Time, ) (common.ConsistencyToken, error) @@ -32,7 +32,7 @@ func NewCreatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) patientID uuid.UUID, humanReadableIdentifier string, notes *string, - gender v1.Gender, + sex v1.Sex, dateOfBirth *time.Time, ) (common.ConsistencyToken, error) { a := aggregate.NewPatientAggregate(patientID) @@ -59,7 +59,7 @@ func NewCreatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) finalNotes = *notes } - if err := a.CreatePatient(ctx, humanReadableIdentifier, finalNotes, gender, dateOfBirth); err != nil { + if err := a.CreatePatient(ctx, humanReadableIdentifier, finalNotes, sex, dateOfBirth); err != nil { return 0, err } diff --git a/services/tasks-svc/internal/patient/commands/v1/update_patient.go b/services/tasks-svc/internal/patient/commands/v1/update_patient.go index 4cc306361..6e4289e32 100644 --- a/services/tasks-svc/internal/patient/commands/v1/update_patient.go +++ b/services/tasks-svc/internal/patient/commands/v1/update_patient.go @@ -20,7 +20,7 @@ type UpdatePatientCommandHandler func( patientID uuid.UUID, humanReadableIdentifier *string, notes *string, - gender *v1.Gender, + sex *v1.Sex, dateOfBirth *v1.Date, ) (common.ConsistencyToken, error) @@ -30,7 +30,7 @@ func NewUpdatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) patientID uuid.UUID, humanReadableIdentifier *string, notes *string, - gender *v1.Gender, + sex *v1.Sex, dateOfBirth *v1.Date, ) (common.ConsistencyToken, error) { user := commonPerm.UserFromCtx(ctx) @@ -56,8 +56,8 @@ func NewUpdatePatientCommandHandler(as hwes.AggregateStore, authz hwauthz.AuthZ) } } - if gender != nil { - if err := a.UpdateGender(ctx, *gender); err != nil { + if sex != nil { + if err := a.UpdateSex(ctx, *sex); err != nil { return 0, err } } diff --git a/services/tasks-svc/internal/patient/events/v1/events.go b/services/tasks-svc/internal/patient/events/v1/events.go index 9cd0e62d2..26c5c1c7a 100644 --- a/services/tasks-svc/internal/patient/events/v1/events.go +++ b/services/tasks-svc/internal/patient/events/v1/events.go @@ -13,7 +13,7 @@ const ( PatientCreated = "PATIENT_CREATED_v1" HumanReadableIdentifierUpdated = "HUMAN_READABLE_IDENTIFIER_UPDATED_v1" NotesUpdated = "NOTES_UPDATED_v1" - GenderUpdated = "GENDER_UPDATED_v1" + SexUpdated = "SEX_UPDATED_v1" DateOfBirthUpdated = "DATE_OF_BIRTH_UPDATED_v1" BedAssigned = "BED_ASSIGNED_v1" BedUnsassigned = "BED_UNASSIGNED_v1" @@ -26,7 +26,7 @@ type PatientCreatedEvent struct { ID string `json:"id"` HumanReadableIdentifier string `json:"human_readable_identifier"` Notes string `json:"notes"` - Gender v1.Gender `json:"gender"` + Sex v1.Sex `json:"sex"` DateOfBirth *time.Time `json:"date_of_birth"` } @@ -40,9 +40,9 @@ type NotesUpdatedEvent struct { Notes string `json:"notes"` } -type GenderUpdatedEvent struct { - PatientID string `json:"patient_id"` - Gender v1.Gender `json:"gender"` +type SexUpdatedEvent struct { + PatientID string `json:"patient_id"` + Sex v1.Sex `json:"sex"` } type DateOfBirthUpdatedEvent struct { @@ -64,14 +64,14 @@ func NewPatientCreatedEvent( id uuid.UUID, humanReadableIdentifier string, notes string, - gender v1.Gender, + sex v1.Sex, dateOfBirth *time.Time, ) (hwes.Event, error) { payload := PatientCreatedEvent{ ID: id.String(), HumanReadableIdentifier: humanReadableIdentifier, Notes: notes, - Gender: gender, + Sex: sex, DateOfBirth: dateOfBirth, } return hwes.NewEvent(a, PatientCreated, hwes.WithContext(ctx), hwes.WithData(payload)) @@ -96,12 +96,12 @@ func NewNotesUpdatedEvent(ctx context.Context, a hwes.Aggregate, notes string) ( return hwes.NewEvent(a, NotesUpdated, hwes.WithContext(ctx), hwes.WithData(payload)) } -func NewGenderUpdatedEvent(ctx context.Context, a hwes.Aggregate, gender v1.Gender) (hwes.Event, error) { - payload := GenderUpdatedEvent{ +func NewSexUpdatedEvent(ctx context.Context, a hwes.Aggregate, sex v1.Sex) (hwes.Event, error) { + payload := SexUpdatedEvent{ PatientID: a.GetID().String(), - Gender: gender, + Sex: sex, } - return hwes.NewEvent(a, GenderUpdated, hwes.WithContext(ctx), hwes.WithData(payload)) + return hwes.NewEvent(a, SexUpdated, hwes.WithContext(ctx), hwes.WithData(payload)) } func NewDateOfBirthUpdatedEvent(ctx context.Context, a hwes.Aggregate, dateOfBirth time.Time) (hwes.Event, error) { diff --git a/services/tasks-svc/internal/patient/models/patient.go b/services/tasks-svc/internal/patient/models/patient.go index 3e2a23f4b..601f4a1c3 100644 --- a/services/tasks-svc/internal/patient/models/patient.go +++ b/services/tasks-svc/internal/patient/models/patient.go @@ -11,7 +11,7 @@ import ( type PatientBase struct { ID uuid.UUID HumanReadableIdentifier string - Gender v1.Gender + Sex v1.Sex } type Patient struct { diff --git a/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go b/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go index 174ea9dc3..614ff9856 100644 --- a/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go +++ b/services/tasks-svc/internal/patient/projections/patientPostgresProjection/patient_postgres_projection.go @@ -42,7 +42,7 @@ func (p *Projection) initEventListeners() { p.RegisterEventListener(patientEventsV1.BedUnsassigned, p.onBedUnassigned) p.RegisterEventListener(patientEventsV1.PatientDischarged, p.onPatientDischarged) p.RegisterEventListener(patientEventsV1.NotesUpdated, p.onNotesUpdated) - p.RegisterEventListener(patientEventsV1.GenderUpdated, p.onGenderUpdated) + p.RegisterEventListener(patientEventsV1.SexUpdated, p.onSexUpdated) p.RegisterEventListener(patientEventsV1.DateOfBirthUpdated, p.onDateOfBirthUpdated) p.RegisterEventListener(patientEventsV1.HumanReadableIdentifierUpdated, p.onHumanReadableIdentifierUpdated) p.RegisterEventListener(patientEventsV1.PatientReadmitted, p.onPatientReadmitted) @@ -73,7 +73,7 @@ func (a *Projection) onPatientCreated(ctx context.Context, evt hwes.Event) (erro ID: patientID, HumanReadableIdentifier: payload.HumanReadableIdentifier, Notes: payload.Notes, - Gender: int32(payload.Gender), + Sex: int32(payload.Sex), DateOfBirth: hwdb.TimePtrToDate(payload.DateOfBirth), CreatedAt: hwdb.TimeToTimestamp(evt.Timestamp), UpdatedAt: hwdb.TimeToTimestamp(evt.Timestamp), @@ -164,10 +164,10 @@ func (a *Projection) onNotesUpdated(ctx context.Context, evt hwes.Event) (error, return nil, nil } -func (a *Projection) onGenderUpdated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { +func (a *Projection) onSexUpdated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { log := zlog.Ctx(ctx) - var payload patientEventsV1.GenderUpdatedEvent + var payload patientEventsV1.SexUpdatedEvent if err := evt.GetJsonData(&payload); err != nil { log.Error().Err(err).Msg("unmarshal failed") return err, hwutil.PtrTo(esdb.NackActionPark) @@ -175,7 +175,7 @@ func (a *Projection) onGenderUpdated(ctx context.Context, evt hwes.Event) (error err := a.patientRepo.UpdatePatient(ctx, patient_repo.UpdatePatientParams{ ID: evt.AggregateID, - Gender: hwutil.PtrTo(int32(payload.Gender)), + Sex: hwutil.PtrTo(int32(payload.Sex)), UpdatedAt: hwdb.TimeToTimestamp(evt.Timestamp), Consistency: int64(evt.GetVersion()), //nolint:gosec }) diff --git a/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go b/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go index 354dea888..fd481542e 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_all_patients_with_details.go @@ -71,7 +71,7 @@ func NewGetAllPatientsWithDetailsQueryHandler(authz hwauthz.AuthZ) GetAllPatient PatientBase: models.PatientBase{ ID: row.Patient.ID, HumanReadableIdentifier: row.Patient.HumanReadableIdentifier, - Gender: v1.Gender(row.Patient.Gender), + Sex: v1.Sex(row.Patient.Sex), }, Notes: row.Patient.Notes, BedID: row.Patient.BedID, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go index 03569bbfe..290dd4203 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_assignment_by_ward.go @@ -62,7 +62,7 @@ func NewGetPatientAssignmentByWardQueryHandler(authz hwauthz.AuthZ) GetPatientAs PatientBase: models.PatientBase{ ID: bedRow.PatientID.UUID, HumanReadableIdentifier: *bedRow.PatientHumanReadableIdentifier, - Gender: 0, + Sex: 0, }, Consistency: common.ConsistencyToken(roomRow.RoomConsistency).String(), //nolint:gosec } diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go index c01f0abad..a07d106fa 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_by_bed.go @@ -54,7 +54,7 @@ func NewGetPatientByBedQueryHandler(authz hwauthz.AuthZ) GetPatientByBedQueryHan PatientBase: models.PatientBase{ ID: patient.ID, HumanReadableIdentifier: patient.HumanReadableIdentifier, - Gender: v1.Gender(patient.Gender), + Sex: v1.Sex(patient.Sex), }, Notes: patient.Notes, BedID: patient.BedID, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go b/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go index 194d3250e..592fc83e2 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patient_with_details_by_id.go @@ -73,7 +73,7 @@ func NewGetPatientWithDetailsByIDQueryHandler( PatientBase: models.PatientBase{ ID: patientRes.ID, HumanReadableIdentifier: patientRes.HumanReadableIdentifier, - Gender: v1.Gender(patientRes.Gender), + Sex: v1.Sex(patientRes.Sex), }, Notes: patientRes.Notes, BedID: patientRes.BedID, diff --git a/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go b/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go index 740004988..92b4640c6 100644 --- a/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go +++ b/services/tasks-svc/internal/patient/queries/v1/get_patients_by_ward.go @@ -53,7 +53,7 @@ func NewGetPatientsByWardQueryHandler(authz hwauthz.AuthZ) GetPatientsByWardQuer PatientBase: models.PatientBase{ ID: patient.ID, HumanReadableIdentifier: patient.HumanReadableIdentifier, - Gender: v1.Gender(patient.Gender), + Sex: v1.Sex(patient.Sex), }, Notes: patient.Notes, BedID: patient.BedID, diff --git a/services/tasks-svc/migrations/000030_gender_dob.up.sql b/services/tasks-svc/migrations/000030_gender_dob.up.sql deleted file mode 100644 index 577e525a9..000000000 --- a/services/tasks-svc/migrations/000030_gender_dob.up.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE patients ADD COLUMN IF NOT EXISTS gender integer NOT NULL DEFAULT 0; -ALTER TABLE patients ADD COLUMN IF NOT EXISTS date_of_birth date; diff --git a/services/tasks-svc/migrations/000030_gender_dob.down.sql b/services/tasks-svc/migrations/000030_sex_dob.down.sql similarity index 53% rename from services/tasks-svc/migrations/000030_gender_dob.down.sql rename to services/tasks-svc/migrations/000030_sex_dob.down.sql index ea936dd85..804474fd5 100644 --- a/services/tasks-svc/migrations/000030_gender_dob.down.sql +++ b/services/tasks-svc/migrations/000030_sex_dob.down.sql @@ -1,2 +1,2 @@ ALTER TABLE patients DROP COLUMN IF EXISTS date_of_birth; -ALTER TABLE patients DROP COLUMN IF EXISTS gender; +ALTER TABLE patients DROP COLUMN IF EXISTS sex; diff --git a/services/tasks-svc/migrations/000030_sex_dob.up.sql b/services/tasks-svc/migrations/000030_sex_dob.up.sql new file mode 100644 index 000000000..942f64d08 --- /dev/null +++ b/services/tasks-svc/migrations/000030_sex_dob.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE patients ADD COLUMN IF NOT EXISTS sex integer NOT NULL DEFAULT 0; +ALTER TABLE patients ADD COLUMN IF NOT EXISTS date_of_birth date; diff --git a/services/tasks-svc/repos/bed_repo/models.go b/services/tasks-svc/repos/bed_repo/models.go index 09ec8c18f..462952544 100644 --- a/services/tasks-svc/repos/bed_repo/models.go +++ b/services/tasks-svc/repos/bed_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/patient_repo.sql b/services/tasks-svc/repos/patient_repo.sql index 57d0549b8..b930f0483 100644 --- a/services/tasks-svc/repos/patient_repo.sql +++ b/services/tasks-svc/repos/patient_repo.sql @@ -1,6 +1,6 @@ -- name: CreatePatient :exec INSERT INTO patients - (id, human_readable_identifier, notes, gender, date_of_birth, created_at, updated_at, consistency, organization_id) + (id, human_readable_identifier, notes, sex, date_of_birth, created_at, updated_at, consistency, organization_id) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9); -- name: UpdatePatient :exec @@ -9,7 +9,7 @@ SET human_readable_identifier = coalesce(sqlc.narg('human_readable_identfier'), notes = coalesce(sqlc.narg('notes'), notes), updated_at = coalesce(sqlc.narg('updated_at'), updated_at), is_discharged = coalesce(sqlc.narg('is_discharged'), is_discharged), - gender = coalesce(sqlc.narg('gender'), gender), + sex = coalesce(sqlc.narg('sex'), sex), date_of_birth = coalesce(sqlc.narg('date_of_birth'), date_of_birth), consistency = @consistency WHERE id = $1; diff --git a/services/tasks-svc/repos/patient_repo/models.go b/services/tasks-svc/repos/patient_repo/models.go index 2a19b7b9b..4e0642e4c 100644 --- a/services/tasks-svc/repos/patient_repo/models.go +++ b/services/tasks-svc/repos/patient_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/patient_repo/patient_repo.sql.go b/services/tasks-svc/repos/patient_repo/patient_repo.sql.go index 39b8dce48..9c167edea 100644 --- a/services/tasks-svc/repos/patient_repo/patient_repo.sql.go +++ b/services/tasks-svc/repos/patient_repo/patient_repo.sql.go @@ -14,7 +14,7 @@ import ( const createPatient = `-- name: CreatePatient :exec INSERT INTO patients - (id, human_readable_identifier, notes, gender, date_of_birth, created_at, updated_at, consistency, organization_id) + (id, human_readable_identifier, notes, sex, date_of_birth, created_at, updated_at, consistency, organization_id) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) ` @@ -22,7 +22,7 @@ type CreatePatientParams struct { ID uuid.UUID HumanReadableIdentifier string Notes string - Gender int32 + Sex int32 DateOfBirth pgtype.Date CreatedAt pgtype.Timestamp UpdatedAt pgtype.Timestamp @@ -35,7 +35,7 @@ func (q *Queries) CreatePatient(ctx context.Context, arg CreatePatientParams) er arg.ID, arg.HumanReadableIdentifier, arg.Notes, - arg.Gender, + arg.Sex, arg.DateOfBirth, arg.CreatedAt, arg.UpdatedAt, @@ -56,7 +56,7 @@ func (q *Queries) DeletePatient(ctx context.Context, id uuid.UUID) error { const getAllPatientsWithTasksBedAndRoom = `-- name: GetAllPatientsWithTasksBedAndRoom :many SELECT - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.sex, patients.date_of_birth, tasks.id as task_id, tasks.name as task_name, tasks.description as task_description, @@ -122,7 +122,7 @@ func (q *Queries) GetAllPatientsWithTasksBedAndRoom(ctx context.Context, organiz &i.Patient.IsDischarged, &i.Patient.Consistency, &i.Patient.OrganizationID, - &i.Patient.Gender, + &i.Patient.Sex, &i.Patient.DateOfBirth, &i.TaskID, &i.TaskName, @@ -153,7 +153,7 @@ func (q *Queries) GetAllPatientsWithTasksBedAndRoom(ctx context.Context, organiz } const getPatientByBed = `-- name: GetPatientByBed :one -SELECT patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth +SELECT patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.sex, patients.date_of_birth FROM patients WHERE bed_id = $1 LIMIT 1 @@ -172,7 +172,7 @@ func (q *Queries) GetPatientByBed(ctx context.Context, bedID uuid.NullUUID) (Pat &i.IsDischarged, &i.Consistency, &i.OrganizationID, - &i.Gender, + &i.Sex, &i.DateOfBirth, ) return i, err @@ -180,7 +180,7 @@ func (q *Queries) GetPatientByBed(ctx context.Context, bedID uuid.NullUUID) (Pat const getPatientWithBedAndRoom = `-- name: GetPatientWithBedAndRoom :one SELECT - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.sex, patients.date_of_birth, beds.name as bed_name, beds.consistency as bed_consistency, rooms.id as room_id, @@ -204,7 +204,7 @@ type GetPatientWithBedAndRoomRow struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date BedName *string BedConsistency *int64 @@ -227,7 +227,7 @@ func (q *Queries) GetPatientWithBedAndRoom(ctx context.Context, patientID uuid.U &i.IsDischarged, &i.Consistency, &i.OrganizationID, - &i.Gender, + &i.Sex, &i.DateOfBirth, &i.BedName, &i.BedConsistency, @@ -241,7 +241,7 @@ func (q *Queries) GetPatientWithBedAndRoom(ctx context.Context, patientID uuid.U const getPatientsByWard = `-- name: GetPatientsByWard :many SELECT - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.sex, patients.date_of_birth FROM patients JOIN beds ON patients.bed_id = beds.id JOIN rooms ON beds.room_id = rooms.id @@ -267,7 +267,7 @@ func (q *Queries) GetPatientsByWard(ctx context.Context, wardID uuid.UUID) ([]Pa &i.IsDischarged, &i.Consistency, &i.OrganizationID, - &i.Gender, + &i.Sex, &i.DateOfBirth, ); err != nil { return nil, err @@ -286,7 +286,7 @@ SET human_readable_identifier = coalesce($2, human_readable_identifier), notes = coalesce($3, notes), updated_at = coalesce($4, updated_at), is_discharged = coalesce($5, is_discharged), - gender = coalesce($6, gender), + sex = coalesce($6, sex), date_of_birth = coalesce($7, date_of_birth), consistency = $8 WHERE id = $1 @@ -298,7 +298,7 @@ type UpdatePatientParams struct { Notes *string UpdatedAt pgtype.Timestamp IsDischarged *bool - Gender *int32 + Sex *int32 DateOfBirth pgtype.Date Consistency int64 } @@ -310,7 +310,7 @@ func (q *Queries) UpdatePatient(ctx context.Context, arg UpdatePatientParams) er arg.Notes, arg.UpdatedAt, arg.IsDischarged, - arg.Gender, + arg.Sex, arg.DateOfBirth, arg.Consistency, ) diff --git a/services/tasks-svc/repos/room_repo/models.go b/services/tasks-svc/repos/room_repo/models.go index a77aa056d..81076b5ba 100644 --- a/services/tasks-svc/repos/room_repo/models.go +++ b/services/tasks-svc/repos/room_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/task_repo/models.go b/services/tasks-svc/repos/task_repo/models.go index 3375ea9cc..f7a4faab3 100644 --- a/services/tasks-svc/repos/task_repo/models.go +++ b/services/tasks-svc/repos/task_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/task_repo/task_repo.sql.go b/services/tasks-svc/repos/task_repo/task_repo.sql.go index aa33dbbf6..5bb98cb69 100644 --- a/services/tasks-svc/repos/task_repo/task_repo.sql.go +++ b/services/tasks-svc/repos/task_repo/task_repo.sql.go @@ -108,7 +108,7 @@ func (q *Queries) DeleteTask(ctx context.Context, id uuid.UUID) error { const getTaskWithPatientById = `-- name: GetTaskWithPatientById :many SELECT tasks.id, tasks.name, tasks.description, tasks.status, tasks.assigned_user_id, tasks.patient_id, tasks.public, tasks.created_by, tasks.due_at, tasks.created_at, tasks.consistency, - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.sex, patients.date_of_birth, subtasks.id as subtask_id, subtasks.name as subtask_name, subtasks.done as subtask_done, @@ -158,7 +158,7 @@ func (q *Queries) GetTaskWithPatientById(ctx context.Context, id uuid.UUID) ([]G &i.Patient.IsDischarged, &i.Patient.Consistency, &i.Patient.OrganizationID, - &i.Patient.Gender, + &i.Patient.Sex, &i.Patient.DateOfBirth, &i.SubtaskID, &i.SubtaskName, @@ -178,7 +178,7 @@ func (q *Queries) GetTaskWithPatientById(ctx context.Context, id uuid.UUID) ([]G const getTasksWithPatientByAssignee = `-- name: GetTasksWithPatientByAssignee :many SELECT tasks.id, tasks.name, tasks.description, tasks.status, tasks.assigned_user_id, tasks.patient_id, tasks.public, tasks.created_by, tasks.due_at, tasks.created_at, tasks.consistency, - patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.gender, patients.date_of_birth, + patients.id, patients.human_readable_identifier, patients.notes, patients.bed_id, patients.created_at, patients.updated_at, patients.is_discharged, patients.consistency, patients.organization_id, patients.sex, patients.date_of_birth, subtasks.id as subtask_id, subtasks.name as subtask_name, subtasks.done as subtask_done, @@ -228,7 +228,7 @@ func (q *Queries) GetTasksWithPatientByAssignee(ctx context.Context, assignedUse &i.Patient.IsDischarged, &i.Patient.Consistency, &i.Patient.OrganizationID, - &i.Patient.Gender, + &i.Patient.Sex, &i.Patient.DateOfBirth, &i.SubtaskID, &i.SubtaskName, diff --git a/services/tasks-svc/repos/task_template_repo/models.go b/services/tasks-svc/repos/task_template_repo/models.go index 041f65681..d126d61db 100644 --- a/services/tasks-svc/repos/task_template_repo/models.go +++ b/services/tasks-svc/repos/task_template_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/repos/ward_repo/models.go b/services/tasks-svc/repos/ward_repo/models.go index 64ef84b9c..9c64b83ff 100644 --- a/services/tasks-svc/repos/ward_repo/models.go +++ b/services/tasks-svc/repos/ward_repo/models.go @@ -26,7 +26,7 @@ type Patient struct { IsDischarged bool Consistency int64 OrganizationID uuid.UUID - Gender int32 + Sex int32 DateOfBirth pgtype.Date } diff --git a/services/tasks-svc/schema.sql b/services/tasks-svc/schema.sql index 60e969fa7..49d6fd8b6 100644 --- a/services/tasks-svc/schema.sql +++ b/services/tasks-svc/schema.sql @@ -60,7 +60,7 @@ CREATE TABLE public.patients ( is_discharged boolean DEFAULT false NOT NULL, consistency bigint DEFAULT 0 NOT NULL, organization_id uuid NOT NULL, - gender integer DEFAULT 0 NOT NULL, + sex integer DEFAULT 0 NOT NULL, date_of_birth date ); diff --git a/services/tasks-svc/stories/PatientCRUD_test.go b/services/tasks-svc/stories/PatientCRUD_test.go index cc3dd4d0a..46757de12 100644 --- a/services/tasks-svc/stories/PatientCRUD_test.go +++ b/services/tasks-svc/stories/PatientCRUD_test.go @@ -40,14 +40,14 @@ func TestCreatePatient(t *testing.T) { hrI := t.Name() + " patient" notes := "A " + t.Name() + " patient" - gender := v1.Gender_GENDER_DIVERSE + sex := v1.Sex_SEX_DIVERSE dob, expDob := nowTuple() createRes, err := patientClient.CreatePatient(ctx, &pb.CreatePatientRequest{ HumanReadableIdentifier: hrI, Notes: ¬es, - Gender: &gender, + Sex: &sex, DateOfBirth: dob, }) require.NoError(t, err, "could not create patient") @@ -66,7 +66,7 @@ func TestCreatePatient(t *testing.T) { assert.Equal(t, hrI, getPatientRes.GetHumanReadableIdentifier()) assert.Equal(t, notes, getPatientRes.GetNotes()) assert.Equal(t, createRes.GetConsistency(), getPatientRes.GetConsistency()) - assert.Equal(t, gender, getPatientRes.GetGender()) + assert.Equal(t, sex, getPatientRes.GetSex()) assert.Equal(t, expDob, getPatientRes.DateOfBirth.Date) } @@ -82,7 +82,7 @@ func TestCreateUpdateGetPatient(t *testing.T) { createReq := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), - Gender: nil, + Sex: nil, DateOfBirth: nil, } createRes, err := patientClient.CreatePatient(ctx, createReq) @@ -102,7 +102,7 @@ func TestCreateUpdateGetPatient(t *testing.T) { assert.Equal(t, createReq.GetHumanReadableIdentifier(), getPatientRes.GetHumanReadableIdentifier()) assert.Equal(t, createReq.GetNotes(), getPatientRes.GetNotes()) assert.Equal(t, createRes.GetConsistency(), getPatientRes.GetConsistency()) - assert.Equal(t, v1.Gender_GENDER_UNSPECIFIED, getPatientRes.GetGender()) + assert.Equal(t, v1.Sex_SEX_UNSPECIFIED, getPatientRes.GetSex()) assert.Nil(t, getPatientRes.DateOfBirth) // @@ -114,7 +114,7 @@ func TestCreateUpdateGetPatient(t *testing.T) { Id: patientId, HumanReadableIdentifier: hwutil.PtrTo(t.Name() + " patient 1"), Notes: hwutil.PtrTo(t.Name() + " Notes"), - Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + Sex: hwutil.PtrTo(v1.Sex_SEX_DIVERSE), DateOfBirth: &v1.Date{Date: timestamppb.New(dateOfBirth)}, Consistency: &getPatientRes.Consistency, } @@ -132,7 +132,7 @@ func TestCreateUpdateGetPatient(t *testing.T) { assert.Equal(t, updateReq.GetHumanReadableIdentifier(), getPatientRes.GetHumanReadableIdentifier()) assert.Equal(t, updateRes.GetConsistency(), getPatientRes.GetConsistency()) - assert.Equal(t, updateReq.GetGender(), getPatientRes.GetGender()) + assert.Equal(t, updateReq.GetSex(), getPatientRes.GetSex()) assert.Equal(t, updateReq.GetDateOfBirth().Date.AsTime(), getPatientRes.GetDateOfBirth().Date.AsTime()) // @@ -251,7 +251,7 @@ func TestGetPatientByBed(t *testing.T) { createReq := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), - Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + Sex: hwutil.PtrTo(v1.Sex_SEX_DIVERSE), DateOfBirth: dob, } createRes, err := patientClient.CreatePatient(ctx, createReq) @@ -280,7 +280,7 @@ func TestGetPatientByBed(t *testing.T) { assert.Equal(t, createReq.GetHumanReadableIdentifier(), getRes.GetHumanReadableIdentifier()) assert.Equal(t, createReq.GetNotes(), getRes.GetNotes()) assert.Equal(t, assRes.GetConsistency(), getRes.GetConsistency()) - assert.Equal(t, *createReq.Gender, getRes.GetGender()) + assert.Equal(t, *createReq.Sex, getRes.GetSex()) assert.Equal(t, expDob, getRes.DateOfBirth.Date) } @@ -303,7 +303,7 @@ func TestGetPatientsByWard(t *testing.T) { createReq1 := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient 1", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), - Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + Sex: hwutil.PtrTo(v1.Sex_SEX_DIVERSE), DateOfBirth: dob, } createRes1, err := patientClient.CreatePatient(ctx, createReq1) @@ -362,7 +362,7 @@ func TestGetPatientsByWard(t *testing.T) { assert.Equal(t, createReq1.HumanReadableIdentifier, patient1.HumanReadableIdentifier) assert.Equal(t, *createReq1.Notes, patient1.Notes) assert.Equal(t, assRes1.Consistency, patient1.Consistency) - assert.Equal(t, *createReq1.Gender, patient1.GetGender()) + assert.Equal(t, *createReq1.Sex, patient1.GetSex()) assert.Equal(t, expDob, patient1.DateOfBirth.Date) assert.Equal(t, createRes2.Id, patient2.Id) @@ -370,7 +370,7 @@ func TestGetPatientsByWard(t *testing.T) { assert.Equal(t, createReq2.HumanReadableIdentifier, patient2.HumanReadableIdentifier) assert.Equal(t, *createReq2.Notes, patient2.Notes) assert.Equal(t, assRes2.Consistency, patient2.Consistency) - assert.Equal(t, v1.Gender_GENDER_UNSPECIFIED, patient2.GetGender()) + assert.Equal(t, v1.Sex_SEX_UNSPECIFIED, patient2.GetSex()) assert.Nil(t, patient2.DateOfBirth) } @@ -629,7 +629,7 @@ func TestGetPatientDetails(t *testing.T) { createReq := &pb.CreatePatientRequest{ HumanReadableIdentifier: t.Name() + " patient", Notes: hwutil.PtrTo("A " + t.Name() + " patient"), - Gender: hwutil.PtrTo(v1.Gender_GENDER_DIVERSE), + Sex: hwutil.PtrTo(v1.Sex_SEX_DIVERSE), DateOfBirth: dob, } createRes, err := patientClient.CreatePatient(ctx, createReq) @@ -699,7 +699,7 @@ func TestGetPatientDetails(t *testing.T) { assert.Equal(t, createRes.Id, getRes.Id) assert.Equal(t, createReq.GetHumanReadableIdentifier(), getRes.GetHumanReadableIdentifier()) assert.Equal(t, createReq.GetNotes(), getRes.GetNotes()) - assert.Equal(t, *createReq.Gender, getRes.Gender) + assert.Equal(t, *createReq.Sex, getRes.Sex) assert.Equal(t, expDob, getRes.DateOfBirth.Date) assert.Len(t, getRes.GetTasks(), len(suffixMap))