From aa8fd45455c62fa4fd8760141aae98d1168ff66e Mon Sep 17 00:00:00 2001 From: Max Baumann Date: Tue, 2 Apr 2024 11:45:16 +0200 Subject: [PATCH] refactor: remove is_undefined (#714) --- .../v1/property_value_svc.pb.dart | 180 ++++------ .../v1/property_value_svc.pbjson.dart | 47 ++- .../property_svc/v1/property_value_svc.pb.go | 213 +++++------- .../property_svc/v1/property_value_svc_pb2.py | 20 +- .../v1/property_value_svc_pb.d.ts | 34 +- .../property_svc/v1/property_value_svc_pb.js | 322 ++++++------------ .../property_svc/v1/property_value_svc.proto | 26 +- .../property_svc/v1/property_value_svc_pb2.py | 20 +- .../internal/property-value/api/grpc.go | 6 +- 9 files changed, 344 insertions(+), 524 deletions(-) diff --git a/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart b/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart index 7b0563212..eaf86ae92 100644 --- a/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart +++ b/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart @@ -14,7 +14,6 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; enum CreatePropertyValueRequest_Value { - isUndefined, textValue, numberValue, boolValue, @@ -31,7 +30,6 @@ class CreatePropertyValueRequest extends $pb.GeneratedMessage { $core.String? subjectId, $core.String? subjectType, $core.String? propertyId, - $core.bool? isUndefined, $core.String? textValue, $core.double? numberValue, $core.bool? boolValue, @@ -49,9 +47,6 @@ class CreatePropertyValueRequest extends $pb.GeneratedMessage { if (propertyId != null) { $result.propertyId = propertyId; } - if (isUndefined != null) { - $result.isUndefined = isUndefined; - } if (textValue != null) { $result.textValue = textValue; } @@ -77,27 +72,25 @@ class CreatePropertyValueRequest extends $pb.GeneratedMessage { factory CreatePropertyValueRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static const $core.Map<$core.int, CreatePropertyValueRequest_Value> _CreatePropertyValueRequest_ValueByTag = { - 4 : CreatePropertyValueRequest_Value.isUndefined, - 5 : CreatePropertyValueRequest_Value.textValue, - 6 : CreatePropertyValueRequest_Value.numberValue, - 7 : CreatePropertyValueRequest_Value.boolValue, - 8 : CreatePropertyValueRequest_Value.dateValue, - 9 : CreatePropertyValueRequest_Value.dateTimeValue, - 10 : CreatePropertyValueRequest_Value.selectValue, + 4 : CreatePropertyValueRequest_Value.textValue, + 5 : CreatePropertyValueRequest_Value.numberValue, + 6 : CreatePropertyValueRequest_Value.boolValue, + 7 : CreatePropertyValueRequest_Value.dateValue, + 8 : CreatePropertyValueRequest_Value.dateTimeValue, + 9 : CreatePropertyValueRequest_Value.selectValue, 0 : CreatePropertyValueRequest_Value.notSet }; static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePropertyValueRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) - ..oo(0, [4, 5, 6, 7, 8, 9, 10]) + ..oo(0, [4, 5, 6, 7, 8, 9]) ..aOS(1, _omitFieldNames ? '' : 'subjectId') ..aOS(2, _omitFieldNames ? '' : 'subjectType') ..aOS(3, _omitFieldNames ? '' : 'propertyId') - ..aOB(4, _omitFieldNames ? '' : 'isUndefined') - ..aOS(5, _omitFieldNames ? '' : 'textValue') - ..a<$core.double>(6, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OF) - ..aOB(7, _omitFieldNames ? '' : 'boolValue') - ..aOS(8, _omitFieldNames ? '' : 'dateValue') - ..aOS(9, _omitFieldNames ? '' : 'dateTimeValue') - ..aOS(10, _omitFieldNames ? '' : 'selectValue') + ..aOS(4, _omitFieldNames ? '' : 'textValue') + ..a<$core.double>(5, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OF) + ..aOB(6, _omitFieldNames ? '' : 'boolValue') + ..aOS(7, _omitFieldNames ? '' : 'dateValue') + ..aOS(8, _omitFieldNames ? '' : 'dateTimeValue') + ..aOS(9, _omitFieldNames ? '' : 'selectValue') ..hasRequiredFields = false ; @@ -153,67 +146,58 @@ class CreatePropertyValueRequest extends $pb.GeneratedMessage { void clearPropertyId() => clearField(3); @$pb.TagNumber(4) - $core.bool get isUndefined => $_getBF(3); + $core.String get textValue => $_getSZ(3); @$pb.TagNumber(4) - set isUndefined($core.bool v) { $_setBool(3, v); } + set textValue($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) - $core.bool hasIsUndefined() => $_has(3); + $core.bool hasTextValue() => $_has(3); @$pb.TagNumber(4) - void clearIsUndefined() => clearField(4); + void clearTextValue() => clearField(4); @$pb.TagNumber(5) - $core.String get textValue => $_getSZ(4); + $core.double get numberValue => $_getN(4); @$pb.TagNumber(5) - set textValue($core.String v) { $_setString(4, v); } + set numberValue($core.double v) { $_setFloat(4, v); } @$pb.TagNumber(5) - $core.bool hasTextValue() => $_has(4); + $core.bool hasNumberValue() => $_has(4); @$pb.TagNumber(5) - void clearTextValue() => clearField(5); + void clearNumberValue() => clearField(5); @$pb.TagNumber(6) - $core.double get numberValue => $_getN(5); + $core.bool get boolValue => $_getBF(5); @$pb.TagNumber(6) - set numberValue($core.double v) { $_setFloat(5, v); } + set boolValue($core.bool v) { $_setBool(5, v); } @$pb.TagNumber(6) - $core.bool hasNumberValue() => $_has(5); + $core.bool hasBoolValue() => $_has(5); @$pb.TagNumber(6) - void clearNumberValue() => clearField(6); + void clearBoolValue() => clearField(6); @$pb.TagNumber(7) - $core.bool get boolValue => $_getBF(6); + $core.String get dateValue => $_getSZ(6); @$pb.TagNumber(7) - set boolValue($core.bool v) { $_setBool(6, v); } + set dateValue($core.String v) { $_setString(6, v); } @$pb.TagNumber(7) - $core.bool hasBoolValue() => $_has(6); + $core.bool hasDateValue() => $_has(6); @$pb.TagNumber(7) - void clearBoolValue() => clearField(7); + void clearDateValue() => clearField(7); @$pb.TagNumber(8) - $core.String get dateValue => $_getSZ(7); + $core.String get dateTimeValue => $_getSZ(7); @$pb.TagNumber(8) - set dateValue($core.String v) { $_setString(7, v); } + set dateTimeValue($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) - $core.bool hasDateValue() => $_has(7); + $core.bool hasDateTimeValue() => $_has(7); @$pb.TagNumber(8) - void clearDateValue() => clearField(8); + void clearDateTimeValue() => clearField(8); @$pb.TagNumber(9) - $core.String get dateTimeValue => $_getSZ(8); + $core.String get selectValue => $_getSZ(8); @$pb.TagNumber(9) - set dateTimeValue($core.String v) { $_setString(8, v); } + set selectValue($core.String v) { $_setString(8, v); } @$pb.TagNumber(9) - $core.bool hasDateTimeValue() => $_has(8); + $core.bool hasSelectValue() => $_has(8); @$pb.TagNumber(9) - void clearDateTimeValue() => clearField(9); - - @$pb.TagNumber(10) - $core.String get selectValue => $_getSZ(9); - @$pb.TagNumber(10) - set selectValue($core.String v) { $_setString(9, v); } - @$pb.TagNumber(10) - $core.bool hasSelectValue() => $_has(9); - @$pb.TagNumber(10) - void clearSelectValue() => clearField(10); + void clearSelectValue() => clearField(9); } class CreatePropertyValueResponse extends $pb.GeneratedMessage { @@ -317,7 +301,6 @@ class GetPropertyValueRequest extends $pb.GeneratedMessage { } enum GetPropertyValueResponse_Value { - isUndefined, textValue, numberValue, boolValue, @@ -332,7 +315,6 @@ class GetPropertyValueResponse extends $pb.GeneratedMessage { $core.String? id, $core.String? subjectType, $core.String? propertyId, - $core.bool? isUndefined, $core.String? textValue, $core.double? numberValue, $core.bool? boolValue, @@ -350,9 +332,6 @@ class GetPropertyValueResponse extends $pb.GeneratedMessage { if (propertyId != null) { $result.propertyId = propertyId; } - if (isUndefined != null) { - $result.isUndefined = isUndefined; - } if (textValue != null) { $result.textValue = textValue; } @@ -378,27 +357,25 @@ class GetPropertyValueResponse extends $pb.GeneratedMessage { factory GetPropertyValueResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static const $core.Map<$core.int, GetPropertyValueResponse_Value> _GetPropertyValueResponse_ValueByTag = { - 4 : GetPropertyValueResponse_Value.isUndefined, - 5 : GetPropertyValueResponse_Value.textValue, - 6 : GetPropertyValueResponse_Value.numberValue, - 7 : GetPropertyValueResponse_Value.boolValue, - 8 : GetPropertyValueResponse_Value.dateValue, - 9 : GetPropertyValueResponse_Value.dateTimeValue, - 10 : GetPropertyValueResponse_Value.selectValue, + 4 : GetPropertyValueResponse_Value.textValue, + 5 : GetPropertyValueResponse_Value.numberValue, + 6 : GetPropertyValueResponse_Value.boolValue, + 7 : GetPropertyValueResponse_Value.dateValue, + 8 : GetPropertyValueResponse_Value.dateTimeValue, + 9 : GetPropertyValueResponse_Value.selectValue, 0 : GetPropertyValueResponse_Value.notSet }; static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetPropertyValueResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) - ..oo(0, [4, 5, 6, 7, 8, 9, 10]) + ..oo(0, [4, 5, 6, 7, 8, 9]) ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'subjectType') ..aOS(3, _omitFieldNames ? '' : 'propertyId') - ..aOB(4, _omitFieldNames ? '' : 'isUndefined') - ..aOS(5, _omitFieldNames ? '' : 'textValue') - ..a<$core.double>(6, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OF) - ..aOB(7, _omitFieldNames ? '' : 'boolValue') - ..aOS(8, _omitFieldNames ? '' : 'dateValue') - ..aOS(9, _omitFieldNames ? '' : 'dateTimeValue') - ..aOS(10, _omitFieldNames ? '' : 'selectValue') + ..aOS(4, _omitFieldNames ? '' : 'textValue') + ..a<$core.double>(5, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OF) + ..aOB(6, _omitFieldNames ? '' : 'boolValue') + ..aOS(7, _omitFieldNames ? '' : 'dateValue') + ..aOS(8, _omitFieldNames ? '' : 'dateTimeValue') + ..aOS(9, _omitFieldNames ? '' : 'selectValue') ..hasRequiredFields = false ; @@ -454,67 +431,58 @@ class GetPropertyValueResponse extends $pb.GeneratedMessage { void clearPropertyId() => clearField(3); @$pb.TagNumber(4) - $core.bool get isUndefined => $_getBF(3); + $core.String get textValue => $_getSZ(3); @$pb.TagNumber(4) - set isUndefined($core.bool v) { $_setBool(3, v); } + set textValue($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) - $core.bool hasIsUndefined() => $_has(3); + $core.bool hasTextValue() => $_has(3); @$pb.TagNumber(4) - void clearIsUndefined() => clearField(4); + void clearTextValue() => clearField(4); @$pb.TagNumber(5) - $core.String get textValue => $_getSZ(4); + $core.double get numberValue => $_getN(4); @$pb.TagNumber(5) - set textValue($core.String v) { $_setString(4, v); } + set numberValue($core.double v) { $_setFloat(4, v); } @$pb.TagNumber(5) - $core.bool hasTextValue() => $_has(4); + $core.bool hasNumberValue() => $_has(4); @$pb.TagNumber(5) - void clearTextValue() => clearField(5); + void clearNumberValue() => clearField(5); @$pb.TagNumber(6) - $core.double get numberValue => $_getN(5); + $core.bool get boolValue => $_getBF(5); @$pb.TagNumber(6) - set numberValue($core.double v) { $_setFloat(5, v); } + set boolValue($core.bool v) { $_setBool(5, v); } @$pb.TagNumber(6) - $core.bool hasNumberValue() => $_has(5); + $core.bool hasBoolValue() => $_has(5); @$pb.TagNumber(6) - void clearNumberValue() => clearField(6); + void clearBoolValue() => clearField(6); @$pb.TagNumber(7) - $core.bool get boolValue => $_getBF(6); + $core.String get dateValue => $_getSZ(6); @$pb.TagNumber(7) - set boolValue($core.bool v) { $_setBool(6, v); } + set dateValue($core.String v) { $_setString(6, v); } @$pb.TagNumber(7) - $core.bool hasBoolValue() => $_has(6); + $core.bool hasDateValue() => $_has(6); @$pb.TagNumber(7) - void clearBoolValue() => clearField(7); + void clearDateValue() => clearField(7); @$pb.TagNumber(8) - $core.String get dateValue => $_getSZ(7); + $core.String get dateTimeValue => $_getSZ(7); @$pb.TagNumber(8) - set dateValue($core.String v) { $_setString(7, v); } + set dateTimeValue($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) - $core.bool hasDateValue() => $_has(7); + $core.bool hasDateTimeValue() => $_has(7); @$pb.TagNumber(8) - void clearDateValue() => clearField(8); + void clearDateTimeValue() => clearField(8); @$pb.TagNumber(9) - $core.String get dateTimeValue => $_getSZ(8); + $core.String get selectValue => $_getSZ(8); @$pb.TagNumber(9) - set dateTimeValue($core.String v) { $_setString(8, v); } + set selectValue($core.String v) { $_setString(8, v); } @$pb.TagNumber(9) - $core.bool hasDateTimeValue() => $_has(8); + $core.bool hasSelectValue() => $_has(8); @$pb.TagNumber(9) - void clearDateTimeValue() => clearField(9); - - @$pb.TagNumber(10) - $core.String get selectValue => $_getSZ(9); - @$pb.TagNumber(10) - set selectValue($core.String v) { $_setString(9, v); } - @$pb.TagNumber(10) - $core.bool hasSelectValue() => $_has(9); - @$pb.TagNumber(10) - void clearSelectValue() => clearField(10); + void clearSelectValue() => clearField(9); } diff --git a/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pbjson.dart b/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pbjson.dart index 4283c962f..2b1e0c8a0 100644 --- a/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pbjson.dart +++ b/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pbjson.dart @@ -20,13 +20,12 @@ const CreatePropertyValueRequest$json = { {'1': 'subject_id', '3': 1, '4': 1, '5': 9, '10': 'subjectId'}, {'1': 'subject_type', '3': 2, '4': 1, '5': 9, '10': 'subjectType'}, {'1': 'property_id', '3': 3, '4': 1, '5': 9, '10': 'propertyId'}, - {'1': 'is_undefined', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'isUndefined'}, - {'1': 'text_value', '3': 5, '4': 1, '5': 9, '9': 0, '10': 'textValue'}, - {'1': 'number_value', '3': 6, '4': 1, '5': 2, '9': 0, '10': 'numberValue'}, - {'1': 'bool_value', '3': 7, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - {'1': 'date_value', '3': 8, '4': 1, '5': 9, '9': 0, '10': 'dateValue'}, - {'1': 'date_time_value', '3': 9, '4': 1, '5': 9, '9': 0, '10': 'dateTimeValue'}, - {'1': 'select_value', '3': 10, '4': 1, '5': 9, '9': 0, '10': 'selectValue'}, + {'1': 'text_value', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'textValue'}, + {'1': 'number_value', '3': 5, '4': 1, '5': 2, '9': 0, '10': 'numberValue'}, + {'1': 'bool_value', '3': 6, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, + {'1': 'date_value', '3': 7, '4': 1, '5': 9, '9': 0, '10': 'dateValue'}, + {'1': 'date_time_value', '3': 8, '4': 1, '5': 9, '9': 0, '10': 'dateTimeValue'}, + {'1': 'select_value', '3': 9, '4': 1, '5': 9, '9': 0, '10': 'selectValue'}, ], '8': [ {'1': 'value'}, @@ -37,12 +36,11 @@ const CreatePropertyValueRequest$json = { final $typed_data.Uint8List createPropertyValueRequestDescriptor = $convert.base64Decode( 'ChpDcmVhdGVQcm9wZXJ0eVZhbHVlUmVxdWVzdBIdCgpzdWJqZWN0X2lkGAEgASgJUglzdWJqZW' 'N0SWQSIQoMc3ViamVjdF90eXBlGAIgASgJUgtzdWJqZWN0VHlwZRIfCgtwcm9wZXJ0eV9pZBgD' - 'IAEoCVIKcHJvcGVydHlJZBIjCgxpc191bmRlZmluZWQYBCABKAhIAFILaXNVbmRlZmluZWQSHw' - 'oKdGV4dF92YWx1ZRgFIAEoCUgAUgl0ZXh0VmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAYgASgCSABS' - 'C251bWJlclZhbHVlEh8KCmJvb2xfdmFsdWUYByABKAhIAFIJYm9vbFZhbHVlEh8KCmRhdGVfdm' - 'FsdWUYCCABKAlIAFIJZGF0ZVZhbHVlEigKD2RhdGVfdGltZV92YWx1ZRgJIAEoCUgAUg1kYXRl' - 'VGltZVZhbHVlEiMKDHNlbGVjdF92YWx1ZRgKIAEoCUgAUgtzZWxlY3RWYWx1ZUIHCgV2YWx1ZQ' - '=='); + 'IAEoCVIKcHJvcGVydHlJZBIfCgp0ZXh0X3ZhbHVlGAQgASgJSABSCXRleHRWYWx1ZRIjCgxudW' + '1iZXJfdmFsdWUYBSABKAJIAFILbnVtYmVyVmFsdWUSHwoKYm9vbF92YWx1ZRgGIAEoCEgAUgli' + 'b29sVmFsdWUSHwoKZGF0ZV92YWx1ZRgHIAEoCUgAUglkYXRlVmFsdWUSKAoPZGF0ZV90aW1lX3' + 'ZhbHVlGAggASgJSABSDWRhdGVUaW1lVmFsdWUSIwoMc2VsZWN0X3ZhbHVlGAkgASgJSABSC3Nl' + 'bGVjdFZhbHVlQgcKBXZhbHVl'); @$core.Deprecated('Use createPropertyValueResponseDescriptor instead') const CreatePropertyValueResponse$json = { @@ -75,13 +73,12 @@ const GetPropertyValueResponse$json = { {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, {'1': 'subject_type', '3': 2, '4': 1, '5': 9, '10': 'subjectType'}, {'1': 'property_id', '3': 3, '4': 1, '5': 9, '10': 'propertyId'}, - {'1': 'is_undefined', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'isUndefined'}, - {'1': 'text_value', '3': 5, '4': 1, '5': 9, '9': 0, '10': 'textValue'}, - {'1': 'number_value', '3': 6, '4': 1, '5': 2, '9': 0, '10': 'numberValue'}, - {'1': 'bool_value', '3': 7, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, - {'1': 'date_value', '3': 8, '4': 1, '5': 9, '9': 0, '10': 'dateValue'}, - {'1': 'date_time_value', '3': 9, '4': 1, '5': 9, '9': 0, '10': 'dateTimeValue'}, - {'1': 'select_value', '3': 10, '4': 1, '5': 9, '9': 0, '10': 'selectValue'}, + {'1': 'text_value', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'textValue'}, + {'1': 'number_value', '3': 5, '4': 1, '5': 2, '9': 0, '10': 'numberValue'}, + {'1': 'bool_value', '3': 6, '4': 1, '5': 8, '9': 0, '10': 'boolValue'}, + {'1': 'date_value', '3': 7, '4': 1, '5': 9, '9': 0, '10': 'dateValue'}, + {'1': 'date_time_value', '3': 8, '4': 1, '5': 9, '9': 0, '10': 'dateTimeValue'}, + {'1': 'select_value', '3': 9, '4': 1, '5': 9, '9': 0, '10': 'selectValue'}, ], '8': [ {'1': 'value'}, @@ -92,9 +89,9 @@ const GetPropertyValueResponse$json = { final $typed_data.Uint8List getPropertyValueResponseDescriptor = $convert.base64Decode( 'ChhHZXRQcm9wZXJ0eVZhbHVlUmVzcG9uc2USDgoCaWQYASABKAlSAmlkEiEKDHN1YmplY3RfdH' 'lwZRgCIAEoCVILc3ViamVjdFR5cGUSHwoLcHJvcGVydHlfaWQYAyABKAlSCnByb3BlcnR5SWQS' - 'IwoMaXNfdW5kZWZpbmVkGAQgASgISABSC2lzVW5kZWZpbmVkEh8KCnRleHRfdmFsdWUYBSABKA' - 'lIAFIJdGV4dFZhbHVlEiMKDG51bWJlcl92YWx1ZRgGIAEoAkgAUgtudW1iZXJWYWx1ZRIfCgpi' - 'b29sX3ZhbHVlGAcgASgISABSCWJvb2xWYWx1ZRIfCgpkYXRlX3ZhbHVlGAggASgJSABSCWRhdG' - 'VWYWx1ZRIoCg9kYXRlX3RpbWVfdmFsdWUYCSABKAlIAFINZGF0ZVRpbWVWYWx1ZRIjCgxzZWxl' - 'Y3RfdmFsdWUYCiABKAlIAFILc2VsZWN0VmFsdWVCBwoFdmFsdWU='); + 'HwoKdGV4dF92YWx1ZRgEIAEoCUgAUgl0ZXh0VmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAUgASgCSA' + 'BSC251bWJlclZhbHVlEh8KCmJvb2xfdmFsdWUYBiABKAhIAFIJYm9vbFZhbHVlEh8KCmRhdGVf' + 'dmFsdWUYByABKAlIAFIJZGF0ZVZhbHVlEigKD2RhdGVfdGltZV92YWx1ZRgIIAEoCUgAUg1kYX' + 'RlVGltZVZhbHVlEiMKDHNlbGVjdF92YWx1ZRgJIAEoCUgAUgtzZWxlY3RWYWx1ZUIHCgV2YWx1' + 'ZQ=='); diff --git a/gen/go/proto/services/property_svc/v1/property_value_svc.pb.go b/gen/go/proto/services/property_svc/v1/property_value_svc.pb.go index 8c1ce784c..f16fb0e53 100644 --- a/gen/go/proto/services/property_svc/v1/property_value_svc.pb.go +++ b/gen/go/proto/services/property_svc/v1/property_value_svc.pb.go @@ -31,7 +31,6 @@ type CreatePropertyValueRequest struct { PropertyId string `protobuf:"bytes,3,opt,name=property_id,json=propertyId,proto3" json:"property_id,omitempty"` // Types that are assignable to Value: // - // *CreatePropertyValueRequest_IsUndefined // *CreatePropertyValueRequest_TextValue // *CreatePropertyValueRequest_NumberValue // *CreatePropertyValueRequest_BoolValue @@ -101,13 +100,6 @@ func (m *CreatePropertyValueRequest) GetValue() isCreatePropertyValueRequest_Val return nil } -func (x *CreatePropertyValueRequest) GetIsUndefined() bool { - if x, ok := x.GetValue().(*CreatePropertyValueRequest_IsUndefined); ok { - return x.IsUndefined - } - return false -} - func (x *CreatePropertyValueRequest) GetTextValue() string { if x, ok := x.GetValue().(*CreatePropertyValueRequest_TextValue); ok { return x.TextValue @@ -154,36 +146,30 @@ type isCreatePropertyValueRequest_Value interface { isCreatePropertyValueRequest_Value() } -type CreatePropertyValueRequest_IsUndefined struct { - IsUndefined bool `protobuf:"varint,4,opt,name=is_undefined,json=isUndefined,proto3,oneof"` // if it exists, it's true -} - type CreatePropertyValueRequest_TextValue struct { - TextValue string `protobuf:"bytes,5,opt,name=text_value,json=textValue,proto3,oneof"` // FIELD_TYPE_TEXT + TextValue string `protobuf:"bytes,4,opt,name=text_value,json=textValue,proto3,oneof"` // FIELD_TYPE_TEXT } type CreatePropertyValueRequest_NumberValue struct { - NumberValue float32 `protobuf:"fixed32,6,opt,name=number_value,json=numberValue,proto3,oneof"` // FIELD_TYPE_NUMBER + NumberValue float32 `protobuf:"fixed32,5,opt,name=number_value,json=numberValue,proto3,oneof"` // FIELD_TYPE_NUMBER } type CreatePropertyValueRequest_BoolValue struct { - BoolValue bool `protobuf:"varint,7,opt,name=bool_value,json=boolValue,proto3,oneof"` // FIELD_TYPE_CHECKBOX + BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"` // FIELD_TYPE_CHECKBOX } type CreatePropertyValueRequest_DateValue struct { - DateValue string `protobuf:"bytes,8,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE TODO: is there a proto date type? + DateValue string `protobuf:"bytes,7,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE TODO: is there a proto date type? } type CreatePropertyValueRequest_DateTimeValue struct { - DateTimeValue string `protobuf:"bytes,9,opt,name=date_time_value,json=dateTimeValue,proto3,oneof"` // FIELD_TYPE_DATE_TIME + DateTimeValue string `protobuf:"bytes,8,opt,name=date_time_value,json=dateTimeValue,proto3,oneof"` // FIELD_TYPE_DATE_TIME } type CreatePropertyValueRequest_SelectValue struct { - SelectValue string `protobuf:"bytes,10,opt,name=select_value,json=selectValue,proto3,oneof"` // FIELD_TYPE_SELECT, id of option + SelectValue string `protobuf:"bytes,9,opt,name=select_value,json=selectValue,proto3,oneof"` // FIELD_TYPE_SELECT, id of option } -func (*CreatePropertyValueRequest_IsUndefined) isCreatePropertyValueRequest_Value() {} - func (*CreatePropertyValueRequest_TextValue) isCreatePropertyValueRequest_Value() {} func (*CreatePropertyValueRequest_NumberValue) isCreatePropertyValueRequest_Value() {} @@ -300,7 +286,6 @@ type GetPropertyValueResponse struct { PropertyId string `protobuf:"bytes,3,opt,name=property_id,json=propertyId,proto3" json:"property_id,omitempty"` // Types that are assignable to Value: // - // *GetPropertyValueResponse_IsUndefined // *GetPropertyValueResponse_TextValue // *GetPropertyValueResponse_NumberValue // *GetPropertyValueResponse_BoolValue @@ -370,13 +355,6 @@ func (m *GetPropertyValueResponse) GetValue() isGetPropertyValueResponse_Value { return nil } -func (x *GetPropertyValueResponse) GetIsUndefined() bool { - if x, ok := x.GetValue().(*GetPropertyValueResponse_IsUndefined); ok { - return x.IsUndefined - } - return false -} - func (x *GetPropertyValueResponse) GetTextValue() string { if x, ok := x.GetValue().(*GetPropertyValueResponse_TextValue); ok { return x.TextValue @@ -423,36 +401,30 @@ type isGetPropertyValueResponse_Value interface { isGetPropertyValueResponse_Value() } -type GetPropertyValueResponse_IsUndefined struct { - IsUndefined bool `protobuf:"varint,4,opt,name=is_undefined,json=isUndefined,proto3,oneof"` // if it exists, it's true -} - type GetPropertyValueResponse_TextValue struct { - TextValue string `protobuf:"bytes,5,opt,name=text_value,json=textValue,proto3,oneof"` // FIELD_TYPE_TEXT + TextValue string `protobuf:"bytes,4,opt,name=text_value,json=textValue,proto3,oneof"` // FIELD_TYPE_TEXT } type GetPropertyValueResponse_NumberValue struct { - NumberValue float32 `protobuf:"fixed32,6,opt,name=number_value,json=numberValue,proto3,oneof"` // FIELD_TYPE_NUMBER + NumberValue float32 `protobuf:"fixed32,5,opt,name=number_value,json=numberValue,proto3,oneof"` // FIELD_TYPE_NUMBER } type GetPropertyValueResponse_BoolValue struct { - BoolValue bool `protobuf:"varint,7,opt,name=bool_value,json=boolValue,proto3,oneof"` // FIELD_TYPE_CHECKBOX + BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"` // FIELD_TYPE_CHECKBOX } type GetPropertyValueResponse_DateValue struct { - DateValue string `protobuf:"bytes,8,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE TODO: is there a proto date type? + DateValue string `protobuf:"bytes,7,opt,name=date_value,json=dateValue,proto3,oneof"` // FIELD_TYPE_DATE TODO: is there a proto date type? } type GetPropertyValueResponse_DateTimeValue struct { - DateTimeValue string `protobuf:"bytes,9,opt,name=date_time_value,json=dateTimeValue,proto3,oneof"` // FIELD_TYPE_DATE_TIME + DateTimeValue string `protobuf:"bytes,8,opt,name=date_time_value,json=dateTimeValue,proto3,oneof"` // FIELD_TYPE_DATE_TIME } type GetPropertyValueResponse_SelectValue struct { - SelectValue string `protobuf:"bytes,10,opt,name=select_value,json=selectValue,proto3,oneof"` // FIELD_TYPE_SELECT, id of option + SelectValue string `protobuf:"bytes,9,opt,name=select_value,json=selectValue,proto3,oneof"` // FIELD_TYPE_SELECT, id of option } -func (*GetPropertyValueResponse_IsUndefined) isGetPropertyValueResponse_Value() {} - func (*GetPropertyValueResponse_TextValue) isGetPropertyValueResponse_Value() {} func (*GetPropertyValueResponse_NumberValue) isGetPropertyValueResponse_Value() {} @@ -473,7 +445,7 @@ var file_proto_services_property_svc_v1_property_value_svc_proto_rawDesc = []byt 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x22, 0x84, 0x03, 0x0a, 0x1a, 0x43, 0x72, + 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x22, 0xdf, 0x02, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 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, @@ -481,88 +453,83 @@ var file_proto_services_property_svc_v1_property_value_svc_proto_rawDesc = []byt 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x69, - 0x73, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, - 0x12, 0x1f, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, - 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, 0x06, 0x20, 0x01, 0x28, 0x02, 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, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, - 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x64, - 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x09, 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, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x2d, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 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, - 0x29, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xf3, 0x02, 0x0a, 0x18, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 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, 0x21, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, - 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x69, - 0x73, 0x5f, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x73, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, - 0x12, 0x1f, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, - 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, 0x06, 0x20, 0x01, 0x28, 0x02, 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, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, - 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x64, - 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x09, 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, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x32, 0xb3, 0x02, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x13, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x3a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, - 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x43, + 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, 0x04, 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, 0x05, 0x20, 0x01, + 0x28, 0x02, 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, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 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, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2d, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x87, 0x01, 0x0a, - 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x37, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 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, 0x50, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xf3, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 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, 0x1f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, - 0x72, 0x74, 0x79, 0x2d, 0x73, 0x76, 0x63, 0xa2, 0x02, 0x03, 0x50, 0x53, 0x50, 0xaa, 0x02, 0x1d, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 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, 0x1d, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5c, 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, 0x29, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5c, 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, 0x20, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x3a, 0x3a, 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, + 0x75, 0x65, 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, 0x29, 0x0a, 0x17, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xce, 0x02, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 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, 0x21, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 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, 0x04, 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, 0x05, 0x20, 0x01, 0x28, 0x02, 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, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, + 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, + 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 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, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0b, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xb3, 0x02, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x90, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, + 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x38, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xf3, 0x01, 0x0a, + 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x1f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2d, 0x73, 0x76, 0x63, 0xa2, 0x02, 0x03, + 0x50, 0x53, 0x50, 0xaa, 0x02, 0x1d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 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, 0x1d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5c, 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, 0x29, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5c, 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, 0x20, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x3a, 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 ( @@ -652,7 +619,6 @@ func file_proto_services_property_svc_v1_property_value_svc_proto_init() { } } file_proto_services_property_svc_v1_property_value_svc_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*CreatePropertyValueRequest_IsUndefined)(nil), (*CreatePropertyValueRequest_TextValue)(nil), (*CreatePropertyValueRequest_NumberValue)(nil), (*CreatePropertyValueRequest_BoolValue)(nil), @@ -661,7 +627,6 @@ func file_proto_services_property_svc_v1_property_value_svc_proto_init() { (*CreatePropertyValueRequest_SelectValue)(nil), } file_proto_services_property_svc_v1_property_value_svc_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*GetPropertyValueResponse_IsUndefined)(nil), (*GetPropertyValueResponse_TextValue)(nil), (*GetPropertyValueResponse_NumberValue)(nil), (*GetPropertyValueResponse_BoolValue)(nil), diff --git a/gen/python/proto/services/property_svc/v1/property_value_svc_pb2.py b/gen/python/proto/services/property_svc/v1/property_value_svc_pb2.py index 34f9766d1..22c5c1d65 100644 --- a/gen/python/proto/services/property_svc/v1/property_value_svc_pb2.py +++ b/gen/python/proto/services/property_svc/v1/property_value_svc_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7proto/services/property_svc/v1/property_value_svc.proto\x12\x1eproto.services.property_svc.v1\"\x84\x03\n\x1a\x43reatePropertyValueRequest\x12\x1d\n\nsubject_id\x18\x01 \x01(\tR\tsubjectId\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12#\n\x0cis_undefined\x18\x04 \x01(\x08H\x00R\x0bisUndefined\x12\x1f\n\ntext_value\x18\x05 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x06 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x07 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x08 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\t \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\n \x01(\tH\x00R\x0bselectValueB\x07\n\x05value\"-\n\x1b\x43reatePropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\")\n\x17GetPropertyValueRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xf3\x02\n\x18GetPropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12#\n\x0cis_undefined\x18\x04 \x01(\x08H\x00R\x0bisUndefined\x12\x1f\n\ntext_value\x18\x05 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x06 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x07 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x08 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\t \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\n \x01(\tH\x00R\x0bselectValueB\x07\n\x05value2\xb3\x02\n\x14PropertyValueService\x12\x90\x01\n\x13\x43reatePropertyValue\x12:.proto.services.property_svc.v1.CreatePropertyValueRequest\x1a;.proto.services.property_svc.v1.CreatePropertyValueResponse\"\x00\x12\x87\x01\n\x10GetPropertyValue\x12\x37.proto.services.property_svc.v1.GetPropertyValueRequest\x1a\x38.proto.services.property_svc.v1.GetPropertyValueResponse\"\x00\x42\xf3\x01\n\"com.proto.services.property_svc.v1B\x15PropertyValueSvcProtoP\x01Z\x1fgen/proto/services/property-svc\xa2\x02\x03PSP\xaa\x02\x1dProto.Services.PropertySvc.V1\xca\x02\x1dProto\\Services\\PropertySvc\\V1\xe2\x02)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\xea\x02 Proto::Services::PropertySvc::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7proto/services/property_svc/v1/property_value_svc.proto\x12\x1eproto.services.property_svc.v1\"\xdf\x02\n\x1a\x43reatePropertyValueRequest\x12\x1d\n\nsubject_id\x18\x01 \x01(\tR\tsubjectId\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12\x1f\n\ntext_value\x18\x04 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x05 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x06 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x07 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\x08 \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\t \x01(\tH\x00R\x0bselectValueB\x07\n\x05value\"-\n\x1b\x43reatePropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\")\n\x17GetPropertyValueRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xce\x02\n\x18GetPropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12\x1f\n\ntext_value\x18\x04 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x05 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x06 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x07 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\x08 \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\t \x01(\tH\x00R\x0bselectValueB\x07\n\x05value2\xb3\x02\n\x14PropertyValueService\x12\x90\x01\n\x13\x43reatePropertyValue\x12:.proto.services.property_svc.v1.CreatePropertyValueRequest\x1a;.proto.services.property_svc.v1.CreatePropertyValueResponse\"\x00\x12\x87\x01\n\x10GetPropertyValue\x12\x37.proto.services.property_svc.v1.GetPropertyValueRequest\x1a\x38.proto.services.property_svc.v1.GetPropertyValueResponse\"\x00\x42\xf3\x01\n\"com.proto.services.property_svc.v1B\x15PropertyValueSvcProtoP\x01Z\x1fgen/proto/services/property-svc\xa2\x02\x03PSP\xaa\x02\x1dProto.Services.PropertySvc.V1\xca\x02\x1dProto\\Services\\PropertySvc\\V1\xe2\x02)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\xea\x02 Proto::Services::PropertySvc::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -23,13 +23,13 @@ _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\"com.proto.services.property_svc.v1B\025PropertyValueSvcProtoP\001Z\037gen/proto/services/property-svc\242\002\003PSP\252\002\035Proto.Services.PropertySvc.V1\312\002\035Proto\\Services\\PropertySvc\\V1\342\002)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\352\002 Proto::Services::PropertySvc::V1' _globals['_CREATEPROPERTYVALUEREQUEST']._serialized_start=92 - _globals['_CREATEPROPERTYVALUEREQUEST']._serialized_end=480 - _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_start=482 - _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_end=527 - _globals['_GETPROPERTYVALUEREQUEST']._serialized_start=529 - _globals['_GETPROPERTYVALUEREQUEST']._serialized_end=570 - _globals['_GETPROPERTYVALUERESPONSE']._serialized_start=573 - _globals['_GETPROPERTYVALUERESPONSE']._serialized_end=944 - _globals['_PROPERTYVALUESERVICE']._serialized_start=947 - _globals['_PROPERTYVALUESERVICE']._serialized_end=1254 + _globals['_CREATEPROPERTYVALUEREQUEST']._serialized_end=443 + _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_start=445 + _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_end=490 + _globals['_GETPROPERTYVALUEREQUEST']._serialized_start=492 + _globals['_GETPROPERTYVALUEREQUEST']._serialized_end=533 + _globals['_GETPROPERTYVALUERESPONSE']._serialized_start=536 + _globals['_GETPROPERTYVALUERESPONSE']._serialized_end=870 + _globals['_PROPERTYVALUESERVICE']._serialized_start=873 + _globals['_PROPERTYVALUESERVICE']._serialized_end=1180 # @@protoc_insertion_point(module_scope) diff --git a/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.d.ts b/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.d.ts index 67d6b1656..d4e9e5e1f 100644 --- a/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.d.ts +++ b/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.d.ts @@ -12,9 +12,6 @@ export class CreatePropertyValueRequest extends jspb.Message { getPropertyId(): string; setPropertyId(value: string): CreatePropertyValueRequest; - getIsUndefined(): boolean; - setIsUndefined(value: boolean): CreatePropertyValueRequest; - getTextValue(): string; setTextValue(value: string): CreatePropertyValueRequest; @@ -48,7 +45,6 @@ export namespace CreatePropertyValueRequest { subjectId: string, subjectType: string, propertyId: string, - isUndefined: boolean, textValue: string, numberValue: number, boolValue: boolean, @@ -59,13 +55,12 @@ export namespace CreatePropertyValueRequest { export enum ValueCase { VALUE_NOT_SET = 0, - IS_UNDEFINED = 4, - TEXT_VALUE = 5, - NUMBER_VALUE = 6, - BOOL_VALUE = 7, - DATE_VALUE = 8, - DATE_TIME_VALUE = 9, - SELECT_VALUE = 10, + TEXT_VALUE = 4, + NUMBER_VALUE = 5, + BOOL_VALUE = 6, + DATE_VALUE = 7, + DATE_TIME_VALUE = 8, + SELECT_VALUE = 9, } } @@ -115,9 +110,6 @@ export class GetPropertyValueResponse extends jspb.Message { getPropertyId(): string; setPropertyId(value: string): GetPropertyValueResponse; - getIsUndefined(): boolean; - setIsUndefined(value: boolean): GetPropertyValueResponse; - getTextValue(): string; setTextValue(value: string): GetPropertyValueResponse; @@ -151,7 +143,6 @@ export namespace GetPropertyValueResponse { id: string, subjectType: string, propertyId: string, - isUndefined: boolean, textValue: string, numberValue: number, boolValue: boolean, @@ -162,13 +153,12 @@ export namespace GetPropertyValueResponse { export enum ValueCase { VALUE_NOT_SET = 0, - IS_UNDEFINED = 4, - TEXT_VALUE = 5, - NUMBER_VALUE = 6, - BOOL_VALUE = 7, - DATE_VALUE = 8, - DATE_TIME_VALUE = 9, - SELECT_VALUE = 10, + TEXT_VALUE = 4, + NUMBER_VALUE = 5, + BOOL_VALUE = 6, + DATE_VALUE = 7, + DATE_TIME_VALUE = 8, + SELECT_VALUE = 9, } } diff --git a/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.js b/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.js index b889145fc..1784fd9c8 100644 --- a/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.js +++ b/gen/ts/proto/services/property_svc/v1/property_value_svc_pb.js @@ -120,20 +120,19 @@ if (goog.DEBUG && !COMPILED) { * @private {!Array>} * @const */ -proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_ = [[4,5,6,7,8,9,10]]; +proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_ = [[4,5,6,7,8,9]]; /** * @enum {number} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.ValueCase = { VALUE_NOT_SET: 0, - IS_UNDEFINED: 4, - TEXT_VALUE: 5, - NUMBER_VALUE: 6, - BOOL_VALUE: 7, - DATE_VALUE: 8, - DATE_TIME_VALUE: 9, - SELECT_VALUE: 10 + TEXT_VALUE: 4, + NUMBER_VALUE: 5, + BOOL_VALUE: 6, + DATE_VALUE: 7, + DATE_TIME_VALUE: 8, + SELECT_VALUE: 9 }; /** @@ -177,13 +176,12 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.toObject = funct subjectId: jspb.Message.getFieldWithDefault(msg, 1, ""), subjectType: jspb.Message.getFieldWithDefault(msg, 2, ""), propertyId: jspb.Message.getFieldWithDefault(msg, 3, ""), - isUndefined: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - textValue: jspb.Message.getFieldWithDefault(msg, 5, ""), - numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - dateValue: jspb.Message.getFieldWithDefault(msg, 8, ""), - dateTimeValue: jspb.Message.getFieldWithDefault(msg, 9, ""), - selectValue: jspb.Message.getFieldWithDefault(msg, 10, "") + textValue: jspb.Message.getFieldWithDefault(msg, 4, ""), + numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + dateValue: jspb.Message.getFieldWithDefault(msg, 7, ""), + dateTimeValue: jspb.Message.getFieldWithDefault(msg, 8, ""), + selectValue: jspb.Message.getFieldWithDefault(msg, 9, "") }; if (includeInstance) { @@ -233,30 +231,26 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.deserializeBinar msg.setPropertyId(value); break; case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsUndefined(value); - break; - case 5: var value = /** @type {string} */ (reader.readString()); msg.setTextValue(value); break; - case 6: + case 5: var value = /** @type {number} */ (reader.readFloat()); msg.setNumberValue(value); break; - case 7: + case 6: var value = /** @type {boolean} */ (reader.readBool()); msg.setBoolValue(value); break; - case 8: + case 7: var value = /** @type {string} */ (reader.readString()); msg.setDateValue(value); break; - case 9: + case 8: var value = /** @type {string} */ (reader.readString()); msg.setDateTimeValue(value); break; - case 10: + case 9: var value = /** @type {string} */ (reader.readString()); msg.setSelectValue(value); break; @@ -310,30 +304,30 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.serializeBinaryT f ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 4)); + f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { - writer.writeBool( + writer.writeString( 4, f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); + f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeString( + writer.writeFloat( 5, f ); } - f = /** @type {number} */ (jspb.Message.getField(message, 6)); + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); if (f != null) { - writer.writeFloat( + writer.writeBool( 6, f ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + f = /** @type {string} */ (jspb.Message.getField(message, 7)); if (f != null) { - writer.writeBool( + writer.writeString( 7, f ); @@ -352,13 +346,6 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.serializeBinaryT f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeString( - 10, - f - ); - } }; @@ -417,47 +404,11 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setPro /** - * optional bool is_undefined = 4; - * @return {boolean} - */ -proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getIsUndefined = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this - */ -proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setIsUndefined = function(value) { - return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this - */ -proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearIsUndefined = function() { - return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasIsUndefined = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string text_value = 5; + * optional string text_value = 4; * @return {string} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getTextValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -466,7 +417,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getTex * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setTextValue = function(value) { - return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); }; @@ -475,7 +426,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setTex * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearTextValue = function() { - return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); }; @@ -484,16 +435,16 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearT * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasTextValue = function() { - return jspb.Message.getField(this, 5) != null; + return jspb.Message.getField(this, 4) != null; }; /** - * optional float number_value = 6; + * optional float number_value = 5; * @return {number} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getNumberValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; @@ -502,7 +453,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getNum * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setNumberValue = function(value) { - return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); }; @@ -511,7 +462,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setNum * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearNumberValue = function() { - return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); }; @@ -520,16 +471,16 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearN * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasNumberValue = function() { - return jspb.Message.getField(this, 6) != null; + return jspb.Message.getField(this, 5) != null; }; /** - * optional bool bool_value = 7; + * optional bool bool_value = 6; * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getBoolValue = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; @@ -538,7 +489,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getBoo * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setBoolValue = function(value) { - return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); }; @@ -547,7 +498,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setBoo * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearBoolValue = function() { - return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); }; @@ -556,16 +507,16 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearB * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasBoolValue = function() { - return jspb.Message.getField(this, 7) != null; + return jspb.Message.getField(this, 6) != null; }; /** - * optional string date_value = 8; + * optional string date_value = 7; * @return {string} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getDateValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -574,7 +525,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getDat * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setDateValue = function(value) { - return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); }; @@ -583,7 +534,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setDat * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearDateValue = function() { - return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); }; @@ -592,16 +543,16 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearD * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasDateValue = function() { - return jspb.Message.getField(this, 8) != null; + return jspb.Message.getField(this, 7) != null; }; /** - * optional string date_time_value = 9; + * optional string date_time_value = 8; * @return {string} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getDateTimeValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; @@ -610,7 +561,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getDat * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setDateTimeValue = function(value) { - return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); }; @@ -619,7 +570,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setDat * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearDateTimeValue = function() { - return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); }; @@ -628,16 +579,16 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearD * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasDateTimeValue = function() { - return jspb.Message.getField(this, 9) != null; + return jspb.Message.getField(this, 8) != null; }; /** - * optional string select_value = 10; + * optional string select_value = 9; * @return {string} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getSelectValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -646,7 +597,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.getSel * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setSelectValue = function(value) { - return jspb.Message.setOneofField(this, 10, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], value); }; @@ -655,7 +606,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.setSel * @return {!proto.proto.services.property_svc.v1.CreatePropertyValueRequest} returns this */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearSelectValue = function() { - return jspb.Message.setOneofField(this, 10, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.CreatePropertyValueRequest.oneofGroups_[0], undefined); }; @@ -664,7 +615,7 @@ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.clearS * @return {boolean} */ proto.proto.services.property_svc.v1.CreatePropertyValueRequest.prototype.hasSelectValue = function() { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.getField(this, 9) != null; }; @@ -937,20 +888,19 @@ proto.proto.services.property_svc.v1.GetPropertyValueRequest.prototype.setId = f * @private {!Array>} * @const */ -proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_ = [[4,5,6,7,8,9,10]]; +proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_ = [[4,5,6,7,8,9]]; /** * @enum {number} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.ValueCase = { VALUE_NOT_SET: 0, - IS_UNDEFINED: 4, - TEXT_VALUE: 5, - NUMBER_VALUE: 6, - BOOL_VALUE: 7, - DATE_VALUE: 8, - DATE_TIME_VALUE: 9, - SELECT_VALUE: 10 + TEXT_VALUE: 4, + NUMBER_VALUE: 5, + BOOL_VALUE: 6, + DATE_VALUE: 7, + DATE_TIME_VALUE: 8, + SELECT_VALUE: 9 }; /** @@ -994,13 +944,12 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.toObject = functio id: jspb.Message.getFieldWithDefault(msg, 1, ""), subjectType: jspb.Message.getFieldWithDefault(msg, 2, ""), propertyId: jspb.Message.getFieldWithDefault(msg, 3, ""), - isUndefined: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - textValue: jspb.Message.getFieldWithDefault(msg, 5, ""), - numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - dateValue: jspb.Message.getFieldWithDefault(msg, 8, ""), - dateTimeValue: jspb.Message.getFieldWithDefault(msg, 9, ""), - selectValue: jspb.Message.getFieldWithDefault(msg, 10, "") + textValue: jspb.Message.getFieldWithDefault(msg, 4, ""), + numberValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + dateValue: jspb.Message.getFieldWithDefault(msg, 7, ""), + dateTimeValue: jspb.Message.getFieldWithDefault(msg, 8, ""), + selectValue: jspb.Message.getFieldWithDefault(msg, 9, "") }; if (includeInstance) { @@ -1050,30 +999,26 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.deserializeBinaryF msg.setPropertyId(value); break; case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsUndefined(value); - break; - case 5: var value = /** @type {string} */ (reader.readString()); msg.setTextValue(value); break; - case 6: + case 5: var value = /** @type {number} */ (reader.readFloat()); msg.setNumberValue(value); break; - case 7: + case 6: var value = /** @type {boolean} */ (reader.readBool()); msg.setBoolValue(value); break; - case 8: + case 7: var value = /** @type {string} */ (reader.readString()); msg.setDateValue(value); break; - case 9: + case 8: var value = /** @type {string} */ (reader.readString()); msg.setDateTimeValue(value); break; - case 10: + case 9: var value = /** @type {string} */ (reader.readString()); msg.setSelectValue(value); break; @@ -1127,30 +1072,30 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.serializeBinaryToW f ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 4)); + f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { - writer.writeBool( + writer.writeString( 4, f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); + f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeString( + writer.writeFloat( 5, f ); } - f = /** @type {number} */ (jspb.Message.getField(message, 6)); + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); if (f != null) { - writer.writeFloat( + writer.writeBool( 6, f ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + f = /** @type {string} */ (jspb.Message.getField(message, 7)); if (f != null) { - writer.writeBool( + writer.writeString( 7, f ); @@ -1169,13 +1114,6 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.serializeBinaryToW f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 10)); - if (f != null) { - writer.writeString( - 10, - f - ); - } }; @@ -1234,47 +1172,11 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setPrope /** - * optional bool is_undefined = 4; - * @return {boolean} - */ -proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getIsUndefined = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this - */ -proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setIsUndefined = function(value) { - return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this - */ -proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearIsUndefined = function() { - return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasIsUndefined = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string text_value = 5; + * optional string text_value = 4; * @return {string} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getTextValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -1283,7 +1185,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getTextV * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setTextValue = function(value) { - return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); }; @@ -1292,7 +1194,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setTextV * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearTextValue = function() { - return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 4, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); }; @@ -1301,16 +1203,16 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearTex * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasTextValue = function() { - return jspb.Message.getField(this, 5) != null; + return jspb.Message.getField(this, 4) != null; }; /** - * optional float number_value = 6; + * optional float number_value = 5; * @return {number} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getNumberValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; @@ -1319,7 +1221,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getNumbe * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setNumberValue = function(value) { - return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); }; @@ -1328,7 +1230,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setNumbe * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearNumberValue = function() { - return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 5, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); }; @@ -1337,16 +1239,16 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearNum * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasNumberValue = function() { - return jspb.Message.getField(this, 6) != null; + return jspb.Message.getField(this, 5) != null; }; /** - * optional bool bool_value = 7; + * optional bool bool_value = 6; * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getBoolValue = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; @@ -1355,7 +1257,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getBoolV * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setBoolValue = function(value) { - return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); }; @@ -1364,7 +1266,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setBoolV * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearBoolValue = function() { - return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 6, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); }; @@ -1373,16 +1275,16 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearBoo * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasBoolValue = function() { - return jspb.Message.getField(this, 7) != null; + return jspb.Message.getField(this, 6) != null; }; /** - * optional string date_value = 8; + * optional string date_value = 7; * @return {string} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getDateValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -1391,7 +1293,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getDateV * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setDateValue = function(value) { - return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); }; @@ -1400,7 +1302,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setDateV * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearDateValue = function() { - return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 7, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); }; @@ -1409,16 +1311,16 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearDat * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasDateValue = function() { - return jspb.Message.getField(this, 8) != null; + return jspb.Message.getField(this, 7) != null; }; /** - * optional string date_time_value = 9; + * optional string date_time_value = 8; * @return {string} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getDateTimeValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; @@ -1427,7 +1329,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getDateT * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setDateTimeValue = function(value) { - return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); }; @@ -1436,7 +1338,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setDateT * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearDateTimeValue = function() { - return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 8, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); }; @@ -1445,16 +1347,16 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearDat * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasDateTimeValue = function() { - return jspb.Message.getField(this, 9) != null; + return jspb.Message.getField(this, 8) != null; }; /** - * optional string select_value = 10; + * optional string select_value = 9; * @return {string} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getSelectValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -1463,7 +1365,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.getSelec * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setSelectValue = function(value) { - return jspb.Message.setOneofField(this, 10, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); + return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], value); }; @@ -1472,7 +1374,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.setSelec * @return {!proto.proto.services.property_svc.v1.GetPropertyValueResponse} returns this */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearSelectValue = function() { - return jspb.Message.setOneofField(this, 10, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); + return jspb.Message.setOneofField(this, 9, proto.proto.services.property_svc.v1.GetPropertyValueResponse.oneofGroups_[0], undefined); }; @@ -1481,7 +1383,7 @@ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.clearSel * @return {boolean} */ proto.proto.services.property_svc.v1.GetPropertyValueResponse.prototype.hasSelectValue = function() { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.getField(this, 9) != null; }; diff --git a/proto/services/property_svc/v1/property_value_svc.proto b/proto/services/property_svc/v1/property_value_svc.proto index 9c32a3791..5ae4acfd6 100644 --- a/proto/services/property_svc/v1/property_value_svc.proto +++ b/proto/services/property_svc/v1/property_value_svc.proto @@ -14,13 +14,12 @@ message CreatePropertyValueRequest{ string subject_type = 2; string property_id = 3; oneof value { - bool is_undefined = 4; // if it exists, it's true - string text_value = 5; // FIELD_TYPE_TEXT - float number_value = 6; // FIELD_TYPE_NUMBER - bool bool_value = 7; // FIELD_TYPE_CHECKBOX - string date_value = 8; // FIELD_TYPE_DATE TODO: is there a proto date type? - string date_time_value = 9; // FIELD_TYPE_DATE_TIME - string select_value = 10; // FIELD_TYPE_SELECT, id of option + string text_value = 4; // FIELD_TYPE_TEXT + float number_value = 5; // FIELD_TYPE_NUMBER + bool bool_value = 6; // FIELD_TYPE_CHECKBOX + string date_value = 7; // FIELD_TYPE_DATE TODO: is there a proto date type? + string date_time_value = 8; // FIELD_TYPE_DATE_TIME + string select_value = 9; // FIELD_TYPE_SELECT, id of option } } @@ -37,13 +36,12 @@ message GetPropertyValueResponse{ string subject_type = 2; string property_id = 3; oneof value { - bool is_undefined = 4; // if it exists, it's true - string text_value = 5; // FIELD_TYPE_TEXT - float number_value = 6; // FIELD_TYPE_NUMBER - bool bool_value = 7; // FIELD_TYPE_CHECKBOX - string date_value = 8; // FIELD_TYPE_DATE TODO: is there a proto date type? - string date_time_value = 9; // FIELD_TYPE_DATE_TIME - string select_value = 10; // FIELD_TYPE_SELECT, id of option + string text_value = 4; // FIELD_TYPE_TEXT + float number_value = 5; // FIELD_TYPE_NUMBER + bool bool_value = 6; // FIELD_TYPE_CHECKBOX + string date_value = 7; // FIELD_TYPE_DATE TODO: is there a proto date type? + string date_time_value = 8; // FIELD_TYPE_DATE_TIME + string select_value = 9; // FIELD_TYPE_SELECT, id of option } } diff --git a/services/impulse_svc/gen/proto/services/property_svc/v1/property_value_svc_pb2.py b/services/impulse_svc/gen/proto/services/property_svc/v1/property_value_svc_pb2.py index 34f9766d1..22c5c1d65 100644 --- a/services/impulse_svc/gen/proto/services/property_svc/v1/property_value_svc_pb2.py +++ b/services/impulse_svc/gen/proto/services/property_svc/v1/property_value_svc_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7proto/services/property_svc/v1/property_value_svc.proto\x12\x1eproto.services.property_svc.v1\"\x84\x03\n\x1a\x43reatePropertyValueRequest\x12\x1d\n\nsubject_id\x18\x01 \x01(\tR\tsubjectId\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12#\n\x0cis_undefined\x18\x04 \x01(\x08H\x00R\x0bisUndefined\x12\x1f\n\ntext_value\x18\x05 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x06 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x07 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x08 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\t \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\n \x01(\tH\x00R\x0bselectValueB\x07\n\x05value\"-\n\x1b\x43reatePropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\")\n\x17GetPropertyValueRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xf3\x02\n\x18GetPropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12#\n\x0cis_undefined\x18\x04 \x01(\x08H\x00R\x0bisUndefined\x12\x1f\n\ntext_value\x18\x05 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x06 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x07 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x08 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\t \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\n \x01(\tH\x00R\x0bselectValueB\x07\n\x05value2\xb3\x02\n\x14PropertyValueService\x12\x90\x01\n\x13\x43reatePropertyValue\x12:.proto.services.property_svc.v1.CreatePropertyValueRequest\x1a;.proto.services.property_svc.v1.CreatePropertyValueResponse\"\x00\x12\x87\x01\n\x10GetPropertyValue\x12\x37.proto.services.property_svc.v1.GetPropertyValueRequest\x1a\x38.proto.services.property_svc.v1.GetPropertyValueResponse\"\x00\x42\xf3\x01\n\"com.proto.services.property_svc.v1B\x15PropertyValueSvcProtoP\x01Z\x1fgen/proto/services/property-svc\xa2\x02\x03PSP\xaa\x02\x1dProto.Services.PropertySvc.V1\xca\x02\x1dProto\\Services\\PropertySvc\\V1\xe2\x02)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\xea\x02 Proto::Services::PropertySvc::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7proto/services/property_svc/v1/property_value_svc.proto\x12\x1eproto.services.property_svc.v1\"\xdf\x02\n\x1a\x43reatePropertyValueRequest\x12\x1d\n\nsubject_id\x18\x01 \x01(\tR\tsubjectId\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12\x1f\n\ntext_value\x18\x04 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x05 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x06 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x07 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\x08 \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\t \x01(\tH\x00R\x0bselectValueB\x07\n\x05value\"-\n\x1b\x43reatePropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\")\n\x17GetPropertyValueRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\xce\x02\n\x18GetPropertyValueResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0csubject_type\x18\x02 \x01(\tR\x0bsubjectType\x12\x1f\n\x0bproperty_id\x18\x03 \x01(\tR\npropertyId\x12\x1f\n\ntext_value\x18\x04 \x01(\tH\x00R\ttextValue\x12#\n\x0cnumber_value\x18\x05 \x01(\x02H\x00R\x0bnumberValue\x12\x1f\n\nbool_value\x18\x06 \x01(\x08H\x00R\tboolValue\x12\x1f\n\ndate_value\x18\x07 \x01(\tH\x00R\tdateValue\x12(\n\x0f\x64\x61te_time_value\x18\x08 \x01(\tH\x00R\rdateTimeValue\x12#\n\x0cselect_value\x18\t \x01(\tH\x00R\x0bselectValueB\x07\n\x05value2\xb3\x02\n\x14PropertyValueService\x12\x90\x01\n\x13\x43reatePropertyValue\x12:.proto.services.property_svc.v1.CreatePropertyValueRequest\x1a;.proto.services.property_svc.v1.CreatePropertyValueResponse\"\x00\x12\x87\x01\n\x10GetPropertyValue\x12\x37.proto.services.property_svc.v1.GetPropertyValueRequest\x1a\x38.proto.services.property_svc.v1.GetPropertyValueResponse\"\x00\x42\xf3\x01\n\"com.proto.services.property_svc.v1B\x15PropertyValueSvcProtoP\x01Z\x1fgen/proto/services/property-svc\xa2\x02\x03PSP\xaa\x02\x1dProto.Services.PropertySvc.V1\xca\x02\x1dProto\\Services\\PropertySvc\\V1\xe2\x02)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\xea\x02 Proto::Services::PropertySvc::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -23,13 +23,13 @@ _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\"com.proto.services.property_svc.v1B\025PropertyValueSvcProtoP\001Z\037gen/proto/services/property-svc\242\002\003PSP\252\002\035Proto.Services.PropertySvc.V1\312\002\035Proto\\Services\\PropertySvc\\V1\342\002)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\352\002 Proto::Services::PropertySvc::V1' _globals['_CREATEPROPERTYVALUEREQUEST']._serialized_start=92 - _globals['_CREATEPROPERTYVALUEREQUEST']._serialized_end=480 - _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_start=482 - _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_end=527 - _globals['_GETPROPERTYVALUEREQUEST']._serialized_start=529 - _globals['_GETPROPERTYVALUEREQUEST']._serialized_end=570 - _globals['_GETPROPERTYVALUERESPONSE']._serialized_start=573 - _globals['_GETPROPERTYVALUERESPONSE']._serialized_end=944 - _globals['_PROPERTYVALUESERVICE']._serialized_start=947 - _globals['_PROPERTYVALUESERVICE']._serialized_end=1254 + _globals['_CREATEPROPERTYVALUEREQUEST']._serialized_end=443 + _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_start=445 + _globals['_CREATEPROPERTYVALUERESPONSE']._serialized_end=490 + _globals['_GETPROPERTYVALUEREQUEST']._serialized_start=492 + _globals['_GETPROPERTYVALUEREQUEST']._serialized_end=533 + _globals['_GETPROPERTYVALUERESPONSE']._serialized_start=536 + _globals['_GETPROPERTYVALUERESPONSE']._serialized_end=870 + _globals['_PROPERTYVALUESERVICE']._serialized_start=873 + _globals['_PROPERTYVALUESERVICE']._serialized_end=1180 # @@protoc_insertion_point(module_scope) diff --git a/services/property-svc/internal/property-value/api/grpc.go b/services/property-svc/internal/property-value/api/grpc.go index b4781963c..98895ec53 100644 --- a/services/property-svc/internal/property-value/api/grpc.go +++ b/services/property-svc/internal/property-value/api/grpc.go @@ -42,8 +42,8 @@ func (s *PropertyValueGrpcService) CreatePropertyValue(ctx context.Context, req value = req.GetDateValue() case *pb.CreatePropertyValueRequest_DateTimeValue: value = req.GetDateTimeValue() - case *pb.CreatePropertyValueRequest_IsUndefined: - value = true + default: + value = nil } if err := commandsV1.NewCreatePropertyValueCommandHandler(s.as)(ctx, propertyValueID, propertyID, subjectID, req.GetSubjectType(), value); err != nil { @@ -81,7 +81,7 @@ func (s *PropertyValueGrpcService) GetPropertyValue(ctx context.Context, req *pb case bool: response.Value = &pb.GetPropertyValueResponse_BoolValue{BoolValue: v} default: - response.Value = &pb.GetPropertyValueResponse_IsUndefined{IsUndefined: true} + response.Value = nil } return response, nil