@blueid/access-proto 0.41.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BlueSDK.proto +10 -6
- package/cjs/BlueSDK_pb.d.ts +27 -7
- package/cjs/BlueSDK_pb.js +22 -6
- package/es/BlueSDK_pb.d.ts +27 -7
- package/es/BlueSDK_pb.js +10 -6
- package/nanopb/BlueSDK.pb.c +1 -1
- package/nanopb/BlueSDK.pb.h +26 -15
- package/package.json +1 -1
- package/swift/BlueSDK.pb.swift +88 -18
package/BlueSDK.proto
CHANGED
|
@@ -63,12 +63,16 @@ message BlueAccessCredential {
|
|
|
63
63
|
required BlueCredentialId credentialId = 1;
|
|
64
64
|
required BlueCredentialType credentialType = 2;
|
|
65
65
|
optional string name = 3;
|
|
66
|
-
optional
|
|
67
|
-
|
|
68
|
-
optional
|
|
69
|
-
optional BlueLocalTimestamp
|
|
70
|
-
optional BlueLocalTimestamp
|
|
71
|
-
optional
|
|
66
|
+
optional string description = 4;
|
|
67
|
+
required int32 siteId = 5;
|
|
68
|
+
optional string siteName = 6;
|
|
69
|
+
optional BlueLocalTimestamp validFrom = 7;
|
|
70
|
+
optional BlueLocalTimestamp validTo = 8;
|
|
71
|
+
optional BlueLocalTimestamp validity = 9;
|
|
72
|
+
optional bytes privateKey = 10;
|
|
73
|
+
optional string receiverName = 11;
|
|
74
|
+
required string organisation = 12;
|
|
75
|
+
optional string organisationName = 13;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
message BlueAccessCredentialList {
|
package/cjs/BlueSDK_pb.d.ts
CHANGED
|
@@ -215,35 +215,55 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
|
|
|
215
215
|
name?: string;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
|
-
* @generated from field: optional
|
|
218
|
+
* @generated from field: optional string description = 4;
|
|
219
219
|
*/
|
|
220
|
-
|
|
220
|
+
description?: string;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* @generated from field:
|
|
223
|
+
* @generated from field: required int32 siteId = 5;
|
|
224
|
+
*/
|
|
225
|
+
siteId: number;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: optional string siteName = 6;
|
|
224
229
|
*/
|
|
225
230
|
siteName?: string;
|
|
226
231
|
|
|
227
232
|
/**
|
|
228
|
-
* @generated from field: optional BlueLocalTimestamp validFrom =
|
|
233
|
+
* @generated from field: optional BlueLocalTimestamp validFrom = 7;
|
|
229
234
|
*/
|
|
230
235
|
validFrom?: BlueLocalTimestamp;
|
|
231
236
|
|
|
232
237
|
/**
|
|
233
|
-
* @generated from field: optional BlueLocalTimestamp validTo =
|
|
238
|
+
* @generated from field: optional BlueLocalTimestamp validTo = 8;
|
|
234
239
|
*/
|
|
235
240
|
validTo?: BlueLocalTimestamp;
|
|
236
241
|
|
|
237
242
|
/**
|
|
238
|
-
* @generated from field: optional BlueLocalTimestamp validity =
|
|
243
|
+
* @generated from field: optional BlueLocalTimestamp validity = 9;
|
|
239
244
|
*/
|
|
240
245
|
validity?: BlueLocalTimestamp;
|
|
241
246
|
|
|
242
247
|
/**
|
|
243
|
-
* @generated from field: optional bytes privateKey =
|
|
248
|
+
* @generated from field: optional bytes privateKey = 10;
|
|
244
249
|
*/
|
|
245
250
|
privateKey?: Uint8Array;
|
|
246
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: optional string receiverName = 11;
|
|
254
|
+
*/
|
|
255
|
+
receiverName?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: required string organisation = 12;
|
|
259
|
+
*/
|
|
260
|
+
organisation: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: optional string organisationName = 13;
|
|
264
|
+
*/
|
|
265
|
+
organisationName?: string;
|
|
266
|
+
|
|
247
267
|
constructor(data?: PartialMessage<BlueAccessCredential>);
|
|
248
268
|
|
|
249
269
|
static readonly runtime: typeof proto2;
|
package/cjs/BlueSDK_pb.js
CHANGED
|
@@ -119,12 +119,28 @@ const BlueAccessCredential = import_protobuf.proto2.makeMessageType(
|
|
|
119
119
|
{ no: 1, name: "credentialId", kind: "message", T: import_BlueCore_pb.BlueCredentialId },
|
|
120
120
|
{ no: 2, name: "credentialType", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueCredentialType) },
|
|
121
121
|
{ no: 3, name: "name", kind: "scalar", T: 9, opt: true },
|
|
122
|
-
{ no: 4, name: "
|
|
123
|
-
{
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
{ no: 4, name: "description", kind: "scalar", T: 9, opt: true },
|
|
123
|
+
{
|
|
124
|
+
no: 5,
|
|
125
|
+
name: "siteId",
|
|
126
|
+
kind: "scalar",
|
|
127
|
+
T: 5
|
|
128
|
+
/* ScalarType.INT32 */
|
|
129
|
+
},
|
|
130
|
+
{ no: 6, name: "siteName", kind: "scalar", T: 9, opt: true },
|
|
131
|
+
{ no: 7, name: "validFrom", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
|
|
132
|
+
{ no: 8, name: "validTo", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
|
|
133
|
+
{ no: 9, name: "validity", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
|
|
134
|
+
{ no: 10, name: "privateKey", kind: "scalar", T: 12, opt: true },
|
|
135
|
+
{ no: 11, name: "receiverName", kind: "scalar", T: 9, opt: true },
|
|
136
|
+
{
|
|
137
|
+
no: 12,
|
|
138
|
+
name: "organisation",
|
|
139
|
+
kind: "scalar",
|
|
140
|
+
T: 9
|
|
141
|
+
/* ScalarType.STRING */
|
|
142
|
+
},
|
|
143
|
+
{ no: 13, name: "organisationName", kind: "scalar", T: 9, opt: true }
|
|
128
144
|
]
|
|
129
145
|
);
|
|
130
146
|
const BlueAccessCredentialList = import_protobuf.proto2.makeMessageType(
|
package/es/BlueSDK_pb.d.ts
CHANGED
|
@@ -215,35 +215,55 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
|
|
|
215
215
|
name?: string;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
|
-
* @generated from field: optional
|
|
218
|
+
* @generated from field: optional string description = 4;
|
|
219
219
|
*/
|
|
220
|
-
|
|
220
|
+
description?: string;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
|
-
* @generated from field:
|
|
223
|
+
* @generated from field: required int32 siteId = 5;
|
|
224
|
+
*/
|
|
225
|
+
siteId: number;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: optional string siteName = 6;
|
|
224
229
|
*/
|
|
225
230
|
siteName?: string;
|
|
226
231
|
|
|
227
232
|
/**
|
|
228
|
-
* @generated from field: optional BlueLocalTimestamp validFrom =
|
|
233
|
+
* @generated from field: optional BlueLocalTimestamp validFrom = 7;
|
|
229
234
|
*/
|
|
230
235
|
validFrom?: BlueLocalTimestamp;
|
|
231
236
|
|
|
232
237
|
/**
|
|
233
|
-
* @generated from field: optional BlueLocalTimestamp validTo =
|
|
238
|
+
* @generated from field: optional BlueLocalTimestamp validTo = 8;
|
|
234
239
|
*/
|
|
235
240
|
validTo?: BlueLocalTimestamp;
|
|
236
241
|
|
|
237
242
|
/**
|
|
238
|
-
* @generated from field: optional BlueLocalTimestamp validity =
|
|
243
|
+
* @generated from field: optional BlueLocalTimestamp validity = 9;
|
|
239
244
|
*/
|
|
240
245
|
validity?: BlueLocalTimestamp;
|
|
241
246
|
|
|
242
247
|
/**
|
|
243
|
-
* @generated from field: optional bytes privateKey =
|
|
248
|
+
* @generated from field: optional bytes privateKey = 10;
|
|
244
249
|
*/
|
|
245
250
|
privateKey?: Uint8Array;
|
|
246
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: optional string receiverName = 11;
|
|
254
|
+
*/
|
|
255
|
+
receiverName?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: required string organisation = 12;
|
|
259
|
+
*/
|
|
260
|
+
organisation: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: optional string organisationName = 13;
|
|
264
|
+
*/
|
|
265
|
+
organisationName?: string;
|
|
266
|
+
|
|
247
267
|
constructor(data?: PartialMessage<BlueAccessCredential>);
|
|
248
268
|
|
|
249
269
|
static readonly runtime: typeof proto2;
|
package/es/BlueSDK_pb.js
CHANGED
|
@@ -80,12 +80,16 @@ export const BlueAccessCredential = proto2.makeMessageType(
|
|
|
80
80
|
{ no: 1, name: "credentialId", kind: "message", T: BlueCredentialId },
|
|
81
81
|
{ no: 2, name: "credentialType", kind: "enum", T: proto2.getEnumType(BlueCredentialType) },
|
|
82
82
|
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
83
|
-
{ no: 4, name: "
|
|
84
|
-
{ no: 5, name: "
|
|
85
|
-
{ no: 6, name: "
|
|
86
|
-
{ no: 7, name: "
|
|
87
|
-
{ no: 8, name: "
|
|
88
|
-
{ no: 9, name: "
|
|
83
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
84
|
+
{ no: 5, name: "siteId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
85
|
+
{ no: 6, name: "siteName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
86
|
+
{ no: 7, name: "validFrom", kind: "message", T: BlueLocalTimestamp, opt: true },
|
|
87
|
+
{ no: 8, name: "validTo", kind: "message", T: BlueLocalTimestamp, opt: true },
|
|
88
|
+
{ no: 9, name: "validity", kind: "message", T: BlueLocalTimestamp, opt: true },
|
|
89
|
+
{ no: 10, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
90
|
+
{ no: 11, name: "receiverName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
91
|
+
{ no: 12, name: "organisation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
92
|
+
{ no: 13, name: "organisationName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
89
93
|
],
|
|
90
94
|
);
|
|
91
95
|
|
package/nanopb/BlueSDK.pb.c
CHANGED
|
@@ -18,7 +18,7 @@ PB_BIND(BLUEDEVICEDETAILSUWB, BlueDeviceDetailsUWB_t, AUTO)
|
|
|
18
18
|
PB_BIND(BLUEDEVICEINFO, BlueDeviceInfo_t, AUTO)
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
PB_BIND(BLUEACCESSCREDENTIAL, BlueAccessCredential_t,
|
|
21
|
+
PB_BIND(BLUEACCESSCREDENTIAL, BlueAccessCredential_t, 2)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
PB_BIND(BLUEACCESSCREDENTIALLIST, BlueAccessCredentialList_t, AUTO)
|
package/nanopb/BlueSDK.pb.h
CHANGED
|
@@ -55,7 +55,7 @@ typedef struct BlueAccessCredential {
|
|
|
55
55
|
BlueCredentialId_t credentialId;
|
|
56
56
|
BlueCredentialType_t credentialType;
|
|
57
57
|
pb_callback_t name;
|
|
58
|
-
|
|
58
|
+
pb_callback_t description;
|
|
59
59
|
int32_t siteId;
|
|
60
60
|
pb_callback_t siteName;
|
|
61
61
|
bool has_validFrom;
|
|
@@ -65,6 +65,9 @@ typedef struct BlueAccessCredential {
|
|
|
65
65
|
bool has_validity;
|
|
66
66
|
BlueLocalTimestamp_t validity;
|
|
67
67
|
pb_callback_t privateKey;
|
|
68
|
+
pb_callback_t receiverName;
|
|
69
|
+
pb_callback_t organisation;
|
|
70
|
+
pb_callback_t organisationName;
|
|
68
71
|
} BlueAccessCredential_t;
|
|
69
72
|
|
|
70
73
|
typedef struct BlueAccessCredentialList {
|
|
@@ -122,7 +125,7 @@ extern "C" {
|
|
|
122
125
|
#define BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT {0, 0, 0}
|
|
123
126
|
#define BLUEDEVICEDETAILSUWB_INIT_DEFAULT {0}
|
|
124
127
|
#define BLUEDEVICEINFO_INIT_DEFAULT {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT}}
|
|
125
|
-
#define BLUEACCESSCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL},
|
|
128
|
+
#define BLUEACCESSCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
|
|
126
129
|
#define BLUEACCESSCREDENTIALLIST_INIT_DEFAULT {{{NULL}, NULL}}
|
|
127
130
|
#define BLUEACCESSDEVICE_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, false, 0}
|
|
128
131
|
#define BLUEACCESSDEVICELIST_INIT_DEFAULT {{{NULL}, NULL}}
|
|
@@ -132,7 +135,7 @@ extern "C" {
|
|
|
132
135
|
#define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
|
|
133
136
|
#define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
|
|
134
137
|
#define BLUEDEVICEINFO_INIT_ZERO {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_ZERO, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO}}
|
|
135
|
-
#define BLUEACCESSCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL},
|
|
138
|
+
#define BLUEACCESSCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
|
|
136
139
|
#define BLUEACCESSCREDENTIALLIST_INIT_ZERO {{{NULL}, NULL}}
|
|
137
140
|
#define BLUEACCESSDEVICE_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, false, 0}
|
|
138
141
|
#define BLUEACCESSDEVICELIST_INIT_ZERO {{{NULL}, NULL}}
|
|
@@ -161,12 +164,16 @@ extern "C" {
|
|
|
161
164
|
#define BLUEACCESSCREDENTIAL_CREDENTIALID_TAG 1
|
|
162
165
|
#define BLUEACCESSCREDENTIAL_CREDENTIALTYPE_TAG 2
|
|
163
166
|
#define BLUEACCESSCREDENTIAL_NAME_TAG 3
|
|
164
|
-
#define
|
|
165
|
-
#define
|
|
166
|
-
#define
|
|
167
|
-
#define
|
|
168
|
-
#define
|
|
169
|
-
#define
|
|
167
|
+
#define BLUEACCESSCREDENTIAL_DESCRIPTION_TAG 4
|
|
168
|
+
#define BLUEACCESSCREDENTIAL_SITEID_TAG 5
|
|
169
|
+
#define BLUEACCESSCREDENTIAL_SITENAME_TAG 6
|
|
170
|
+
#define BLUEACCESSCREDENTIAL_VALIDFROM_TAG 7
|
|
171
|
+
#define BLUEACCESSCREDENTIAL_VALIDTO_TAG 8
|
|
172
|
+
#define BLUEACCESSCREDENTIAL_VALIDITY_TAG 9
|
|
173
|
+
#define BLUEACCESSCREDENTIAL_PRIVATEKEY_TAG 10
|
|
174
|
+
#define BLUEACCESSCREDENTIAL_RECEIVERNAME_TAG 11
|
|
175
|
+
#define BLUEACCESSCREDENTIAL_ORGANISATION_TAG 12
|
|
176
|
+
#define BLUEACCESSCREDENTIAL_ORGANISATIONNAME_TAG 13
|
|
170
177
|
#define BLUEACCESSCREDENTIALLIST_CREDENTIALS_TAG 1
|
|
171
178
|
#define BLUEACCESSDEVICE_DEVICEID_TAG 1
|
|
172
179
|
#define BLUEACCESSDEVICE_OBJECTNAME_TAG 2
|
|
@@ -221,12 +228,16 @@ X(a, STATIC, ONEOF, MESSAGE, (details,uwb,details.uwb), 6)
|
|
|
221
228
|
X(a, STATIC, REQUIRED, MESSAGE, credentialId, 1) \
|
|
222
229
|
X(a, STATIC, REQUIRED, UENUM, credentialType, 2) \
|
|
223
230
|
X(a, CALLBACK, OPTIONAL, STRING, name, 3) \
|
|
224
|
-
X(a,
|
|
225
|
-
X(a,
|
|
226
|
-
X(a,
|
|
227
|
-
X(a, STATIC, OPTIONAL, MESSAGE,
|
|
228
|
-
X(a, STATIC, OPTIONAL, MESSAGE,
|
|
229
|
-
X(a,
|
|
231
|
+
X(a, CALLBACK, OPTIONAL, STRING, description, 4) \
|
|
232
|
+
X(a, STATIC, REQUIRED, INT32, siteId, 5) \
|
|
233
|
+
X(a, CALLBACK, OPTIONAL, STRING, siteName, 6) \
|
|
234
|
+
X(a, STATIC, OPTIONAL, MESSAGE, validFrom, 7) \
|
|
235
|
+
X(a, STATIC, OPTIONAL, MESSAGE, validTo, 8) \
|
|
236
|
+
X(a, STATIC, OPTIONAL, MESSAGE, validity, 9) \
|
|
237
|
+
X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 10) \
|
|
238
|
+
X(a, CALLBACK, OPTIONAL, STRING, receiverName, 11) \
|
|
239
|
+
X(a, CALLBACK, REQUIRED, STRING, organisation, 12) \
|
|
240
|
+
X(a, CALLBACK, OPTIONAL, STRING, organisationName, 13)
|
|
230
241
|
#define BLUEACCESSCREDENTIAL_CALLBACK pb_default_field_callback
|
|
231
242
|
#define BLUEACCESSCREDENTIAL_DEFAULT (const pb_byte_t*)"\x10\x01\x00"
|
|
232
243
|
#define BlueAccessCredential_t_credentialId_MSGTYPE BlueCredentialId_t
|
package/package.json
CHANGED
package/swift/BlueSDK.pb.swift
CHANGED
|
@@ -348,6 +348,15 @@ public struct BlueAccessCredential {
|
|
|
348
348
|
/// Clears the value of `name`. Subsequent reads from it will return its default value.
|
|
349
349
|
public mutating func clearName() {_uniqueStorage()._name = nil}
|
|
350
350
|
|
|
351
|
+
public var description_p: String {
|
|
352
|
+
get {return _storage._description_p ?? String()}
|
|
353
|
+
set {_uniqueStorage()._description_p = newValue}
|
|
354
|
+
}
|
|
355
|
+
/// Returns true if `description_p` has been explicitly set.
|
|
356
|
+
public var hasDescription_p: Bool {return _storage._description_p != nil}
|
|
357
|
+
/// Clears the value of `description_p`. Subsequent reads from it will return its default value.
|
|
358
|
+
public mutating func clearDescription_p() {_uniqueStorage()._description_p = nil}
|
|
359
|
+
|
|
351
360
|
public var siteID: Int32 {
|
|
352
361
|
get {return _storage._siteID ?? 0}
|
|
353
362
|
set {_uniqueStorage()._siteID = newValue}
|
|
@@ -402,6 +411,33 @@ public struct BlueAccessCredential {
|
|
|
402
411
|
/// Clears the value of `privateKey`. Subsequent reads from it will return its default value.
|
|
403
412
|
public mutating func clearPrivateKey() {_uniqueStorage()._privateKey = nil}
|
|
404
413
|
|
|
414
|
+
public var receiverName: String {
|
|
415
|
+
get {return _storage._receiverName ?? String()}
|
|
416
|
+
set {_uniqueStorage()._receiverName = newValue}
|
|
417
|
+
}
|
|
418
|
+
/// Returns true if `receiverName` has been explicitly set.
|
|
419
|
+
public var hasReceiverName: Bool {return _storage._receiverName != nil}
|
|
420
|
+
/// Clears the value of `receiverName`. Subsequent reads from it will return its default value.
|
|
421
|
+
public mutating func clearReceiverName() {_uniqueStorage()._receiverName = nil}
|
|
422
|
+
|
|
423
|
+
public var organisation: String {
|
|
424
|
+
get {return _storage._organisation ?? String()}
|
|
425
|
+
set {_uniqueStorage()._organisation = newValue}
|
|
426
|
+
}
|
|
427
|
+
/// Returns true if `organisation` has been explicitly set.
|
|
428
|
+
public var hasOrganisation: Bool {return _storage._organisation != nil}
|
|
429
|
+
/// Clears the value of `organisation`. Subsequent reads from it will return its default value.
|
|
430
|
+
public mutating func clearOrganisation() {_uniqueStorage()._organisation = nil}
|
|
431
|
+
|
|
432
|
+
public var organisationName: String {
|
|
433
|
+
get {return _storage._organisationName ?? String()}
|
|
434
|
+
set {_uniqueStorage()._organisationName = newValue}
|
|
435
|
+
}
|
|
436
|
+
/// Returns true if `organisationName` has been explicitly set.
|
|
437
|
+
public var hasOrganisationName: Bool {return _storage._organisationName != nil}
|
|
438
|
+
/// Clears the value of `organisationName`. Subsequent reads from it will return its default value.
|
|
439
|
+
public mutating func clearOrganisationName() {_uniqueStorage()._organisationName = nil}
|
|
440
|
+
|
|
405
441
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
406
442
|
|
|
407
443
|
public init() {}
|
|
@@ -858,24 +894,32 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
858
894
|
1: .same(proto: "credentialId"),
|
|
859
895
|
2: .same(proto: "credentialType"),
|
|
860
896
|
3: .same(proto: "name"),
|
|
861
|
-
4: .same(proto: "
|
|
862
|
-
5: .same(proto: "
|
|
863
|
-
6: .same(proto: "
|
|
864
|
-
7: .same(proto: "
|
|
865
|
-
8: .same(proto: "
|
|
866
|
-
9: .same(proto: "
|
|
897
|
+
4: .same(proto: "description"),
|
|
898
|
+
5: .same(proto: "siteId"),
|
|
899
|
+
6: .same(proto: "siteName"),
|
|
900
|
+
7: .same(proto: "validFrom"),
|
|
901
|
+
8: .same(proto: "validTo"),
|
|
902
|
+
9: .same(proto: "validity"),
|
|
903
|
+
10: .same(proto: "privateKey"),
|
|
904
|
+
11: .same(proto: "receiverName"),
|
|
905
|
+
12: .same(proto: "organisation"),
|
|
906
|
+
13: .same(proto: "organisationName"),
|
|
867
907
|
]
|
|
868
908
|
|
|
869
909
|
fileprivate class _StorageClass {
|
|
870
910
|
var _credentialID: BlueCredentialId? = nil
|
|
871
911
|
var _credentialType: BlueCredentialType? = nil
|
|
872
912
|
var _name: String? = nil
|
|
913
|
+
var _description_p: String? = nil
|
|
873
914
|
var _siteID: Int32? = nil
|
|
874
915
|
var _siteName: String? = nil
|
|
875
916
|
var _validFrom: BlueLocalTimestamp? = nil
|
|
876
917
|
var _validTo: BlueLocalTimestamp? = nil
|
|
877
918
|
var _validity: BlueLocalTimestamp? = nil
|
|
878
919
|
var _privateKey: Data? = nil
|
|
920
|
+
var _receiverName: String? = nil
|
|
921
|
+
var _organisation: String? = nil
|
|
922
|
+
var _organisationName: String? = nil
|
|
879
923
|
|
|
880
924
|
static let defaultInstance = _StorageClass()
|
|
881
925
|
|
|
@@ -885,12 +929,16 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
885
929
|
_credentialID = source._credentialID
|
|
886
930
|
_credentialType = source._credentialType
|
|
887
931
|
_name = source._name
|
|
932
|
+
_description_p = source._description_p
|
|
888
933
|
_siteID = source._siteID
|
|
889
934
|
_siteName = source._siteName
|
|
890
935
|
_validFrom = source._validFrom
|
|
891
936
|
_validTo = source._validTo
|
|
892
937
|
_validity = source._validity
|
|
893
938
|
_privateKey = source._privateKey
|
|
939
|
+
_receiverName = source._receiverName
|
|
940
|
+
_organisation = source._organisation
|
|
941
|
+
_organisationName = source._organisationName
|
|
894
942
|
}
|
|
895
943
|
}
|
|
896
944
|
|
|
@@ -905,6 +953,8 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
905
953
|
return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
906
954
|
if _storage._credentialID == nil {return false}
|
|
907
955
|
if _storage._credentialType == nil {return false}
|
|
956
|
+
if _storage._siteID == nil {return false}
|
|
957
|
+
if _storage._organisation == nil {return false}
|
|
908
958
|
if let v = _storage._credentialID, !v.isInitialized {return false}
|
|
909
959
|
if let v = _storage._validFrom, !v.isInitialized {return false}
|
|
910
960
|
if let v = _storage._validTo, !v.isInitialized {return false}
|
|
@@ -924,12 +974,16 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
924
974
|
case 1: try { try decoder.decodeSingularMessageField(value: &_storage._credentialID) }()
|
|
925
975
|
case 2: try { try decoder.decodeSingularEnumField(value: &_storage._credentialType) }()
|
|
926
976
|
case 3: try { try decoder.decodeSingularStringField(value: &_storage._name) }()
|
|
927
|
-
case 4: try { try decoder.
|
|
928
|
-
case 5: try { try decoder.
|
|
929
|
-
case 6: try { try decoder.
|
|
930
|
-
case 7: try { try decoder.decodeSingularMessageField(value: &_storage.
|
|
931
|
-
case 8: try { try decoder.decodeSingularMessageField(value: &_storage.
|
|
932
|
-
case 9: try { try decoder.
|
|
977
|
+
case 4: try { try decoder.decodeSingularStringField(value: &_storage._description_p) }()
|
|
978
|
+
case 5: try { try decoder.decodeSingularInt32Field(value: &_storage._siteID) }()
|
|
979
|
+
case 6: try { try decoder.decodeSingularStringField(value: &_storage._siteName) }()
|
|
980
|
+
case 7: try { try decoder.decodeSingularMessageField(value: &_storage._validFrom) }()
|
|
981
|
+
case 8: try { try decoder.decodeSingularMessageField(value: &_storage._validTo) }()
|
|
982
|
+
case 9: try { try decoder.decodeSingularMessageField(value: &_storage._validity) }()
|
|
983
|
+
case 10: try { try decoder.decodeSingularBytesField(value: &_storage._privateKey) }()
|
|
984
|
+
case 11: try { try decoder.decodeSingularStringField(value: &_storage._receiverName) }()
|
|
985
|
+
case 12: try { try decoder.decodeSingularStringField(value: &_storage._organisation) }()
|
|
986
|
+
case 13: try { try decoder.decodeSingularStringField(value: &_storage._organisationName) }()
|
|
933
987
|
default: break
|
|
934
988
|
}
|
|
935
989
|
}
|
|
@@ -951,23 +1005,35 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
951
1005
|
try { if let v = _storage._name {
|
|
952
1006
|
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
953
1007
|
} }()
|
|
1008
|
+
try { if let v = _storage._description_p {
|
|
1009
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
|
|
1010
|
+
} }()
|
|
954
1011
|
try { if let v = _storage._siteID {
|
|
955
|
-
try visitor.visitSingularInt32Field(value: v, fieldNumber:
|
|
1012
|
+
try visitor.visitSingularInt32Field(value: v, fieldNumber: 5)
|
|
956
1013
|
} }()
|
|
957
1014
|
try { if let v = _storage._siteName {
|
|
958
|
-
try visitor.visitSingularStringField(value: v, fieldNumber:
|
|
1015
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 6)
|
|
959
1016
|
} }()
|
|
960
1017
|
try { if let v = _storage._validFrom {
|
|
961
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber:
|
|
1018
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
|
|
962
1019
|
} }()
|
|
963
1020
|
try { if let v = _storage._validTo {
|
|
964
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber:
|
|
1021
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
|
|
965
1022
|
} }()
|
|
966
1023
|
try { if let v = _storage._validity {
|
|
967
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber:
|
|
1024
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
|
|
968
1025
|
} }()
|
|
969
1026
|
try { if let v = _storage._privateKey {
|
|
970
|
-
try visitor.visitSingularBytesField(value: v, fieldNumber:
|
|
1027
|
+
try visitor.visitSingularBytesField(value: v, fieldNumber: 10)
|
|
1028
|
+
} }()
|
|
1029
|
+
try { if let v = _storage._receiverName {
|
|
1030
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 11)
|
|
1031
|
+
} }()
|
|
1032
|
+
try { if let v = _storage._organisation {
|
|
1033
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 12)
|
|
1034
|
+
} }()
|
|
1035
|
+
try { if let v = _storage._organisationName {
|
|
1036
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 13)
|
|
971
1037
|
} }()
|
|
972
1038
|
}
|
|
973
1039
|
try unknownFields.traverse(visitor: &visitor)
|
|
@@ -981,12 +1047,16 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
981
1047
|
if _storage._credentialID != rhs_storage._credentialID {return false}
|
|
982
1048
|
if _storage._credentialType != rhs_storage._credentialType {return false}
|
|
983
1049
|
if _storage._name != rhs_storage._name {return false}
|
|
1050
|
+
if _storage._description_p != rhs_storage._description_p {return false}
|
|
984
1051
|
if _storage._siteID != rhs_storage._siteID {return false}
|
|
985
1052
|
if _storage._siteName != rhs_storage._siteName {return false}
|
|
986
1053
|
if _storage._validFrom != rhs_storage._validFrom {return false}
|
|
987
1054
|
if _storage._validTo != rhs_storage._validTo {return false}
|
|
988
1055
|
if _storage._validity != rhs_storage._validity {return false}
|
|
989
1056
|
if _storage._privateKey != rhs_storage._privateKey {return false}
|
|
1057
|
+
if _storage._receiverName != rhs_storage._receiverName {return false}
|
|
1058
|
+
if _storage._organisation != rhs_storage._organisation {return false}
|
|
1059
|
+
if _storage._organisationName != rhs_storage._organisationName {return false}
|
|
990
1060
|
return true
|
|
991
1061
|
}
|
|
992
1062
|
if !storagesAreEqual {return false}
|