1254 lines
37 KiB
JavaScript
1254 lines
37 KiB
JavaScript
// source: extension.proto
|
|
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @suppress {missingRequire} reports error on implicit type usages.
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
* @public
|
|
*/
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
/* eslint-disable */
|
|
// @ts-nocheck
|
|
|
|
var jspb = require('google-protobuf');
|
|
var goog = jspb;
|
|
var global =
|
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
(typeof window !== 'undefined' && window) ||
|
|
(typeof global !== 'undefined' && global) ||
|
|
(typeof self !== 'undefined' && self) ||
|
|
(function () { return this; }).call(null) ||
|
|
Function('return this')();
|
|
|
|
var base_pb = require('./base_pb.js');
|
|
goog.object.extend(proto, base_pb);
|
|
goog.exportSymbol('proto.hiddifyrpc.EditExtensionRequest', null, global);
|
|
goog.exportSymbol('proto.hiddifyrpc.Extension', null, global);
|
|
goog.exportSymbol('proto.hiddifyrpc.ExtensionActionResult', null, global);
|
|
goog.exportSymbol('proto.hiddifyrpc.ExtensionList', null, global);
|
|
goog.exportSymbol('proto.hiddifyrpc.ExtensionRequest', null, global);
|
|
goog.exportSymbol('proto.hiddifyrpc.ExtensionResponse', null, global);
|
|
goog.exportSymbol('proto.hiddifyrpc.ExtensionResponseType', null, global);
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.hiddifyrpc.ExtensionActionResult, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.displayName = 'proto.hiddifyrpc.ExtensionActionResult';
|
|
}
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.hiddifyrpc.ExtensionList.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.hiddifyrpc.ExtensionList, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.displayName = 'proto.hiddifyrpc.ExtensionList';
|
|
}
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.hiddifyrpc.EditExtensionRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.displayName = 'proto.hiddifyrpc.EditExtensionRequest';
|
|
}
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.hiddifyrpc.Extension = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.hiddifyrpc.Extension, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.hiddifyrpc.Extension.displayName = 'proto.hiddifyrpc.Extension';
|
|
}
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.hiddifyrpc.ExtensionRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.displayName = 'proto.hiddifyrpc.ExtensionRequest';
|
|
}
|
|
/**
|
|
* Generated by JsPbCodeGenerator.
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
* server response, or constructed directly in Javascript. The array is used
|
|
* in place and becomes part of the constructed object. It is not cloned.
|
|
* If no data is provided, the constructed object will be empty, but still
|
|
* valid.
|
|
* @extends {jspb.Message}
|
|
* @constructor
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.hiddifyrpc.ExtensionResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.displayName = 'proto.hiddifyrpc.ExtensionResponse';
|
|
}
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.hiddifyrpc.ExtensionActionResult.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
* the JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.hiddifyrpc.ExtensionActionResult} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
extensionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
code: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
message: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.hiddifyrpc.ExtensionActionResult}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.hiddifyrpc.ExtensionActionResult;
|
|
return proto.hiddifyrpc.ExtensionActionResult.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.hiddifyrpc.ExtensionActionResult} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.hiddifyrpc.ExtensionActionResult}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtensionId(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {!proto.hiddifyrpc.ResponseCode} */ (reader.readEnum());
|
|
msg.setCode(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setMessage(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.hiddifyrpc.ExtensionActionResult.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.hiddifyrpc.ExtensionActionResult} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getExtensionId();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCode();
|
|
if (f !== 0.0) {
|
|
writer.writeEnum(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMessage();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extension_id = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.getExtensionId = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.ExtensionActionResult} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.setExtensionId = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional ResponseCode code = 2;
|
|
* @return {!proto.hiddifyrpc.ResponseCode}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.getCode = function() {
|
|
return /** @type {!proto.hiddifyrpc.ResponseCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.hiddifyrpc.ResponseCode} value
|
|
* @return {!proto.hiddifyrpc.ExtensionActionResult} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.setCode = function(value) {
|
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string message = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.getMessage = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.ExtensionActionResult} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionActionResult.prototype.setMessage = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.repeatedFields_ = [1];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.hiddifyrpc.ExtensionList.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
* the JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.hiddifyrpc.ExtensionList} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
extensionsList: jspb.Message.toObjectList(msg.getExtensionsList(),
|
|
proto.hiddifyrpc.Extension.toObject, includeInstance)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.hiddifyrpc.ExtensionList}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.hiddifyrpc.ExtensionList;
|
|
return proto.hiddifyrpc.ExtensionList.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.hiddifyrpc.ExtensionList} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.hiddifyrpc.ExtensionList}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = new proto.hiddifyrpc.Extension;
|
|
reader.readMessage(value,proto.hiddifyrpc.Extension.deserializeBinaryFromReader);
|
|
msg.addExtensions(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.hiddifyrpc.ExtensionList.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.hiddifyrpc.ExtensionList} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getExtensionsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
1,
|
|
f,
|
|
proto.hiddifyrpc.Extension.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Extension extensions = 1;
|
|
* @return {!Array<!proto.hiddifyrpc.Extension>}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.prototype.getExtensionsList = function() {
|
|
return /** @type{!Array<!proto.hiddifyrpc.Extension>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.hiddifyrpc.Extension, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.hiddifyrpc.Extension>} value
|
|
* @return {!proto.hiddifyrpc.ExtensionList} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.prototype.setExtensionsList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.hiddifyrpc.Extension=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.hiddifyrpc.Extension}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.prototype.addExtensions = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.hiddifyrpc.Extension, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.hiddifyrpc.ExtensionList} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionList.prototype.clearExtensionsList = function() {
|
|
return this.setExtensionsList([]);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.hiddifyrpc.EditExtensionRequest.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
* the JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.hiddifyrpc.EditExtensionRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
extensionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
enable: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.hiddifyrpc.EditExtensionRequest}
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.hiddifyrpc.EditExtensionRequest;
|
|
return proto.hiddifyrpc.EditExtensionRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.hiddifyrpc.EditExtensionRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.hiddifyrpc.EditExtensionRequest}
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtensionId(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setEnable(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.hiddifyrpc.EditExtensionRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.hiddifyrpc.EditExtensionRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getExtensionId();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getEnable();
|
|
if (f) {
|
|
writer.writeBool(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extension_id = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.prototype.getExtensionId = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.EditExtensionRequest} returns this
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.prototype.setExtensionId = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool enable = 2;
|
|
* @return {boolean}
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.prototype.getEnable = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.hiddifyrpc.EditExtensionRequest} returns this
|
|
*/
|
|
proto.hiddifyrpc.EditExtensionRequest.prototype.setEnable = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.hiddifyrpc.Extension.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
* the JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.hiddifyrpc.Extension} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.Extension.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
enable: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.hiddifyrpc.Extension}
|
|
*/
|
|
proto.hiddifyrpc.Extension.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.hiddifyrpc.Extension;
|
|
return proto.hiddifyrpc.Extension.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.hiddifyrpc.Extension} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.hiddifyrpc.Extension}
|
|
*/
|
|
proto.hiddifyrpc.Extension.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setId(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setTitle(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setDescription(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setEnable(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.hiddifyrpc.Extension.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.hiddifyrpc.Extension} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.Extension.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getId();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTitle();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDescription();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getEnable();
|
|
if (f) {
|
|
writer.writeBool(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string id = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.getId = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.Extension} returns this
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.setId = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string title = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.getTitle = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.Extension} returns this
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.setTitle = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string description = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.getDescription = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.Extension} returns this
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.setDescription = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool enable = 4;
|
|
* @return {boolean}
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.getEnable = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.hiddifyrpc.Extension} returns this
|
|
*/
|
|
proto.hiddifyrpc.Extension.prototype.setEnable = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.hiddifyrpc.ExtensionRequest.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
* the JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.hiddifyrpc.ExtensionRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
extensionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : []
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.hiddifyrpc.ExtensionRequest}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.hiddifyrpc.ExtensionRequest;
|
|
return proto.hiddifyrpc.ExtensionRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.hiddifyrpc.ExtensionRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.hiddifyrpc.ExtensionRequest}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtensionId(value);
|
|
break;
|
|
case 2:
|
|
var value = msg.getDataMap();
|
|
reader.readMessage(value, function(message, reader) {
|
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
});
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.hiddifyrpc.ExtensionRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.hiddifyrpc.ExtensionRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getExtensionId();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDataMap(true);
|
|
if (f && f.getLength() > 0) {
|
|
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extension_id = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.prototype.getExtensionId = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.ExtensionRequest} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.prototype.setExtensionId = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* map<string, string> data = 2;
|
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
* empty, instead returning `undefined`
|
|
* @return {!jspb.Map<string,string>}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.prototype.getDataMap = function(opt_noLazyCreate) {
|
|
return /** @type {!jspb.Map<string,string>} */ (
|
|
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
|
|
null));
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears values from the map. The map will be non-null.
|
|
* @return {!proto.hiddifyrpc.ExtensionRequest} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionRequest.prototype.clearDataMap = function() {
|
|
this.getDataMap().clear();
|
|
return this;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* Optional fields that are not set will be set to undefined.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
* JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.hiddifyrpc.ExtensionResponse.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
* the JSPB instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.hiddifyrpc.ExtensionResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
extensionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
jsonUi: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.hiddifyrpc.ExtensionResponse}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.hiddifyrpc.ExtensionResponse;
|
|
return proto.hiddifyrpc.ExtensionResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.hiddifyrpc.ExtensionResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.hiddifyrpc.ExtensionResponse}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {!proto.hiddifyrpc.ExtensionResponseType} */ (reader.readEnum());
|
|
msg.setType(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtensionId(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setJsonUi(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.hiddifyrpc.ExtensionResponse.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.hiddifyrpc.ExtensionResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getType();
|
|
if (f !== 0.0) {
|
|
writer.writeEnum(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtensionId();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getJsonUi();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional ExtensionResponseType type = 1;
|
|
* @return {!proto.hiddifyrpc.ExtensionResponseType}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.getType = function() {
|
|
return /** @type {!proto.hiddifyrpc.ExtensionResponseType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.hiddifyrpc.ExtensionResponseType} value
|
|
* @return {!proto.hiddifyrpc.ExtensionResponse} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.setType = function(value) {
|
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extension_id = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.getExtensionId = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.ExtensionResponse} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.setExtensionId = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string json_ui = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.getJsonUi = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.hiddifyrpc.ExtensionResponse} returns this
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponse.prototype.setJsonUi = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.hiddifyrpc.ExtensionResponseType = {
|
|
NOTHING: 0,
|
|
UPDATE_UI: 1,
|
|
SHOW_DIALOG: 2,
|
|
END: 3
|
|
};
|
|
|
|
goog.object.extend(exports, proto.hiddifyrpc);
|