mirror of
https://github.com/moloch--/sliver-script
synced 2026-06-08 16:08:26 +00:00
sliver submodule v1.5.5
This commit is contained in:
+29
-75
@@ -5896,32 +5896,24 @@ export namespace clientpb {
|
||||
return Sessions.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class UpdateSession extends pb_1.Message {
|
||||
export class RenameReq extends pb_1.Message {
|
||||
constructor(data?: any[] | {
|
||||
SessionID?: string;
|
||||
BeaconID?: string;
|
||||
Name?: string;
|
||||
ReconnectInterval?: number;
|
||||
PollInterval?: number;
|
||||
Extensions?: string[];
|
||||
}) {
|
||||
super();
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], []);
|
||||
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []);
|
||||
if (!Array.isArray(data) && typeof data == "object") {
|
||||
if ("SessionID" in data && data.SessionID != undefined) {
|
||||
this.SessionID = data.SessionID;
|
||||
}
|
||||
if ("BeaconID" in data && data.BeaconID != undefined) {
|
||||
this.BeaconID = data.BeaconID;
|
||||
}
|
||||
if ("Name" in data && data.Name != undefined) {
|
||||
this.Name = data.Name;
|
||||
}
|
||||
if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) {
|
||||
this.ReconnectInterval = data.ReconnectInterval;
|
||||
}
|
||||
if ("PollInterval" in data && data.PollInterval != undefined) {
|
||||
this.PollInterval = data.PollInterval;
|
||||
}
|
||||
if ("Extensions" in data && data.Extensions != undefined) {
|
||||
this.Extensions = data.Extensions;
|
||||
}
|
||||
}
|
||||
}
|
||||
get SessionID() {
|
||||
@@ -5930,78 +5922,50 @@ export namespace clientpb {
|
||||
set SessionID(value: string) {
|
||||
pb_1.Message.setField(this, 1, value);
|
||||
}
|
||||
get Name() {
|
||||
get BeaconID() {
|
||||
return pb_1.Message.getField(this, 2) as string;
|
||||
}
|
||||
set Name(value: string) {
|
||||
set BeaconID(value: string) {
|
||||
pb_1.Message.setField(this, 2, value);
|
||||
}
|
||||
get ReconnectInterval() {
|
||||
return pb_1.Message.getField(this, 3) as number;
|
||||
get Name() {
|
||||
return pb_1.Message.getField(this, 3) as string;
|
||||
}
|
||||
set ReconnectInterval(value: number) {
|
||||
set Name(value: string) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get PollInterval() {
|
||||
return pb_1.Message.getField(this, 4) as number;
|
||||
}
|
||||
set PollInterval(value: number) {
|
||||
pb_1.Message.setField(this, 4, value);
|
||||
}
|
||||
get Extensions() {
|
||||
return pb_1.Message.getField(this, 5) as string[];
|
||||
}
|
||||
set Extensions(value: string[]) {
|
||||
pb_1.Message.setField(this, 5, value);
|
||||
}
|
||||
static fromObject(data: {
|
||||
SessionID?: string;
|
||||
BeaconID?: string;
|
||||
Name?: string;
|
||||
ReconnectInterval?: number;
|
||||
PollInterval?: number;
|
||||
Extensions?: string[];
|
||||
}) {
|
||||
const message = new UpdateSession({});
|
||||
const message = new RenameReq({});
|
||||
if (data.SessionID != null) {
|
||||
message.SessionID = data.SessionID;
|
||||
}
|
||||
if (data.BeaconID != null) {
|
||||
message.BeaconID = data.BeaconID;
|
||||
}
|
||||
if (data.Name != null) {
|
||||
message.Name = data.Name;
|
||||
}
|
||||
if (data.ReconnectInterval != null) {
|
||||
message.ReconnectInterval = data.ReconnectInterval;
|
||||
}
|
||||
if (data.PollInterval != null) {
|
||||
message.PollInterval = data.PollInterval;
|
||||
}
|
||||
if (data.Extensions != null) {
|
||||
message.Extensions = data.Extensions;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
toObject() {
|
||||
const data: {
|
||||
SessionID?: string;
|
||||
BeaconID?: string;
|
||||
Name?: string;
|
||||
ReconnectInterval?: number;
|
||||
PollInterval?: number;
|
||||
Extensions?: string[];
|
||||
} = {};
|
||||
if (this.SessionID != null) {
|
||||
data.SessionID = this.SessionID;
|
||||
}
|
||||
if (this.BeaconID != null) {
|
||||
data.BeaconID = this.BeaconID;
|
||||
}
|
||||
if (this.Name != null) {
|
||||
data.Name = this.Name;
|
||||
}
|
||||
if (this.ReconnectInterval != null) {
|
||||
data.ReconnectInterval = this.ReconnectInterval;
|
||||
}
|
||||
if (this.PollInterval != null) {
|
||||
data.PollInterval = this.PollInterval;
|
||||
}
|
||||
if (this.Extensions != null) {
|
||||
data.Extensions = this.Extensions;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
serialize(): Uint8Array;
|
||||
@@ -6010,19 +5974,15 @@ export namespace clientpb {
|
||||
const writer = w || new pb_1.BinaryWriter();
|
||||
if (typeof this.SessionID === "string" && this.SessionID.length)
|
||||
writer.writeString(1, this.SessionID);
|
||||
if (typeof this.BeaconID === "string" && this.BeaconID.length)
|
||||
writer.writeString(2, this.BeaconID);
|
||||
if (typeof this.Name === "string" && this.Name.length)
|
||||
writer.writeString(2, this.Name);
|
||||
if (this.ReconnectInterval !== undefined)
|
||||
writer.writeInt64(3, this.ReconnectInterval);
|
||||
if (this.PollInterval !== undefined)
|
||||
writer.writeInt64(4, this.PollInterval);
|
||||
if (this.Extensions !== undefined)
|
||||
writer.writeRepeatedString(5, this.Extensions);
|
||||
writer.writeString(3, this.Name);
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdateSession {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateSession();
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RenameReq {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RenameReq();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
@@ -6031,16 +5991,10 @@ export namespace clientpb {
|
||||
message.SessionID = reader.readString();
|
||||
break;
|
||||
case 2:
|
||||
message.Name = reader.readString();
|
||||
message.BeaconID = reader.readString();
|
||||
break;
|
||||
case 3:
|
||||
message.ReconnectInterval = reader.readInt64();
|
||||
break;
|
||||
case 4:
|
||||
message.PollInterval = reader.readInt64();
|
||||
break;
|
||||
case 5:
|
||||
pb_1.Message.addToRepeatedField(message, 5, reader.readString());
|
||||
message.Name = reader.readString();
|
||||
break;
|
||||
default: reader.skipField();
|
||||
}
|
||||
@@ -6050,8 +6004,8 @@ export namespace clientpb {
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateSession {
|
||||
return UpdateSession.deserialize(bytes);
|
||||
static deserializeBinary(bytes: Uint8Array): RenameReq {
|
||||
return RenameReq.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class GenerateReq extends pb_1.Message {
|
||||
|
||||
+42
-128
@@ -75,6 +75,7 @@ goog.exportSymbol('proto.clientpb.OutputFormat', null, global);
|
||||
goog.exportSymbol('proto.clientpb.PivotGraph', null, global);
|
||||
goog.exportSymbol('proto.clientpb.PivotGraphEntry', null, global);
|
||||
goog.exportSymbol('proto.clientpb.RegenerateReq', null, global);
|
||||
goog.exportSymbol('proto.clientpb.RenameReq', null, global);
|
||||
goog.exportSymbol('proto.clientpb.Session', null, global);
|
||||
goog.exportSymbol('proto.clientpb.Sessions', null, global);
|
||||
goog.exportSymbol('proto.clientpb.ShellcodeRDI', null, global);
|
||||
@@ -85,7 +86,6 @@ goog.exportSymbol('proto.clientpb.StagerListenerReq', null, global);
|
||||
goog.exportSymbol('proto.clientpb.TCPPivot', null, global);
|
||||
goog.exportSymbol('proto.clientpb.TCPPivotReq', null, global);
|
||||
goog.exportSymbol('proto.clientpb.UniqueWGIP', null, global);
|
||||
goog.exportSymbol('proto.clientpb.UpdateSession', null, global);
|
||||
goog.exportSymbol('proto.clientpb.Version', null, global);
|
||||
goog.exportSymbol('proto.clientpb.WGClientConfig', null, global);
|
||||
goog.exportSymbol('proto.clientpb.WGListener', null, global);
|
||||
@@ -861,16 +861,16 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.clientpb.UpdateSession = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.UpdateSession.repeatedFields_, null);
|
||||
proto.clientpb.RenameReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.clientpb.UpdateSession, jspb.Message);
|
||||
goog.inherits(proto.clientpb.RenameReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.clientpb.UpdateSession.displayName = 'proto.clientpb.UpdateSession';
|
||||
proto.clientpb.RenameReq.displayName = 'proto.clientpb.RenameReq';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@@ -11426,13 +11426,6 @@ proto.clientpb.Sessions.prototype.clearSessionsList = function() {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* List of repeated fields within this message type.
|
||||
* @private {!Array<number>}
|
||||
* @const
|
||||
*/
|
||||
proto.clientpb.UpdateSession.repeatedFields_ = [5];
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
@@ -11448,8 +11441,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.clientpb.UpdateSession.toObject(opt_includeInstance, this);
|
||||
proto.clientpb.RenameReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.clientpb.RenameReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@@ -11458,17 +11451,15 @@ proto.clientpb.UpdateSession.prototype.toObject = function(opt_includeInstance)
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.clientpb.UpdateSession} msg The msg instance to transform.
|
||||
* @param {!proto.clientpb.RenameReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.clientpb.UpdateSession.toObject = function(includeInstance, msg) {
|
||||
proto.clientpb.RenameReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
sessionid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
reconnectinterval: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||
pollinterval: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||
extensionsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
||||
beaconid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
name: jspb.Message.getFieldWithDefault(msg, 3, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@@ -11482,23 +11473,23 @@ proto.clientpb.UpdateSession.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.clientpb.UpdateSession}
|
||||
* @return {!proto.clientpb.RenameReq}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.deserializeBinary = function(bytes) {
|
||||
proto.clientpb.RenameReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.clientpb.UpdateSession;
|
||||
return proto.clientpb.UpdateSession.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.clientpb.RenameReq;
|
||||
return proto.clientpb.RenameReq.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.clientpb.UpdateSession} msg The message object to deserialize into.
|
||||
* @param {!proto.clientpb.RenameReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.clientpb.UpdateSession}
|
||||
* @return {!proto.clientpb.RenameReq}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.clientpb.RenameReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@@ -11511,19 +11502,11 @@ proto.clientpb.UpdateSession.deserializeBinaryFromReader = function(msg, reader)
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setName(value);
|
||||
msg.setBeaconid(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setReconnectinterval(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setPollinterval(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addExtensions(value);
|
||||
msg.setName(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
@@ -11538,9 +11521,9 @@ proto.clientpb.UpdateSession.deserializeBinaryFromReader = function(msg, reader)
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.serializeBinary = function() {
|
||||
proto.clientpb.RenameReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.clientpb.UpdateSession.serializeBinaryToWriter(this, writer);
|
||||
proto.clientpb.RenameReq.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@@ -11548,11 +11531,11 @@ proto.clientpb.UpdateSession.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.clientpb.UpdateSession} message
|
||||
* @param {!proto.clientpb.RenameReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.clientpb.UpdateSession.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.clientpb.RenameReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getSessionid();
|
||||
if (f.length > 0) {
|
||||
@@ -11561,31 +11544,17 @@ proto.clientpb.UpdateSession.serializeBinaryToWriter = function(message, writer)
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getName();
|
||||
f = message.getBeaconid();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getReconnectinterval();
|
||||
if (f !== 0) {
|
||||
writer.writeInt64(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getPollinterval();
|
||||
if (f !== 0) {
|
||||
writer.writeInt64(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getExtensionsList();
|
||||
f = message.getName();
|
||||
if (f.length > 0) {
|
||||
writer.writeRepeatedString(
|
||||
5,
|
||||
writer.writeString(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
@@ -11596,108 +11565,53 @@ proto.clientpb.UpdateSession.serializeBinaryToWriter = function(message, writer)
|
||||
* optional string SessionID = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.getSessionid = function() {
|
||||
proto.clientpb.RenameReq.prototype.getSessionid = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
* @return {!proto.clientpb.RenameReq} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.setSessionid = function(value) {
|
||||
proto.clientpb.RenameReq.prototype.setSessionid = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string Name = 2;
|
||||
* optional string BeaconID = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.getName = function() {
|
||||
proto.clientpb.RenameReq.prototype.getBeaconid = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
* @return {!proto.clientpb.RenameReq} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.setName = function(value) {
|
||||
proto.clientpb.RenameReq.prototype.setBeaconid = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int64 ReconnectInterval = 3;
|
||||
* @return {number}
|
||||
* optional string Name = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.getReconnectinterval = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.setReconnectinterval = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int64 PollInterval = 4;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.getPollinterval = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.setPollinterval = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated string Extensions = 5;
|
||||
* @return {!Array<string>}
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.getExtensionsList = function() {
|
||||
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Array<string>} value
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.setExtensionsList = function(value) {
|
||||
return jspb.Message.setField(this, 5, value || []);
|
||||
proto.clientpb.RenameReq.prototype.getName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
* @return {!proto.clientpb.RenameReq} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.addExtensions = function(value, opt_index) {
|
||||
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the list making it empty but non-null.
|
||||
* @return {!proto.clientpb.UpdateSession} returns this
|
||||
*/
|
||||
proto.clientpb.UpdateSession.prototype.clearExtensionsList = function() {
|
||||
return this.setExtensionsList([]);
|
||||
proto.clientpb.RenameReq.prototype.setName = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
+26
-13
@@ -62,6 +62,24 @@ export namespace rpcpb {
|
||||
responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()),
|
||||
responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes))
|
||||
},
|
||||
Reconfigure: {
|
||||
path: "/rpcpb.SliverRPC/Reconfigure",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestSerialize: (message: dependency_2.sliverpb.ReconfigureReq) => Buffer.from(message.serialize()),
|
||||
requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ReconfigureReq.deserialize(new Uint8Array(bytes)),
|
||||
responseSerialize: (message: dependency_2.sliverpb.Reconfigure) => Buffer.from(message.serialize()),
|
||||
responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Reconfigure.deserialize(new Uint8Array(bytes))
|
||||
},
|
||||
Rename: {
|
||||
path: "/rpcpb.SliverRPC/Rename",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestSerialize: (message: dependency_3.clientpb.RenameReq) => Buffer.from(message.serialize()),
|
||||
requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.RenameReq.deserialize(new Uint8Array(bytes)),
|
||||
responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()),
|
||||
responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes))
|
||||
},
|
||||
GetSessions: {
|
||||
path: "/rpcpb.SliverRPC/GetSessions",
|
||||
requestStream: false,
|
||||
@@ -71,15 +89,6 @@ export namespace rpcpb {
|
||||
responseSerialize: (message: dependency_3.clientpb.Sessions) => Buffer.from(message.serialize()),
|
||||
responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Sessions.deserialize(new Uint8Array(bytes))
|
||||
},
|
||||
UpdateSession: {
|
||||
path: "/rpcpb.SliverRPC/UpdateSession",
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestSerialize: (message: dependency_3.clientpb.UpdateSession) => Buffer.from(message.serialize()),
|
||||
requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.UpdateSession.deserialize(new Uint8Array(bytes)),
|
||||
responseSerialize: (message: dependency_3.clientpb.Session) => Buffer.from(message.serialize()),
|
||||
responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Session.deserialize(new Uint8Array(bytes))
|
||||
},
|
||||
GetBeacons: {
|
||||
path: "/rpcpb.SliverRPC/GetBeacons",
|
||||
requestStream: false,
|
||||
@@ -1102,8 +1111,9 @@ export namespace rpcpb {
|
||||
abstract GetVersion(call: grpc_1.ServerUnaryCall<dependency_1.commonpb.Empty, dependency_3.clientpb.Version>, callback: grpc_1.sendUnaryData<dependency_3.clientpb.Version>): void;
|
||||
abstract GetOperators(call: grpc_1.ServerUnaryCall<dependency_1.commonpb.Empty, dependency_3.clientpb.Operators>, callback: grpc_1.sendUnaryData<dependency_3.clientpb.Operators>): void;
|
||||
abstract Kill(call: grpc_1.ServerUnaryCall<dependency_2.sliverpb.KillReq, dependency_1.commonpb.Empty>, callback: grpc_1.sendUnaryData<dependency_1.commonpb.Empty>): void;
|
||||
abstract Reconfigure(call: grpc_1.ServerUnaryCall<dependency_2.sliverpb.ReconfigureReq, dependency_2.sliverpb.Reconfigure>, callback: grpc_1.sendUnaryData<dependency_2.sliverpb.Reconfigure>): void;
|
||||
abstract Rename(call: grpc_1.ServerUnaryCall<dependency_3.clientpb.RenameReq, dependency_1.commonpb.Empty>, callback: grpc_1.sendUnaryData<dependency_1.commonpb.Empty>): void;
|
||||
abstract GetSessions(call: grpc_1.ServerUnaryCall<dependency_1.commonpb.Empty, dependency_3.clientpb.Sessions>, callback: grpc_1.sendUnaryData<dependency_3.clientpb.Sessions>): void;
|
||||
abstract UpdateSession(call: grpc_1.ServerUnaryCall<dependency_3.clientpb.UpdateSession, dependency_3.clientpb.Session>, callback: grpc_1.sendUnaryData<dependency_3.clientpb.Session>): void;
|
||||
abstract GetBeacons(call: grpc_1.ServerUnaryCall<dependency_1.commonpb.Empty, dependency_3.clientpb.Beacons>, callback: grpc_1.sendUnaryData<dependency_3.clientpb.Beacons>): void;
|
||||
abstract GetBeacon(call: grpc_1.ServerUnaryCall<dependency_3.clientpb.Beacon, dependency_3.clientpb.Beacon>, callback: grpc_1.sendUnaryData<dependency_3.clientpb.Beacon>): void;
|
||||
abstract RmBeacon(call: grpc_1.ServerUnaryCall<dependency_3.clientpb.Beacon, dependency_1.commonpb.Empty>, callback: grpc_1.sendUnaryData<dependency_1.commonpb.Empty>): void;
|
||||
@@ -1231,12 +1241,15 @@ export namespace rpcpb {
|
||||
Kill: GrpcUnaryServiceInterface<dependency_2.sliverpb.KillReq, dependency_1.commonpb.Empty> = (message: dependency_2.sliverpb.KillReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.commonpb.Empty>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.commonpb.Empty>, callback?: grpc_1.requestCallback<dependency_1.commonpb.Empty>): grpc_1.ClientUnaryCall => {
|
||||
return super.Kill(message, metadata, options, callback);
|
||||
};
|
||||
Reconfigure: GrpcUnaryServiceInterface<dependency_2.sliverpb.ReconfigureReq, dependency_2.sliverpb.Reconfigure> = (message: dependency_2.sliverpb.ReconfigureReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_2.sliverpb.Reconfigure>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_2.sliverpb.Reconfigure>, callback?: grpc_1.requestCallback<dependency_2.sliverpb.Reconfigure>): grpc_1.ClientUnaryCall => {
|
||||
return super.Reconfigure(message, metadata, options, callback);
|
||||
};
|
||||
Rename: GrpcUnaryServiceInterface<dependency_3.clientpb.RenameReq, dependency_1.commonpb.Empty> = (message: dependency_3.clientpb.RenameReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.commonpb.Empty>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.commonpb.Empty>, callback?: grpc_1.requestCallback<dependency_1.commonpb.Empty>): grpc_1.ClientUnaryCall => {
|
||||
return super.Rename(message, metadata, options, callback);
|
||||
};
|
||||
GetSessions: GrpcUnaryServiceInterface<dependency_1.commonpb.Empty, dependency_3.clientpb.Sessions> = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_3.clientpb.Sessions>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_3.clientpb.Sessions>, callback?: grpc_1.requestCallback<dependency_3.clientpb.Sessions>): grpc_1.ClientUnaryCall => {
|
||||
return super.GetSessions(message, metadata, options, callback);
|
||||
};
|
||||
UpdateSession: GrpcUnaryServiceInterface<dependency_3.clientpb.UpdateSession, dependency_3.clientpb.Session> = (message: dependency_3.clientpb.UpdateSession, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_3.clientpb.Session>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_3.clientpb.Session>, callback?: grpc_1.requestCallback<dependency_3.clientpb.Session>): grpc_1.ClientUnaryCall => {
|
||||
return super.UpdateSession(message, metadata, options, callback);
|
||||
};
|
||||
GetBeacons: GrpcUnaryServiceInterface<dependency_1.commonpb.Empty, dependency_3.clientpb.Beacons> = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_3.clientpb.Beacons>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_3.clientpb.Beacons>, callback?: grpc_1.requestCallback<dependency_3.clientpb.Beacons>): grpc_1.ClientUnaryCall => {
|
||||
return super.GetBeacons(message, metadata, options, callback);
|
||||
};
|
||||
|
||||
@@ -424,15 +424,15 @@ function deserialize_clientpb_RegenerateReq(buffer_arg) {
|
||||
return clientpb_client_pb.RegenerateReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_clientpb_Session(arg) {
|
||||
if (!(arg instanceof clientpb_client_pb.Session)) {
|
||||
throw new Error('Expected argument of type clientpb.Session');
|
||||
function serialize_clientpb_RenameReq(arg) {
|
||||
if (!(arg instanceof clientpb_client_pb.RenameReq)) {
|
||||
throw new Error('Expected argument of type clientpb.RenameReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_clientpb_Session(buffer_arg) {
|
||||
return clientpb_client_pb.Session.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_clientpb_RenameReq(buffer_arg) {
|
||||
return clientpb_client_pb.RenameReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_clientpb_Sessions(arg) {
|
||||
@@ -501,17 +501,6 @@ function deserialize_clientpb_UniqueWGIP(buffer_arg) {
|
||||
return clientpb_client_pb.UniqueWGIP.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_clientpb_UpdateSession(arg) {
|
||||
if (!(arg instanceof clientpb_client_pb.UpdateSession)) {
|
||||
throw new Error('Expected argument of type clientpb.UpdateSession');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_clientpb_UpdateSession(buffer_arg) {
|
||||
return clientpb_client_pb.UpdateSession.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_clientpb_Version(arg) {
|
||||
if (!(arg instanceof clientpb_client_pb.Version)) {
|
||||
throw new Error('Expected argument of type clientpb.Version');
|
||||
@@ -1172,6 +1161,28 @@ function deserialize_sliverpb_PwdReq(buffer_arg) {
|
||||
return sliverpb_sliver_pb.PwdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_sliverpb_Reconfigure(arg) {
|
||||
if (!(arg instanceof sliverpb_sliver_pb.Reconfigure)) {
|
||||
throw new Error('Expected argument of type sliverpb.Reconfigure');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_sliverpb_Reconfigure(buffer_arg) {
|
||||
return sliverpb_sliver_pb.Reconfigure.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_sliverpb_ReconfigureReq(arg) {
|
||||
if (!(arg instanceof sliverpb_sliver_pb.ReconfigureReq)) {
|
||||
throw new Error('Expected argument of type sliverpb.ReconfigureReq');
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_sliverpb_ReconfigureReq(buffer_arg) {
|
||||
return sliverpb_sliver_pb.ReconfigureReq.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
}
|
||||
|
||||
function serialize_sliverpb_RegisterExtension(arg) {
|
||||
if (!(arg instanceof sliverpb_sliver_pb.RegisterExtension)) {
|
||||
throw new Error('Expected argument of type sliverpb.RegisterExtension');
|
||||
@@ -1837,6 +1848,28 @@ kill: {
|
||||
responseSerialize: serialize_commonpb_Empty,
|
||||
responseDeserialize: deserialize_commonpb_Empty,
|
||||
},
|
||||
reconfigure: {
|
||||
path: '/rpcpb.SliverRPC/Reconfigure',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: sliverpb_sliver_pb.ReconfigureReq,
|
||||
responseType: sliverpb_sliver_pb.Reconfigure,
|
||||
requestSerialize: serialize_sliverpb_ReconfigureReq,
|
||||
requestDeserialize: deserialize_sliverpb_ReconfigureReq,
|
||||
responseSerialize: serialize_sliverpb_Reconfigure,
|
||||
responseDeserialize: deserialize_sliverpb_Reconfigure,
|
||||
},
|
||||
rename: {
|
||||
path: '/rpcpb.SliverRPC/Rename',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: clientpb_client_pb.RenameReq,
|
||||
responseType: commonpb_common_pb.Empty,
|
||||
requestSerialize: serialize_clientpb_RenameReq,
|
||||
requestDeserialize: deserialize_clientpb_RenameReq,
|
||||
responseSerialize: serialize_commonpb_Empty,
|
||||
responseDeserialize: deserialize_commonpb_Empty,
|
||||
},
|
||||
// *** Sessions ***
|
||||
getSessions: {
|
||||
path: '/rpcpb.SliverRPC/GetSessions',
|
||||
@@ -1849,17 +1882,6 @@ getSessions: {
|
||||
responseSerialize: serialize_clientpb_Sessions,
|
||||
responseDeserialize: deserialize_clientpb_Sessions,
|
||||
},
|
||||
updateSession: {
|
||||
path: '/rpcpb.SliverRPC/UpdateSession',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: clientpb_client_pb.UpdateSession,
|
||||
responseType: clientpb_client_pb.Session,
|
||||
requestSerialize: serialize_clientpb_UpdateSession,
|
||||
requestDeserialize: deserialize_clientpb_UpdateSession,
|
||||
responseSerialize: serialize_clientpb_Session,
|
||||
responseDeserialize: deserialize_clientpb_Session,
|
||||
},
|
||||
// *** Beacons ***
|
||||
getBeacons: {
|
||||
path: '/rpcpb.SliverRPC/GetBeacons',
|
||||
|
||||
+58
-12
@@ -14067,9 +14067,11 @@ export namespace sliverpb {
|
||||
return WGTCPForwarders.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class ReconnectIntervalReq extends pb_1.Message {
|
||||
export class ReconfigureReq extends pb_1.Message {
|
||||
constructor(data?: any[] | {
|
||||
ReconnectInterval?: number;
|
||||
BeaconInterval?: number;
|
||||
BeaconJitter?: number;
|
||||
Request?: dependency_1.commonpb.Request;
|
||||
}) {
|
||||
super();
|
||||
@@ -14078,6 +14080,12 @@ export namespace sliverpb {
|
||||
if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) {
|
||||
this.ReconnectInterval = data.ReconnectInterval;
|
||||
}
|
||||
if ("BeaconInterval" in data && data.BeaconInterval != undefined) {
|
||||
this.BeaconInterval = data.BeaconInterval;
|
||||
}
|
||||
if ("BeaconJitter" in data && data.BeaconJitter != undefined) {
|
||||
this.BeaconJitter = data.BeaconJitter;
|
||||
}
|
||||
if ("Request" in data && data.Request != undefined) {
|
||||
this.Request = data.Request;
|
||||
}
|
||||
@@ -14089,6 +14097,18 @@ export namespace sliverpb {
|
||||
set ReconnectInterval(value: number) {
|
||||
pb_1.Message.setField(this, 1, value);
|
||||
}
|
||||
get BeaconInterval() {
|
||||
return pb_1.Message.getField(this, 2) as number;
|
||||
}
|
||||
set BeaconInterval(value: number) {
|
||||
pb_1.Message.setField(this, 2, value);
|
||||
}
|
||||
get BeaconJitter() {
|
||||
return pb_1.Message.getField(this, 3) as number;
|
||||
}
|
||||
set BeaconJitter(value: number) {
|
||||
pb_1.Message.setField(this, 3, value);
|
||||
}
|
||||
get Request() {
|
||||
return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request;
|
||||
}
|
||||
@@ -14097,12 +14117,20 @@ export namespace sliverpb {
|
||||
}
|
||||
static fromObject(data: {
|
||||
ReconnectInterval?: number;
|
||||
BeaconInterval?: number;
|
||||
BeaconJitter?: number;
|
||||
Request?: ReturnType<typeof dependency_1.commonpb.Request.prototype.toObject>;
|
||||
}) {
|
||||
const message = new ReconnectIntervalReq({});
|
||||
const message = new ReconfigureReq({});
|
||||
if (data.ReconnectInterval != null) {
|
||||
message.ReconnectInterval = data.ReconnectInterval;
|
||||
}
|
||||
if (data.BeaconInterval != null) {
|
||||
message.BeaconInterval = data.BeaconInterval;
|
||||
}
|
||||
if (data.BeaconJitter != null) {
|
||||
message.BeaconJitter = data.BeaconJitter;
|
||||
}
|
||||
if (data.Request != null) {
|
||||
message.Request = dependency_1.commonpb.Request.fromObject(data.Request);
|
||||
}
|
||||
@@ -14111,11 +14139,19 @@ export namespace sliverpb {
|
||||
toObject() {
|
||||
const data: {
|
||||
ReconnectInterval?: number;
|
||||
BeaconInterval?: number;
|
||||
BeaconJitter?: number;
|
||||
Request?: ReturnType<typeof dependency_1.commonpb.Request.prototype.toObject>;
|
||||
} = {};
|
||||
if (this.ReconnectInterval != null) {
|
||||
data.ReconnectInterval = this.ReconnectInterval;
|
||||
}
|
||||
if (this.BeaconInterval != null) {
|
||||
data.BeaconInterval = this.BeaconInterval;
|
||||
}
|
||||
if (this.BeaconJitter != null) {
|
||||
data.BeaconJitter = this.BeaconJitter;
|
||||
}
|
||||
if (this.Request != null) {
|
||||
data.Request = this.Request.toObject();
|
||||
}
|
||||
@@ -14127,13 +14163,17 @@ export namespace sliverpb {
|
||||
const writer = w || new pb_1.BinaryWriter();
|
||||
if (this.ReconnectInterval !== undefined)
|
||||
writer.writeInt64(1, this.ReconnectInterval);
|
||||
if (this.BeaconInterval !== undefined)
|
||||
writer.writeInt64(2, this.BeaconInterval);
|
||||
if (this.BeaconJitter !== undefined)
|
||||
writer.writeInt64(3, this.BeaconJitter);
|
||||
if (this.Request !== undefined)
|
||||
writer.writeMessage(9, this.Request, () => this.Request.serialize(writer));
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ReconnectIntervalReq {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ReconnectIntervalReq();
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ReconfigureReq {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ReconfigureReq();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
@@ -14141,6 +14181,12 @@ export namespace sliverpb {
|
||||
case 1:
|
||||
message.ReconnectInterval = reader.readInt64();
|
||||
break;
|
||||
case 2:
|
||||
message.BeaconInterval = reader.readInt64();
|
||||
break;
|
||||
case 3:
|
||||
message.BeaconJitter = reader.readInt64();
|
||||
break;
|
||||
case 9:
|
||||
reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader));
|
||||
break;
|
||||
@@ -14152,11 +14198,11 @@ export namespace sliverpb {
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): ReconnectIntervalReq {
|
||||
return ReconnectIntervalReq.deserialize(bytes);
|
||||
static deserializeBinary(bytes: Uint8Array): ReconfigureReq {
|
||||
return ReconfigureReq.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class ReconnectInterval extends pb_1.Message {
|
||||
export class Reconfigure extends pb_1.Message {
|
||||
constructor(data?: any[] | {
|
||||
Response?: dependency_1.commonpb.Response;
|
||||
}) {
|
||||
@@ -14177,7 +14223,7 @@ export namespace sliverpb {
|
||||
static fromObject(data: {
|
||||
Response?: ReturnType<typeof dependency_1.commonpb.Response.prototype.toObject>;
|
||||
}) {
|
||||
const message = new ReconnectInterval({});
|
||||
const message = new Reconfigure({});
|
||||
if (data.Response != null) {
|
||||
message.Response = dependency_1.commonpb.Response.fromObject(data.Response);
|
||||
}
|
||||
@@ -14201,8 +14247,8 @@ export namespace sliverpb {
|
||||
if (!w)
|
||||
return writer.getResultBuffer();
|
||||
}
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ReconnectInterval {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ReconnectInterval();
|
||||
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Reconfigure {
|
||||
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Reconfigure();
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup())
|
||||
break;
|
||||
@@ -14218,8 +14264,8 @@ export namespace sliverpb {
|
||||
serializeBinary(): Uint8Array {
|
||||
return this.serialize();
|
||||
}
|
||||
static deserializeBinary(bytes: Uint8Array): ReconnectInterval {
|
||||
return ReconnectInterval.deserialize(bytes);
|
||||
static deserializeBinary(bytes: Uint8Array): Reconfigure {
|
||||
return Reconfigure.deserialize(bytes);
|
||||
}
|
||||
}
|
||||
export class PollIntervalReq extends pb_1.Message {
|
||||
|
||||
+113
-53
@@ -90,8 +90,8 @@ goog.exportSymbol('proto.sliverpb.Ps', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.PsReq', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.Pwd', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.PwdReq', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.ReconnectInterval', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.ReconnectIntervalReq', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.Reconfigure', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.ReconfigureReq', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.Register', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.RegisterExtension', null, global);
|
||||
goog.exportSymbol('proto.sliverpb.RegisterExtensionReq', null, global);
|
||||
@@ -2772,16 +2772,16 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq = function(opt_data) {
|
||||
proto.sliverpb.ReconfigureReq = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.sliverpb.ReconnectIntervalReq, jspb.Message);
|
||||
goog.inherits(proto.sliverpb.ReconfigureReq, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.displayName = 'proto.sliverpb.ReconnectIntervalReq';
|
||||
proto.sliverpb.ReconfigureReq.displayName = 'proto.sliverpb.ReconfigureReq';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@@ -2793,16 +2793,16 @@ if (goog.DEBUG && !COMPILED) {
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval = function(opt_data) {
|
||||
proto.sliverpb.Reconfigure = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.sliverpb.ReconnectInterval, jspb.Message);
|
||||
goog.inherits(proto.sliverpb.Reconfigure, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.displayName = 'proto.sliverpb.ReconnectInterval';
|
||||
proto.sliverpb.Reconfigure.displayName = 'proto.sliverpb.Reconfigure';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@@ -30334,8 +30334,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.sliverpb.ReconnectIntervalReq.toObject(opt_includeInstance, this);
|
||||
proto.sliverpb.ReconfigureReq.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.sliverpb.ReconfigureReq.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@@ -30344,13 +30344,15 @@ proto.sliverpb.ReconnectIntervalReq.prototype.toObject = function(opt_includeIns
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.sliverpb.ReconnectIntervalReq} msg The msg instance to transform.
|
||||
* @param {!proto.sliverpb.ReconfigureReq} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.toObject = function(includeInstance, msg) {
|
||||
proto.sliverpb.ReconfigureReq.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
reconnectinterval: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||
beaconinterval: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||
beaconjitter: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||
request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
@@ -30365,23 +30367,23 @@ proto.sliverpb.ReconnectIntervalReq.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.sliverpb.ReconnectIntervalReq}
|
||||
* @return {!proto.sliverpb.ReconfigureReq}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.deserializeBinary = function(bytes) {
|
||||
proto.sliverpb.ReconfigureReq.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.sliverpb.ReconnectIntervalReq;
|
||||
return proto.sliverpb.ReconnectIntervalReq.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.sliverpb.ReconfigureReq;
|
||||
return proto.sliverpb.ReconfigureReq.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.sliverpb.ReconnectIntervalReq} msg The message object to deserialize into.
|
||||
* @param {!proto.sliverpb.ReconfigureReq} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.sliverpb.ReconnectIntervalReq}
|
||||
* @return {!proto.sliverpb.ReconfigureReq}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.sliverpb.ReconfigureReq.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@@ -30392,6 +30394,14 @@ proto.sliverpb.ReconnectIntervalReq.deserializeBinaryFromReader = function(msg,
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setReconnectinterval(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setBeaconinterval(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {number} */ (reader.readInt64());
|
||||
msg.setBeaconjitter(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = new commonpb_common_pb.Request;
|
||||
reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader);
|
||||
@@ -30410,9 +30420,9 @@ proto.sliverpb.ReconnectIntervalReq.deserializeBinaryFromReader = function(msg,
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.serializeBinary = function() {
|
||||
proto.sliverpb.ReconfigureReq.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.sliverpb.ReconnectIntervalReq.serializeBinaryToWriter(this, writer);
|
||||
proto.sliverpb.ReconfigureReq.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@@ -30420,11 +30430,11 @@ proto.sliverpb.ReconnectIntervalReq.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.sliverpb.ReconnectIntervalReq} message
|
||||
* @param {!proto.sliverpb.ReconfigureReq} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.sliverpb.ReconfigureReq.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getReconnectinterval();
|
||||
if (f !== 0) {
|
||||
@@ -30433,6 +30443,20 @@ proto.sliverpb.ReconnectIntervalReq.serializeBinaryToWriter = function(message,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getBeaconinterval();
|
||||
if (f !== 0) {
|
||||
writer.writeInt64(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getBeaconjitter();
|
||||
if (f !== 0) {
|
||||
writer.writeInt64(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getRequest();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
@@ -30448,25 +30472,61 @@ proto.sliverpb.ReconnectIntervalReq.serializeBinaryToWriter = function(message,
|
||||
* optional int64 ReconnectInterval = 1;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.getReconnectinterval = function() {
|
||||
proto.sliverpb.ReconfigureReq.prototype.getReconnectinterval = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.sliverpb.ReconnectIntervalReq} returns this
|
||||
* @return {!proto.sliverpb.ReconfigureReq} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.setReconnectinterval = function(value) {
|
||||
proto.sliverpb.ReconfigureReq.prototype.setReconnectinterval = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int64 BeaconInterval = 2;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.sliverpb.ReconfigureReq.prototype.getBeaconinterval = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.sliverpb.ReconfigureReq} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconfigureReq.prototype.setBeaconinterval = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional int64 BeaconJitter = 3;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.sliverpb.ReconfigureReq.prototype.getBeaconjitter = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.sliverpb.ReconfigureReq} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconfigureReq.prototype.setBeaconjitter = function(value) {
|
||||
return jspb.Message.setProto3IntField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional commonpb.Request Request = 9;
|
||||
* @return {?proto.commonpb.Request}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.getRequest = function() {
|
||||
proto.sliverpb.ReconfigureReq.prototype.getRequest = function() {
|
||||
return /** @type{?proto.commonpb.Request} */ (
|
||||
jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9));
|
||||
};
|
||||
@@ -30474,18 +30534,18 @@ proto.sliverpb.ReconnectIntervalReq.prototype.getRequest = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.commonpb.Request|undefined} value
|
||||
* @return {!proto.sliverpb.ReconnectIntervalReq} returns this
|
||||
* @return {!proto.sliverpb.ReconfigureReq} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.setRequest = function(value) {
|
||||
proto.sliverpb.ReconfigureReq.prototype.setRequest = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.sliverpb.ReconnectIntervalReq} returns this
|
||||
* @return {!proto.sliverpb.ReconfigureReq} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.clearRequest = function() {
|
||||
proto.sliverpb.ReconfigureReq.prototype.clearRequest = function() {
|
||||
return this.setRequest(undefined);
|
||||
};
|
||||
|
||||
@@ -30494,7 +30554,7 @@ proto.sliverpb.ReconnectIntervalReq.prototype.clearRequest = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.sliverpb.ReconnectIntervalReq.prototype.hasRequest = function() {
|
||||
proto.sliverpb.ReconfigureReq.prototype.hasRequest = function() {
|
||||
return jspb.Message.getField(this, 9) != null;
|
||||
};
|
||||
|
||||
@@ -30515,8 +30575,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.sliverpb.ReconnectInterval.toObject(opt_includeInstance, this);
|
||||
proto.sliverpb.Reconfigure.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.sliverpb.Reconfigure.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@@ -30525,11 +30585,11 @@ proto.sliverpb.ReconnectInterval.prototype.toObject = function(opt_includeInstan
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.sliverpb.ReconnectInterval} msg The msg instance to transform.
|
||||
* @param {!proto.sliverpb.Reconfigure} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.toObject = function(includeInstance, msg) {
|
||||
proto.sliverpb.Reconfigure.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f)
|
||||
};
|
||||
@@ -30545,23 +30605,23 @@ proto.sliverpb.ReconnectInterval.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.sliverpb.ReconnectInterval}
|
||||
* @return {!proto.sliverpb.Reconfigure}
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.deserializeBinary = function(bytes) {
|
||||
proto.sliverpb.Reconfigure.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.sliverpb.ReconnectInterval;
|
||||
return proto.sliverpb.ReconnectInterval.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.sliverpb.Reconfigure;
|
||||
return proto.sliverpb.Reconfigure.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.sliverpb.ReconnectInterval} msg The message object to deserialize into.
|
||||
* @param {!proto.sliverpb.Reconfigure} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.sliverpb.ReconnectInterval}
|
||||
* @return {!proto.sliverpb.Reconfigure}
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.sliverpb.Reconfigure.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@@ -30586,9 +30646,9 @@ proto.sliverpb.ReconnectInterval.deserializeBinaryFromReader = function(msg, rea
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.prototype.serializeBinary = function() {
|
||||
proto.sliverpb.Reconfigure.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.sliverpb.ReconnectInterval.serializeBinaryToWriter(this, writer);
|
||||
proto.sliverpb.Reconfigure.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@@ -30596,11 +30656,11 @@ proto.sliverpb.ReconnectInterval.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.sliverpb.ReconnectInterval} message
|
||||
* @param {!proto.sliverpb.Reconfigure} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.sliverpb.Reconfigure.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getResponse();
|
||||
if (f != null) {
|
||||
@@ -30617,7 +30677,7 @@ proto.sliverpb.ReconnectInterval.serializeBinaryToWriter = function(message, wri
|
||||
* optional commonpb.Response Response = 9;
|
||||
* @return {?proto.commonpb.Response}
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.prototype.getResponse = function() {
|
||||
proto.sliverpb.Reconfigure.prototype.getResponse = function() {
|
||||
return /** @type{?proto.commonpb.Response} */ (
|
||||
jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9));
|
||||
};
|
||||
@@ -30625,18 +30685,18 @@ proto.sliverpb.ReconnectInterval.prototype.getResponse = function() {
|
||||
|
||||
/**
|
||||
* @param {?proto.commonpb.Response|undefined} value
|
||||
* @return {!proto.sliverpb.ReconnectInterval} returns this
|
||||
* @return {!proto.sliverpb.Reconfigure} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.prototype.setResponse = function(value) {
|
||||
proto.sliverpb.Reconfigure.prototype.setResponse = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.sliverpb.ReconnectInterval} returns this
|
||||
* @return {!proto.sliverpb.Reconfigure} returns this
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.prototype.clearResponse = function() {
|
||||
proto.sliverpb.Reconfigure.prototype.clearResponse = function() {
|
||||
return this.setResponse(undefined);
|
||||
};
|
||||
|
||||
@@ -30645,7 +30705,7 @@ proto.sliverpb.ReconnectInterval.prototype.clearResponse = function() {
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.sliverpb.ReconnectInterval.prototype.hasResponse = function() {
|
||||
proto.sliverpb.Reconfigure.prototype.hasResponse = function() {
|
||||
return jspb.Message.getField(this, 9) != null;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user