Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cs3org-bot committed Jan 28, 2025
1 parent 7984d22 commit cc61386
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
32 changes: 31 additions & 1 deletion proto.cs3.sharing.collaboration.v1beta1_receivedshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ proto.cs3.sharing.collaboration.v1beta1.ReceivedShare.toObject = function(includ
share: (f = msg.getShare()) && proto.cs3.sharing.collaboration.v1beta1.Share.toObject(includeInstance, f),
state: jspb.Message.getFieldWithDefault(msg, 2, 0),
mountPoint: (f = msg.getMountPoint()) && proto.cs3.storage.provider.v1beta1.Reference.toObject(includeInstance, f),
hidden: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
hidden: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
alias: jspb.Message.getFieldWithDefault(msg, 5, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -131,6 +132,10 @@ proto.cs3.sharing.collaboration.v1beta1.ReceivedShare.deserializeBinaryFromReade
var value = /** @type {boolean} */ (reader.readBool());
msg.setHidden(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setAlias(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -190,6 +195,13 @@ proto.cs3.sharing.collaboration.v1beta1.ReceivedShare.serializeBinaryToWriter =
f
);
}
f = message.getAlias();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
};


Expand Down Expand Up @@ -303,3 +315,21 @@ proto.cs3.sharing.collaboration.v1beta1.ReceivedShare.prototype.setHidden = func
};


/**
* optional string alias = 5;
* @return {string}
*/
proto.cs3.sharing.collaboration.v1beta1.ReceivedShare.prototype.getAlias = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};


/**
* @param {string} value
* @return {!proto.cs3.sharing.collaboration.v1beta1.ReceivedShare} returns this
*/
proto.cs3.sharing.collaboration.v1beta1.ReceivedShare.prototype.setAlias = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};


32 changes: 31 additions & 1 deletion proto.cs3.sharing.collaboration.v1beta1_share.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ proto.cs3.sharing.collaboration.v1beta1.Share.toObject = function(includeInstanc
creator: (f = msg.getCreator()) && proto.cs3.identity.user.v1beta1.UserId.toObject(includeInstance, f),
ctime: (f = msg.getCtime()) && proto.cs3.types.v1beta1.Timestamp.toObject(includeInstance, f),
mtime: (f = msg.getMtime()) && proto.cs3.types.v1beta1.Timestamp.toObject(includeInstance, f),
expiration: (f = msg.getExpiration()) && proto.cs3.types.v1beta1.Timestamp.toObject(includeInstance, f)
expiration: (f = msg.getExpiration()) && proto.cs3.types.v1beta1.Timestamp.toObject(includeInstance, f),
description: jspb.Message.getFieldWithDefault(msg, 10, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -166,6 +167,10 @@ proto.cs3.sharing.collaboration.v1beta1.Share.deserializeBinaryFromReader = func
reader.readMessage(value,proto.cs3.types.v1beta1.Timestamp.deserializeBinaryFromReader);
msg.setExpiration(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -267,6 +272,13 @@ proto.cs3.sharing.collaboration.v1beta1.Share.serializeBinaryToWriter = function
proto.cs3.types.v1beta1.Timestamp.serializeBinaryToWriter
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
10,
f
);
}
};


Expand Down Expand Up @@ -603,3 +615,21 @@ proto.cs3.sharing.collaboration.v1beta1.Share.prototype.hasExpiration = function
};


/**
* optional string description = 10;
* @return {string}
*/
proto.cs3.sharing.collaboration.v1beta1.Share.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};


/**
* @param {string} value
* @return {!proto.cs3.sharing.collaboration.v1beta1.Share} returns this
*/
proto.cs3.sharing.collaboration.v1beta1.Share.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 10, value);
};


0 comments on commit cc61386

Please sign in to comment.