Skip to content

Commit

Permalink
Id to ids
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuraru committed Jul 5, 2020
1 parent 8dca7ae commit de95406
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 164 deletions.
8 changes: 4 additions & 4 deletions js/protobuf.d.js
Original file line number Diff line number Diff line change
Expand Up @@ -4840,8 +4840,8 @@ export namespace syft_proto {
/** Properties of a ForceObjectDeleteMessage. */
interface IForceObjectDeleteMessage {

/** ForceObjectDeleteMessage object_id */
object_id?: (syft_proto.types.syft.v1.IId|null);
/** ForceObjectDeleteMessage object_ids */
object_ids?: (syft_proto.types.syft.v1.IId|null);
}

/** Represents a ForceObjectDeleteMessage. */
Expand All @@ -4853,8 +4853,8 @@ export namespace syft_proto {
*/
constructor(properties?: syft_proto.messaging.v1.IForceObjectDeleteMessage);

/** ForceObjectDeleteMessage object_id. */
public object_id?: (syft_proto.types.syft.v1.IId|null);
/** ForceObjectDeleteMessage object_ids. */
public object_ids?: (syft_proto.types.syft.v1.IId|null);

/**
* Creates a new ForceObjectDeleteMessage instance using the specified properties.
Expand Down
34 changes: 17 additions & 17 deletions js/protobuf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13537,7 +13537,7 @@ $root.syft_proto = (function() {
* Properties of a ForceObjectDeleteMessage.
* @memberof syft_proto.messaging.v1
* @interface IForceObjectDeleteMessage
* @property {syft_proto.types.syft.v1.IId|null} [object_id] ForceObjectDeleteMessage object_id
* @property {syft_proto.types.syft.v1.IId|null} [object_ids] ForceObjectDeleteMessage object_ids
*/

/**
Expand All @@ -13556,12 +13556,12 @@ $root.syft_proto = (function() {
}

/**
* ForceObjectDeleteMessage object_id.
* @member {syft_proto.types.syft.v1.IId|null|undefined} object_id
* ForceObjectDeleteMessage object_ids.
* @member {syft_proto.types.syft.v1.IId|null|undefined} object_ids
* @memberof syft_proto.messaging.v1.ForceObjectDeleteMessage
* @instance
*/
ForceObjectDeleteMessage.prototype.object_id = null;
ForceObjectDeleteMessage.prototype.object_ids = null;

/**
* Creates a new ForceObjectDeleteMessage instance using the specified properties.
Expand All @@ -13587,8 +13587,8 @@ $root.syft_proto = (function() {
ForceObjectDeleteMessage.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.object_id != null && message.hasOwnProperty("object_id"))
$root.syft_proto.types.syft.v1.Id.encode(message.object_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
if (message.object_ids != null && message.hasOwnProperty("object_ids"))
$root.syft_proto.types.syft.v1.Id.encode(message.object_ids, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
return writer;
};

Expand Down Expand Up @@ -13624,7 +13624,7 @@ $root.syft_proto = (function() {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.object_id = $root.syft_proto.types.syft.v1.Id.decode(reader, reader.uint32());
message.object_ids = $root.syft_proto.types.syft.v1.Id.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
Expand Down Expand Up @@ -13661,10 +13661,10 @@ $root.syft_proto = (function() {
ForceObjectDeleteMessage.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.object_id != null && message.hasOwnProperty("object_id")) {
var error = $root.syft_proto.types.syft.v1.Id.verify(message.object_id);
if (message.object_ids != null && message.hasOwnProperty("object_ids")) {
var error = $root.syft_proto.types.syft.v1.Id.verify(message.object_ids);
if (error)
return "object_id." + error;
return "object_ids." + error;
}
return null;
};
Expand All @@ -13681,10 +13681,10 @@ $root.syft_proto = (function() {
if (object instanceof $root.syft_proto.messaging.v1.ForceObjectDeleteMessage)
return object;
var message = new $root.syft_proto.messaging.v1.ForceObjectDeleteMessage();
if (object.object_id != null) {
if (typeof object.object_id !== "object")
throw TypeError(".syft_proto.messaging.v1.ForceObjectDeleteMessage.object_id: object expected");
message.object_id = $root.syft_proto.types.syft.v1.Id.fromObject(object.object_id);
if (object.object_ids != null) {
if (typeof object.object_ids !== "object")
throw TypeError(".syft_proto.messaging.v1.ForceObjectDeleteMessage.object_ids: object expected");
message.object_ids = $root.syft_proto.types.syft.v1.Id.fromObject(object.object_ids);
}
return message;
};
Expand All @@ -13703,9 +13703,9 @@ $root.syft_proto = (function() {
options = {};
var object = {};
if (options.defaults)
object.object_id = null;
if (message.object_id != null && message.hasOwnProperty("object_id"))
object.object_id = $root.syft_proto.types.syft.v1.Id.toObject(message.object_id, options);
object.object_ids = null;
if (message.object_ids != null && message.hasOwnProperty("object_ids"))
object.object_ids = $root.syft_proto.types.syft.v1.Id.toObject(message.object_ids, options);
return object;
};

Expand Down
Loading

0 comments on commit de95406

Please sign in to comment.