Skip to content

Commit eef5bbd

Browse files
committed
Add latency to Assigned in proto and generated files
1 parent 521e1b8 commit eef5bbd

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

generated/api_pb.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ export class Assigned extends jspb.Message {
8484
getContext(): TxnContext | undefined;
8585
setContext(value?: TxnContext): void;
8686

87+
hasLatency(): boolean;
88+
clearLatency(): void;
89+
getLatency(): Latency | undefined;
90+
setLatency(value?: Latency): void;
91+
8792
serializeBinary(): Uint8Array;
8893
toObject(includeInstance?: boolean): Assigned.AsObject;
8994
static toObject(includeInstance: boolean, msg: Assigned): Assigned.AsObject;
@@ -98,6 +103,7 @@ export namespace Assigned {
98103
export type AsObject = {
99104
uidsMap: Array<[string, string]>,
100105
context?: TxnContext.AsObject,
106+
latency?: Latency.AsObject,
101107
}
102108
}
103109

generated/api_pb.js

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ proto.api.Assigned.prototype.toObject = function(opt_includeInstance) {
625625
proto.api.Assigned.toObject = function(includeInstance, msg) {
626626
var f, obj = {
627627
uidsMap: (f = msg.getUidsMap()) ? f.toObject(includeInstance, undefined) : [],
628-
context: (f = msg.getContext()) && proto.api.TxnContext.toObject(includeInstance, f)
628+
context: (f = msg.getContext()) && proto.api.TxnContext.toObject(includeInstance, f),
629+
latency: (f = msg.getLatency()) && proto.api.Latency.toObject(includeInstance, f)
629630
};
630631

631632
if (includeInstance) {
@@ -673,6 +674,11 @@ proto.api.Assigned.deserializeBinaryFromReader = function(msg, reader) {
673674
reader.readMessage(value,proto.api.TxnContext.deserializeBinaryFromReader);
674675
msg.setContext(value);
675676
break;
677+
case 12:
678+
var value = new proto.api.Latency;
679+
reader.readMessage(value,proto.api.Latency.deserializeBinaryFromReader);
680+
msg.setLatency(value);
681+
break;
676682
default:
677683
reader.skipField();
678684
break;
@@ -714,6 +720,14 @@ proto.api.Assigned.serializeBinaryToWriter = function(message, writer) {
714720
proto.api.TxnContext.serializeBinaryToWriter
715721
);
716722
}
723+
f = message.getLatency();
724+
if (f != null) {
725+
writer.writeMessage(
726+
12,
727+
f,
728+
proto.api.Latency.serializeBinaryToWriter
729+
);
730+
}
717731
};
718732

719733

@@ -765,6 +779,36 @@ proto.api.Assigned.prototype.hasContext = function() {
765779
};
766780

767781

782+
/**
783+
* optional Latency latency = 12;
784+
* @return {?proto.api.Latency}
785+
*/
786+
proto.api.Assigned.prototype.getLatency = function() {
787+
return /** @type{?proto.api.Latency} */ (
788+
jspb.Message.getWrapperField(this, proto.api.Latency, 12));
789+
};
790+
791+
792+
/** @param {?proto.api.Latency|undefined} value */
793+
proto.api.Assigned.prototype.setLatency = function(value) {
794+
jspb.Message.setWrapperField(this, 12, value);
795+
};
796+
797+
798+
proto.api.Assigned.prototype.clearLatency = function() {
799+
this.setLatency(undefined);
800+
};
801+
802+
803+
/**
804+
* Returns whether this field is set.
805+
* @return {!boolean}
806+
*/
807+
proto.api.Assigned.prototype.hasLatency = function() {
808+
return jspb.Message.getField(this, 12) != null;
809+
};
810+
811+
768812

769813
/**
770814
* Generated by JsPbCodeGenerator.

protos/api.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ message Response {
4848
message Assigned {
4949
map<string, string> uids = 1;
5050
TxnContext context = 2;
51+
Latency latency = 12;
5152
}
5253

5354
message Mutation {

0 commit comments

Comments
 (0)