@vertexvis/stream-api 0.20.0-canary.2 → 0.20.0-canary.3
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/dist/bundle.cjs.js +503 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +503 -2
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -9955,6 +9955,439 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9955
9955
|
return ClearRenditionOperation;
|
|
9956
9956
|
})();
|
|
9957
9957
|
|
|
9958
|
+
/**
|
|
9959
|
+
* RepresentationPredefinedId enum.
|
|
9960
|
+
* @name vertexvis.protobuf.stream.RepresentationPredefinedId
|
|
9961
|
+
* @enum {number}
|
|
9962
|
+
* @property {number} REPRESENTATION_PREDEFINED_ID_INVALID=0 REPRESENTATION_PREDEFINED_ID_INVALID value
|
|
9963
|
+
* @property {number} REPRESENTATION_PREDEFINED_ID_EMPTY=1 REPRESENTATION_PREDEFINED_ID_EMPTY value
|
|
9964
|
+
* @property {number} REPRESENTATION_PREDEFINED_ID_ENTIRE_PART=2 REPRESENTATION_PREDEFINED_ID_ENTIRE_PART value
|
|
9965
|
+
*/
|
|
9966
|
+
stream.RepresentationPredefinedId = (function() {
|
|
9967
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
9968
|
+
values[valuesById[0] = "REPRESENTATION_PREDEFINED_ID_INVALID"] = 0;
|
|
9969
|
+
values[valuesById[1] = "REPRESENTATION_PREDEFINED_ID_EMPTY"] = 1;
|
|
9970
|
+
values[valuesById[2] = "REPRESENTATION_PREDEFINED_ID_ENTIRE_PART"] = 2;
|
|
9971
|
+
return values;
|
|
9972
|
+
})();
|
|
9973
|
+
|
|
9974
|
+
stream.ViewRepresentationOperation = (function() {
|
|
9975
|
+
|
|
9976
|
+
/**
|
|
9977
|
+
* Properties of a ViewRepresentationOperation.
|
|
9978
|
+
* @memberof vertexvis.protobuf.stream
|
|
9979
|
+
* @interface IViewRepresentationOperation
|
|
9980
|
+
* @property {vertexvis.protobuf.core.IUuid|null} [id] ViewRepresentationOperation id
|
|
9981
|
+
* @property {vertexvis.protobuf.stream.RepresentationPredefinedId|null} [predefinedId] ViewRepresentationOperation predefinedId
|
|
9982
|
+
*/
|
|
9983
|
+
|
|
9984
|
+
/**
|
|
9985
|
+
* Constructs a new ViewRepresentationOperation.
|
|
9986
|
+
* @memberof vertexvis.protobuf.stream
|
|
9987
|
+
* @classdesc Represents a ViewRepresentationOperation.
|
|
9988
|
+
* @implements IViewRepresentationOperation
|
|
9989
|
+
* @constructor
|
|
9990
|
+
* @param {vertexvis.protobuf.stream.IViewRepresentationOperation=} [properties] Properties to set
|
|
9991
|
+
*/
|
|
9992
|
+
function ViewRepresentationOperation(properties) {
|
|
9993
|
+
if (properties)
|
|
9994
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9995
|
+
if (properties[keys[i]] != null)
|
|
9996
|
+
this[keys[i]] = properties[keys[i]];
|
|
9997
|
+
}
|
|
9998
|
+
|
|
9999
|
+
/**
|
|
10000
|
+
* ViewRepresentationOperation id.
|
|
10001
|
+
* @member {vertexvis.protobuf.core.IUuid|null|undefined} id
|
|
10002
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10003
|
+
* @instance
|
|
10004
|
+
*/
|
|
10005
|
+
ViewRepresentationOperation.prototype.id = null;
|
|
10006
|
+
|
|
10007
|
+
/**
|
|
10008
|
+
* ViewRepresentationOperation predefinedId.
|
|
10009
|
+
* @member {vertexvis.protobuf.stream.RepresentationPredefinedId|null|undefined} predefinedId
|
|
10010
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10011
|
+
* @instance
|
|
10012
|
+
*/
|
|
10013
|
+
ViewRepresentationOperation.prototype.predefinedId = null;
|
|
10014
|
+
|
|
10015
|
+
// OneOf field names bound to virtual getters and setters
|
|
10016
|
+
let $oneOfFields;
|
|
10017
|
+
|
|
10018
|
+
/**
|
|
10019
|
+
* ViewRepresentationOperation representation.
|
|
10020
|
+
* @member {"id"|"predefinedId"|undefined} representation
|
|
10021
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10022
|
+
* @instance
|
|
10023
|
+
*/
|
|
10024
|
+
Object.defineProperty(ViewRepresentationOperation.prototype, "representation", {
|
|
10025
|
+
get: $util.oneOfGetter($oneOfFields = ["id", "predefinedId"]),
|
|
10026
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
10027
|
+
});
|
|
10028
|
+
|
|
10029
|
+
/**
|
|
10030
|
+
* Creates a new ViewRepresentationOperation instance using the specified properties.
|
|
10031
|
+
* @function create
|
|
10032
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10033
|
+
* @static
|
|
10034
|
+
* @param {vertexvis.protobuf.stream.IViewRepresentationOperation=} [properties] Properties to set
|
|
10035
|
+
* @returns {vertexvis.protobuf.stream.ViewRepresentationOperation} ViewRepresentationOperation instance
|
|
10036
|
+
*/
|
|
10037
|
+
ViewRepresentationOperation.create = function create(properties) {
|
|
10038
|
+
return new ViewRepresentationOperation(properties);
|
|
10039
|
+
};
|
|
10040
|
+
|
|
10041
|
+
/**
|
|
10042
|
+
* Encodes the specified ViewRepresentationOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ViewRepresentationOperation.verify|verify} messages.
|
|
10043
|
+
* @function encode
|
|
10044
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10045
|
+
* @static
|
|
10046
|
+
* @param {vertexvis.protobuf.stream.IViewRepresentationOperation} message ViewRepresentationOperation message or plain object to encode
|
|
10047
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10048
|
+
* @returns {$protobuf.Writer} Writer
|
|
10049
|
+
*/
|
|
10050
|
+
ViewRepresentationOperation.encode = function encode(message, writer) {
|
|
10051
|
+
if (!writer)
|
|
10052
|
+
writer = $Writer.create();
|
|
10053
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
10054
|
+
$root.vertexvis.protobuf.core.Uuid.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
10055
|
+
if (message.predefinedId != null && Object.hasOwnProperty.call(message, "predefinedId"))
|
|
10056
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.predefinedId);
|
|
10057
|
+
return writer;
|
|
10058
|
+
};
|
|
10059
|
+
|
|
10060
|
+
/**
|
|
10061
|
+
* Encodes the specified ViewRepresentationOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ViewRepresentationOperation.verify|verify} messages.
|
|
10062
|
+
* @function encodeDelimited
|
|
10063
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10064
|
+
* @static
|
|
10065
|
+
* @param {vertexvis.protobuf.stream.IViewRepresentationOperation} message ViewRepresentationOperation message or plain object to encode
|
|
10066
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10067
|
+
* @returns {$protobuf.Writer} Writer
|
|
10068
|
+
*/
|
|
10069
|
+
ViewRepresentationOperation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10070
|
+
return this.encode(message, writer).ldelim();
|
|
10071
|
+
};
|
|
10072
|
+
|
|
10073
|
+
/**
|
|
10074
|
+
* Decodes a ViewRepresentationOperation message from the specified reader or buffer.
|
|
10075
|
+
* @function decode
|
|
10076
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10077
|
+
* @static
|
|
10078
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10079
|
+
* @param {number} [length] Message length if known beforehand
|
|
10080
|
+
* @returns {vertexvis.protobuf.stream.ViewRepresentationOperation} ViewRepresentationOperation
|
|
10081
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10082
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10083
|
+
*/
|
|
10084
|
+
ViewRepresentationOperation.decode = function decode(reader, length) {
|
|
10085
|
+
if (!(reader instanceof $Reader))
|
|
10086
|
+
reader = $Reader.create(reader);
|
|
10087
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ViewRepresentationOperation();
|
|
10088
|
+
while (reader.pos < end) {
|
|
10089
|
+
let tag = reader.uint32();
|
|
10090
|
+
switch (tag >>> 3) {
|
|
10091
|
+
case 1:
|
|
10092
|
+
message.id = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
10093
|
+
break;
|
|
10094
|
+
case 2:
|
|
10095
|
+
message.predefinedId = reader.int32();
|
|
10096
|
+
break;
|
|
10097
|
+
default:
|
|
10098
|
+
reader.skipType(tag & 7);
|
|
10099
|
+
break;
|
|
10100
|
+
}
|
|
10101
|
+
}
|
|
10102
|
+
return message;
|
|
10103
|
+
};
|
|
10104
|
+
|
|
10105
|
+
/**
|
|
10106
|
+
* Decodes a ViewRepresentationOperation message from the specified reader or buffer, length delimited.
|
|
10107
|
+
* @function decodeDelimited
|
|
10108
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10109
|
+
* @static
|
|
10110
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10111
|
+
* @returns {vertexvis.protobuf.stream.ViewRepresentationOperation} ViewRepresentationOperation
|
|
10112
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10113
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10114
|
+
*/
|
|
10115
|
+
ViewRepresentationOperation.decodeDelimited = function decodeDelimited(reader) {
|
|
10116
|
+
if (!(reader instanceof $Reader))
|
|
10117
|
+
reader = new $Reader(reader);
|
|
10118
|
+
return this.decode(reader, reader.uint32());
|
|
10119
|
+
};
|
|
10120
|
+
|
|
10121
|
+
/**
|
|
10122
|
+
* Verifies a ViewRepresentationOperation message.
|
|
10123
|
+
* @function verify
|
|
10124
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10125
|
+
* @static
|
|
10126
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10127
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10128
|
+
*/
|
|
10129
|
+
ViewRepresentationOperation.verify = function verify(message) {
|
|
10130
|
+
if (typeof message !== "object" || message === null)
|
|
10131
|
+
return "object expected";
|
|
10132
|
+
let properties = {};
|
|
10133
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
10134
|
+
properties.representation = 1;
|
|
10135
|
+
{
|
|
10136
|
+
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.id);
|
|
10137
|
+
if (error)
|
|
10138
|
+
return "id." + error;
|
|
10139
|
+
}
|
|
10140
|
+
}
|
|
10141
|
+
if (message.predefinedId != null && message.hasOwnProperty("predefinedId")) {
|
|
10142
|
+
if (properties.representation === 1)
|
|
10143
|
+
return "representation: multiple values";
|
|
10144
|
+
properties.representation = 1;
|
|
10145
|
+
switch (message.predefinedId) {
|
|
10146
|
+
default:
|
|
10147
|
+
return "predefinedId: enum value expected";
|
|
10148
|
+
case 0:
|
|
10149
|
+
case 1:
|
|
10150
|
+
case 2:
|
|
10151
|
+
break;
|
|
10152
|
+
}
|
|
10153
|
+
}
|
|
10154
|
+
return null;
|
|
10155
|
+
};
|
|
10156
|
+
|
|
10157
|
+
/**
|
|
10158
|
+
* Creates a ViewRepresentationOperation message from a plain object. Also converts values to their respective internal types.
|
|
10159
|
+
* @function fromObject
|
|
10160
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10161
|
+
* @static
|
|
10162
|
+
* @param {Object.<string,*>} object Plain object
|
|
10163
|
+
* @returns {vertexvis.protobuf.stream.ViewRepresentationOperation} ViewRepresentationOperation
|
|
10164
|
+
*/
|
|
10165
|
+
ViewRepresentationOperation.fromObject = function fromObject(object) {
|
|
10166
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ViewRepresentationOperation)
|
|
10167
|
+
return object;
|
|
10168
|
+
let message = new $root.vertexvis.protobuf.stream.ViewRepresentationOperation();
|
|
10169
|
+
if (object.id != null) {
|
|
10170
|
+
if (typeof object.id !== "object")
|
|
10171
|
+
throw TypeError(".vertexvis.protobuf.stream.ViewRepresentationOperation.id: object expected");
|
|
10172
|
+
message.id = $root.vertexvis.protobuf.core.Uuid.fromObject(object.id);
|
|
10173
|
+
}
|
|
10174
|
+
switch (object.predefinedId) {
|
|
10175
|
+
case "REPRESENTATION_PREDEFINED_ID_INVALID":
|
|
10176
|
+
case 0:
|
|
10177
|
+
message.predefinedId = 0;
|
|
10178
|
+
break;
|
|
10179
|
+
case "REPRESENTATION_PREDEFINED_ID_EMPTY":
|
|
10180
|
+
case 1:
|
|
10181
|
+
message.predefinedId = 1;
|
|
10182
|
+
break;
|
|
10183
|
+
case "REPRESENTATION_PREDEFINED_ID_ENTIRE_PART":
|
|
10184
|
+
case 2:
|
|
10185
|
+
message.predefinedId = 2;
|
|
10186
|
+
break;
|
|
10187
|
+
}
|
|
10188
|
+
return message;
|
|
10189
|
+
};
|
|
10190
|
+
|
|
10191
|
+
/**
|
|
10192
|
+
* Creates a plain object from a ViewRepresentationOperation message. Also converts values to other types if specified.
|
|
10193
|
+
* @function toObject
|
|
10194
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10195
|
+
* @static
|
|
10196
|
+
* @param {vertexvis.protobuf.stream.ViewRepresentationOperation} message ViewRepresentationOperation
|
|
10197
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10198
|
+
* @returns {Object.<string,*>} Plain object
|
|
10199
|
+
*/
|
|
10200
|
+
ViewRepresentationOperation.toObject = function toObject(message, options) {
|
|
10201
|
+
if (!options)
|
|
10202
|
+
options = {};
|
|
10203
|
+
let object = {};
|
|
10204
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
10205
|
+
object.id = $root.vertexvis.protobuf.core.Uuid.toObject(message.id, options);
|
|
10206
|
+
if (options.oneofs)
|
|
10207
|
+
object.representation = "id";
|
|
10208
|
+
}
|
|
10209
|
+
if (message.predefinedId != null && message.hasOwnProperty("predefinedId")) {
|
|
10210
|
+
object.predefinedId = options.enums === String ? $root.vertexvis.protobuf.stream.RepresentationPredefinedId[message.predefinedId] : message.predefinedId;
|
|
10211
|
+
if (options.oneofs)
|
|
10212
|
+
object.representation = "predefinedId";
|
|
10213
|
+
}
|
|
10214
|
+
return object;
|
|
10215
|
+
};
|
|
10216
|
+
|
|
10217
|
+
/**
|
|
10218
|
+
* Converts this ViewRepresentationOperation to JSON.
|
|
10219
|
+
* @function toJSON
|
|
10220
|
+
* @memberof vertexvis.protobuf.stream.ViewRepresentationOperation
|
|
10221
|
+
* @instance
|
|
10222
|
+
* @returns {Object.<string,*>} JSON object
|
|
10223
|
+
*/
|
|
10224
|
+
ViewRepresentationOperation.prototype.toJSON = function toJSON() {
|
|
10225
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
10226
|
+
};
|
|
10227
|
+
|
|
10228
|
+
return ViewRepresentationOperation;
|
|
10229
|
+
})();
|
|
10230
|
+
|
|
10231
|
+
stream.ClearRepresentationOperation = (function() {
|
|
10232
|
+
|
|
10233
|
+
/**
|
|
10234
|
+
* Properties of a ClearRepresentationOperation.
|
|
10235
|
+
* @memberof vertexvis.protobuf.stream
|
|
10236
|
+
* @interface IClearRepresentationOperation
|
|
10237
|
+
*/
|
|
10238
|
+
|
|
10239
|
+
/**
|
|
10240
|
+
* Constructs a new ClearRepresentationOperation.
|
|
10241
|
+
* @memberof vertexvis.protobuf.stream
|
|
10242
|
+
* @classdesc Represents a ClearRepresentationOperation.
|
|
10243
|
+
* @implements IClearRepresentationOperation
|
|
10244
|
+
* @constructor
|
|
10245
|
+
* @param {vertexvis.protobuf.stream.IClearRepresentationOperation=} [properties] Properties to set
|
|
10246
|
+
*/
|
|
10247
|
+
function ClearRepresentationOperation(properties) {
|
|
10248
|
+
if (properties)
|
|
10249
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10250
|
+
if (properties[keys[i]] != null)
|
|
10251
|
+
this[keys[i]] = properties[keys[i]];
|
|
10252
|
+
}
|
|
10253
|
+
|
|
10254
|
+
/**
|
|
10255
|
+
* Creates a new ClearRepresentationOperation instance using the specified properties.
|
|
10256
|
+
* @function create
|
|
10257
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10258
|
+
* @static
|
|
10259
|
+
* @param {vertexvis.protobuf.stream.IClearRepresentationOperation=} [properties] Properties to set
|
|
10260
|
+
* @returns {vertexvis.protobuf.stream.ClearRepresentationOperation} ClearRepresentationOperation instance
|
|
10261
|
+
*/
|
|
10262
|
+
ClearRepresentationOperation.create = function create(properties) {
|
|
10263
|
+
return new ClearRepresentationOperation(properties);
|
|
10264
|
+
};
|
|
10265
|
+
|
|
10266
|
+
/**
|
|
10267
|
+
* Encodes the specified ClearRepresentationOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ClearRepresentationOperation.verify|verify} messages.
|
|
10268
|
+
* @function encode
|
|
10269
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10270
|
+
* @static
|
|
10271
|
+
* @param {vertexvis.protobuf.stream.IClearRepresentationOperation} message ClearRepresentationOperation message or plain object to encode
|
|
10272
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10273
|
+
* @returns {$protobuf.Writer} Writer
|
|
10274
|
+
*/
|
|
10275
|
+
ClearRepresentationOperation.encode = function encode(message, writer) {
|
|
10276
|
+
if (!writer)
|
|
10277
|
+
writer = $Writer.create();
|
|
10278
|
+
return writer;
|
|
10279
|
+
};
|
|
10280
|
+
|
|
10281
|
+
/**
|
|
10282
|
+
* Encodes the specified ClearRepresentationOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ClearRepresentationOperation.verify|verify} messages.
|
|
10283
|
+
* @function encodeDelimited
|
|
10284
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10285
|
+
* @static
|
|
10286
|
+
* @param {vertexvis.protobuf.stream.IClearRepresentationOperation} message ClearRepresentationOperation message or plain object to encode
|
|
10287
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10288
|
+
* @returns {$protobuf.Writer} Writer
|
|
10289
|
+
*/
|
|
10290
|
+
ClearRepresentationOperation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10291
|
+
return this.encode(message, writer).ldelim();
|
|
10292
|
+
};
|
|
10293
|
+
|
|
10294
|
+
/**
|
|
10295
|
+
* Decodes a ClearRepresentationOperation message from the specified reader or buffer.
|
|
10296
|
+
* @function decode
|
|
10297
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10298
|
+
* @static
|
|
10299
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10300
|
+
* @param {number} [length] Message length if known beforehand
|
|
10301
|
+
* @returns {vertexvis.protobuf.stream.ClearRepresentationOperation} ClearRepresentationOperation
|
|
10302
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10303
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10304
|
+
*/
|
|
10305
|
+
ClearRepresentationOperation.decode = function decode(reader, length) {
|
|
10306
|
+
if (!(reader instanceof $Reader))
|
|
10307
|
+
reader = $Reader.create(reader);
|
|
10308
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ClearRepresentationOperation();
|
|
10309
|
+
while (reader.pos < end) {
|
|
10310
|
+
let tag = reader.uint32();
|
|
10311
|
+
switch (tag >>> 3) {
|
|
10312
|
+
default:
|
|
10313
|
+
reader.skipType(tag & 7);
|
|
10314
|
+
break;
|
|
10315
|
+
}
|
|
10316
|
+
}
|
|
10317
|
+
return message;
|
|
10318
|
+
};
|
|
10319
|
+
|
|
10320
|
+
/**
|
|
10321
|
+
* Decodes a ClearRepresentationOperation message from the specified reader or buffer, length delimited.
|
|
10322
|
+
* @function decodeDelimited
|
|
10323
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10324
|
+
* @static
|
|
10325
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10326
|
+
* @returns {vertexvis.protobuf.stream.ClearRepresentationOperation} ClearRepresentationOperation
|
|
10327
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10328
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10329
|
+
*/
|
|
10330
|
+
ClearRepresentationOperation.decodeDelimited = function decodeDelimited(reader) {
|
|
10331
|
+
if (!(reader instanceof $Reader))
|
|
10332
|
+
reader = new $Reader(reader);
|
|
10333
|
+
return this.decode(reader, reader.uint32());
|
|
10334
|
+
};
|
|
10335
|
+
|
|
10336
|
+
/**
|
|
10337
|
+
* Verifies a ClearRepresentationOperation message.
|
|
10338
|
+
* @function verify
|
|
10339
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10340
|
+
* @static
|
|
10341
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10342
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10343
|
+
*/
|
|
10344
|
+
ClearRepresentationOperation.verify = function verify(message) {
|
|
10345
|
+
if (typeof message !== "object" || message === null)
|
|
10346
|
+
return "object expected";
|
|
10347
|
+
return null;
|
|
10348
|
+
};
|
|
10349
|
+
|
|
10350
|
+
/**
|
|
10351
|
+
* Creates a ClearRepresentationOperation message from a plain object. Also converts values to their respective internal types.
|
|
10352
|
+
* @function fromObject
|
|
10353
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10354
|
+
* @static
|
|
10355
|
+
* @param {Object.<string,*>} object Plain object
|
|
10356
|
+
* @returns {vertexvis.protobuf.stream.ClearRepresentationOperation} ClearRepresentationOperation
|
|
10357
|
+
*/
|
|
10358
|
+
ClearRepresentationOperation.fromObject = function fromObject(object) {
|
|
10359
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ClearRepresentationOperation)
|
|
10360
|
+
return object;
|
|
10361
|
+
return new $root.vertexvis.protobuf.stream.ClearRepresentationOperation();
|
|
10362
|
+
};
|
|
10363
|
+
|
|
10364
|
+
/**
|
|
10365
|
+
* Creates a plain object from a ClearRepresentationOperation message. Also converts values to other types if specified.
|
|
10366
|
+
* @function toObject
|
|
10367
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10368
|
+
* @static
|
|
10369
|
+
* @param {vertexvis.protobuf.stream.ClearRepresentationOperation} message ClearRepresentationOperation
|
|
10370
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10371
|
+
* @returns {Object.<string,*>} Plain object
|
|
10372
|
+
*/
|
|
10373
|
+
ClearRepresentationOperation.toObject = function toObject() {
|
|
10374
|
+
return {};
|
|
10375
|
+
};
|
|
10376
|
+
|
|
10377
|
+
/**
|
|
10378
|
+
* Converts this ClearRepresentationOperation to JSON.
|
|
10379
|
+
* @function toJSON
|
|
10380
|
+
* @memberof vertexvis.protobuf.stream.ClearRepresentationOperation
|
|
10381
|
+
* @instance
|
|
10382
|
+
* @returns {Object.<string,*>} JSON object
|
|
10383
|
+
*/
|
|
10384
|
+
ClearRepresentationOperation.prototype.toJSON = function toJSON() {
|
|
10385
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
10386
|
+
};
|
|
10387
|
+
|
|
10388
|
+
return ClearRepresentationOperation;
|
|
10389
|
+
})();
|
|
10390
|
+
|
|
9958
10391
|
stream.OperationType = (function() {
|
|
9959
10392
|
|
|
9960
10393
|
/**
|
|
@@ -9971,6 +10404,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9971
10404
|
* @property {vertexvis.protobuf.stream.IViewRenditionOperation|null} [viewRendition] OperationType viewRendition
|
|
9972
10405
|
* @property {vertexvis.protobuf.stream.IViewDefaultRenditionOperation|null} [viewDefaultRendition] OperationType viewDefaultRendition
|
|
9973
10406
|
* @property {vertexvis.protobuf.stream.IClearRenditionOperation|null} [clearRendition] OperationType clearRendition
|
|
10407
|
+
* @property {vertexvis.protobuf.stream.IViewRepresentationOperation|null} [viewRepresentation] OperationType viewRepresentation
|
|
10408
|
+
* @property {vertexvis.protobuf.stream.IClearRepresentationOperation|null} [clearRepresentation] OperationType clearRepresentation
|
|
9974
10409
|
*/
|
|
9975
10410
|
|
|
9976
10411
|
/**
|
|
@@ -10068,17 +10503,33 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10068
10503
|
*/
|
|
10069
10504
|
OperationType.prototype.clearRendition = null;
|
|
10070
10505
|
|
|
10506
|
+
/**
|
|
10507
|
+
* OperationType viewRepresentation.
|
|
10508
|
+
* @member {vertexvis.protobuf.stream.IViewRepresentationOperation|null|undefined} viewRepresentation
|
|
10509
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
10510
|
+
* @instance
|
|
10511
|
+
*/
|
|
10512
|
+
OperationType.prototype.viewRepresentation = null;
|
|
10513
|
+
|
|
10514
|
+
/**
|
|
10515
|
+
* OperationType clearRepresentation.
|
|
10516
|
+
* @member {vertexvis.protobuf.stream.IClearRepresentationOperation|null|undefined} clearRepresentation
|
|
10517
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
10518
|
+
* @instance
|
|
10519
|
+
*/
|
|
10520
|
+
OperationType.prototype.clearRepresentation = null;
|
|
10521
|
+
|
|
10071
10522
|
// OneOf field names bound to virtual getters and setters
|
|
10072
10523
|
let $oneOfFields;
|
|
10073
10524
|
|
|
10074
10525
|
/**
|
|
10075
10526
|
* OperationType value.
|
|
10076
|
-
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|"changeEndItem"|"viewRendition"|"viewDefaultRendition"|"clearRendition"|undefined} value
|
|
10527
|
+
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|"changeEndItem"|"viewRendition"|"viewDefaultRendition"|"clearRendition"|"viewRepresentation"|"clearRepresentation"|undefined} value
|
|
10077
10528
|
* @memberof vertexvis.protobuf.stream.OperationType
|
|
10078
10529
|
* @instance
|
|
10079
10530
|
*/
|
|
10080
10531
|
Object.defineProperty(OperationType.prototype, "value", {
|
|
10081
|
-
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom", "changeEndItem", "viewRendition", "viewDefaultRendition", "clearRendition"]),
|
|
10532
|
+
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom", "changeEndItem", "viewRendition", "viewDefaultRendition", "clearRendition", "viewRepresentation", "clearRepresentation"]),
|
|
10082
10533
|
set: $util.oneOfSetter($oneOfFields)
|
|
10083
10534
|
});
|
|
10084
10535
|
|
|
@@ -10126,6 +10577,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10126
10577
|
$root.vertexvis.protobuf.stream.ViewDefaultRenditionOperation.encode(message.viewDefaultRendition, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
10127
10578
|
if (message.clearRendition != null && Object.hasOwnProperty.call(message, "clearRendition"))
|
|
10128
10579
|
$root.vertexvis.protobuf.stream.ClearRenditionOperation.encode(message.clearRendition, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
10580
|
+
if (message.viewRepresentation != null && Object.hasOwnProperty.call(message, "viewRepresentation"))
|
|
10581
|
+
$root.vertexvis.protobuf.stream.ViewRepresentationOperation.encode(message.viewRepresentation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
10582
|
+
if (message.clearRepresentation != null && Object.hasOwnProperty.call(message, "clearRepresentation"))
|
|
10583
|
+
$root.vertexvis.protobuf.stream.ClearRepresentationOperation.encode(message.clearRepresentation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
10129
10584
|
return writer;
|
|
10130
10585
|
};
|
|
10131
10586
|
|
|
@@ -10190,6 +10645,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10190
10645
|
case 10:
|
|
10191
10646
|
message.clearRendition = $root.vertexvis.protobuf.stream.ClearRenditionOperation.decode(reader, reader.uint32());
|
|
10192
10647
|
break;
|
|
10648
|
+
case 11:
|
|
10649
|
+
message.viewRepresentation = $root.vertexvis.protobuf.stream.ViewRepresentationOperation.decode(reader, reader.uint32());
|
|
10650
|
+
break;
|
|
10651
|
+
case 12:
|
|
10652
|
+
message.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.decode(reader, reader.uint32());
|
|
10653
|
+
break;
|
|
10193
10654
|
default:
|
|
10194
10655
|
reader.skipType(tag & 7);
|
|
10195
10656
|
break;
|
|
@@ -10324,6 +10785,26 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10324
10785
|
return "clearRendition." + error;
|
|
10325
10786
|
}
|
|
10326
10787
|
}
|
|
10788
|
+
if (message.viewRepresentation != null && message.hasOwnProperty("viewRepresentation")) {
|
|
10789
|
+
if (properties.value === 1)
|
|
10790
|
+
return "value: multiple values";
|
|
10791
|
+
properties.value = 1;
|
|
10792
|
+
{
|
|
10793
|
+
let error = $root.vertexvis.protobuf.stream.ViewRepresentationOperation.verify(message.viewRepresentation);
|
|
10794
|
+
if (error)
|
|
10795
|
+
return "viewRepresentation." + error;
|
|
10796
|
+
}
|
|
10797
|
+
}
|
|
10798
|
+
if (message.clearRepresentation != null && message.hasOwnProperty("clearRepresentation")) {
|
|
10799
|
+
if (properties.value === 1)
|
|
10800
|
+
return "value: multiple values";
|
|
10801
|
+
properties.value = 1;
|
|
10802
|
+
{
|
|
10803
|
+
let error = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.verify(message.clearRepresentation);
|
|
10804
|
+
if (error)
|
|
10805
|
+
return "clearRepresentation." + error;
|
|
10806
|
+
}
|
|
10807
|
+
}
|
|
10327
10808
|
return null;
|
|
10328
10809
|
};
|
|
10329
10810
|
|
|
@@ -10389,6 +10870,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10389
10870
|
throw TypeError(".vertexvis.protobuf.stream.OperationType.clearRendition: object expected");
|
|
10390
10871
|
message.clearRendition = $root.vertexvis.protobuf.stream.ClearRenditionOperation.fromObject(object.clearRendition);
|
|
10391
10872
|
}
|
|
10873
|
+
if (object.viewRepresentation != null) {
|
|
10874
|
+
if (typeof object.viewRepresentation !== "object")
|
|
10875
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.viewRepresentation: object expected");
|
|
10876
|
+
message.viewRepresentation = $root.vertexvis.protobuf.stream.ViewRepresentationOperation.fromObject(object.viewRepresentation);
|
|
10877
|
+
}
|
|
10878
|
+
if (object.clearRepresentation != null) {
|
|
10879
|
+
if (typeof object.clearRepresentation !== "object")
|
|
10880
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.clearRepresentation: object expected");
|
|
10881
|
+
message.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.fromObject(object.clearRepresentation);
|
|
10882
|
+
}
|
|
10392
10883
|
return message;
|
|
10393
10884
|
};
|
|
10394
10885
|
|
|
@@ -10455,6 +10946,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
10455
10946
|
if (options.oneofs)
|
|
10456
10947
|
object.value = "clearRendition";
|
|
10457
10948
|
}
|
|
10949
|
+
if (message.viewRepresentation != null && message.hasOwnProperty("viewRepresentation")) {
|
|
10950
|
+
object.viewRepresentation = $root.vertexvis.protobuf.stream.ViewRepresentationOperation.toObject(message.viewRepresentation, options);
|
|
10951
|
+
if (options.oneofs)
|
|
10952
|
+
object.value = "viewRepresentation";
|
|
10953
|
+
}
|
|
10954
|
+
if (message.clearRepresentation != null && message.hasOwnProperty("clearRepresentation")) {
|
|
10955
|
+
object.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.toObject(message.clearRepresentation, options);
|
|
10956
|
+
if (options.oneofs)
|
|
10957
|
+
object.value = "clearRepresentation";
|
|
10958
|
+
}
|
|
10458
10959
|
return object;
|
|
10459
10960
|
};
|
|
10460
10961
|
|