Skip to content

Commit 663ac22

Browse files
committed
Sync api.proto
1 parent 693464d commit 663ac22

File tree

3 files changed

+1
-35
lines changed

3 files changed

+1
-35
lines changed

generated/api_pb.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,6 @@ export class NQuad extends jspb.Message {
441441
getObjectValue(): Value | undefined;
442442
setObjectValue(value?: Value): void;
443443

444-
getLabel(): string;
445-
setLabel(value: string): void;
446-
447444
getLang(): string;
448445
setLang(value: string): void;
449446

@@ -471,7 +468,6 @@ export namespace NQuad {
471468
predicate: string,
472469
objectId: string,
473470
objectValue?: Value.AsObject,
474-
label: string,
475471
lang: string,
476472
facetsList: Array<Facet.AsObject>,
477473
namespace: number,

generated/api_pb.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3458,7 +3458,6 @@ proto.api.NQuad.toObject = function(includeInstance, msg) {
34583458
predicate: jspb.Message.getFieldWithDefault(msg, 2, ""),
34593459
objectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
34603460
objectValue: (f = msg.getObjectValue()) && proto.api.Value.toObject(includeInstance, f),
3461-
label: jspb.Message.getFieldWithDefault(msg, 5, ""),
34623461
lang: jspb.Message.getFieldWithDefault(msg, 6, ""),
34633462
facetsList: jspb.Message.toObjectList(msg.getFacetsList(),
34643463
proto.api.Facet.toObject, includeInstance),
@@ -3516,10 +3515,6 @@ proto.api.NQuad.deserializeBinaryFromReader = function(msg, reader) {
35163515
reader.readMessage(value,proto.api.Value.deserializeBinaryFromReader);
35173516
msg.setObjectValue(value);
35183517
break;
3519-
case 5:
3520-
var value = /** @type {string} */ (reader.readString());
3521-
msg.setLabel(value);
3522-
break;
35233518
case 6:
35243519
var value = /** @type {string} */ (reader.readString());
35253520
msg.setLang(value);
@@ -3591,13 +3586,6 @@ proto.api.NQuad.serializeBinaryToWriter = function(message, writer) {
35913586
proto.api.Value.serializeBinaryToWriter
35923587
);
35933588
}
3594-
f = message.getLabel();
3595-
if (f.length > 0) {
3596-
writer.writeString(
3597-
5,
3598-
f
3599-
);
3600-
}
36013589
f = message.getLang();
36023590
if (f.length > 0) {
36033591
writer.writeString(
@@ -3714,24 +3702,6 @@ proto.api.NQuad.prototype.hasObjectValue = function() {
37143702
};
37153703

37163704

3717-
/**
3718-
* optional string label = 5;
3719-
* @return {string}
3720-
*/
3721-
proto.api.NQuad.prototype.getLabel = function() {
3722-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3723-
};
3724-
3725-
3726-
/**
3727-
* @param {string} value
3728-
* @return {!proto.api.NQuad} returns this
3729-
*/
3730-
proto.api.NQuad.prototype.setLabel = function(value) {
3731-
return jspb.Message.setProto3StringField(this, 5, value);
3732-
};
3733-
3734-
37353705
/**
37363706
* optional string lang = 6;
37373707
* @return {string}

protos/api.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ message Metrics {
152152
}
153153

154154
message NQuad {
155+
reserved 5; // This was used for label.
155156
string subject = 1;
156157
string predicate = 2;
157158
string object_id = 3;
158159
Value object_value = 4;
159-
string label = 5;
160160
string lang = 6;
161161
repeated Facet facets = 7;
162162
uint64 namespace = 8;

0 commit comments

Comments
 (0)