2024-09-26 23:16:20 +02:00
( function ( ) { function r ( e , n , t ) { function o ( i , f ) { if ( ! n [ i ] ) { if ( ! e [ i ] ) { var c = "function" == typeof require && require ; if ( ! f && c ) return c ( i , ! 0 ) ; if ( u ) return u ( i , ! 0 ) ; var a = new Error ( "Cannot find module '" + i + "'" ) ; throw a . code = "MODULE_NOT_FOUND" , a } var p = n [ i ] = { exports : { } } ; e [ i ] [ 0 ] . call ( p . exports , function ( r ) { var n = e [ i ] [ 1 ] [ r ] ; return o ( n || r ) } , p , p . exports , r , e , n , t ) } return n [ i ] . exports } for ( var u = "function" == typeof require && require , i = 0 ; i < t . length ; i ++ ) o ( t [ i ] ) ; return o } return r } ) ( ) ( { 1 : [ function ( require , module , exports ) {
// source: base.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' ) ( ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.Empty' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.HelloRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.HelloResponse' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.ResponseCode' , 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 . HelloRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . HelloRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . HelloRequest . displayName = 'proto.hiddifyrpc.HelloRequest' ;
}
/ * *
* 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 . HelloResponse = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . HelloResponse , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . HelloResponse . displayName = 'proto.hiddifyrpc.HelloResponse' ;
}
/ * *
* 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 . Empty = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . Empty , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . Empty . displayName = 'proto.hiddifyrpc.Empty' ;
}
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 . HelloRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . HelloRequest . 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 . HelloRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . HelloRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
name : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
} ;
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 . HelloRequest }
* /
proto . hiddifyrpc . HelloRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . HelloRequest ;
return proto . hiddifyrpc . HelloRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . HelloRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . HelloRequest }
* /
proto . hiddifyrpc . HelloRequest . 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 . setName ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . HelloRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . HelloRequest . 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 . HelloRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . HelloRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getName ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
} ;
/ * *
* optional string name = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . HelloRequest . prototype . getName = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . HelloRequest } returns this
* /
proto . hiddifyrpc . HelloRequest . prototype . setName = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , 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 . HelloResponse . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . HelloResponse . 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 . HelloResponse } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . HelloResponse . toObject = function ( includeInstance , msg ) {
var f , obj = {
message : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
} ;
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 . HelloResponse }
* /
proto . hiddifyrpc . HelloResponse . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . HelloResponse ;
return proto . hiddifyrpc . HelloResponse . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . HelloResponse } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . HelloResponse }
* /
proto . hiddifyrpc . HelloResponse . 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 . setMessage ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . HelloResponse . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . HelloResponse . 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 . HelloResponse } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . HelloResponse . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getMessage ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
} ;
/ * *
* optional string message = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . HelloResponse . prototype . getMessage = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . HelloResponse } returns this
* /
proto . hiddifyrpc . HelloResponse . prototype . setMessage = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , 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 . Empty . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . Empty . 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 . Empty } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . Empty . toObject = function ( includeInstance , msg ) {
var f , obj = {
} ;
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 . Empty }
* /
proto . hiddifyrpc . Empty . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . Empty ;
return proto . hiddifyrpc . Empty . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . Empty } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . Empty }
* /
proto . hiddifyrpc . Empty . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . Empty . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . Empty . 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 . Empty } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . Empty . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
} ;
/ * *
* @ enum { number }
* /
proto . hiddifyrpc . ResponseCode = {
OK : 0 ,
FAILED : 1
} ;
goog . object . extend ( exports , proto . hiddifyrpc ) ;
2024-09-28 20:31:38 +02:00
} , { "google-protobuf" : 12 } ] , 2 : [ function ( require , module , exports ) {
const hiddify = require ( "./hiddify_grpc_web_pb.js" ) ;
2024-09-26 23:16:20 +02:00
const extension = require ( "./extension_grpc_web_pb.js" ) ;
const grpcServerAddress = '/' ;
2024-09-28 20:31:38 +02:00
const extensionClient = new extension . ExtensionHostServicePromiseClient ( grpcServerAddress , null , null ) ;
const hiddifyClient = new hiddify . CorePromiseClient ( grpcServerAddress , null , null ) ;
2024-09-26 23:16:20 +02:00
2024-09-28 20:31:38 +02:00
module . exports = { extensionClient , hiddifyClient } ;
} , { "./extension_grpc_web_pb.js" : 7 , "./hiddify_grpc_web_pb.js" : 10 } ] , 3 : [ function ( require , module , exports ) {
const { hiddifyClient } = require ( './client.js' ) ;
const hiddify = require ( "./hiddify_grpc_web_pb.js" ) ;
function openConnectionPage ( ) {
$ ( "#extension-list-container" ) . show ( ) ;
$ ( "#extension-page-container" ) . hide ( ) ;
$ ( "#connection-page" ) . show ( ) ;
connect ( ) ;
$ ( "#connect-button" ) . click ( async ( ) => {
const hsetting _request = new hiddify . ChangeHiddifySettingsRequest ( ) ;
hsetting _request . setHiddifySettingsJson ( $ ( "#hiddify-settings" ) . val ( ) ) ;
try {
const hres = await hiddifyClient . changeHiddifySettings ( hsetting _request , { } ) ;
} catch ( err ) {
$ ( "#hiddify-settings" ) . val ( "" )
console . log ( err )
}
const parse _request = new hiddify . ParseRequest ( ) ;
parse _request . setContent ( $ ( "#config-content" ) . val ( ) ) ;
try {
const pres = await hiddifyClient . parse ( parse _request , { } ) ;
if ( pres . getResponseCode ( ) !== hiddify . ResponseCode . OK ) {
alert ( pres . getMessage ( ) ) ;
return
}
$ ( "#config-content" ) . val ( pres . getContent ( ) ) ;
} catch ( err ) {
console . log ( err )
alert ( JSON . stringify ( err ) )
return
}
const request = new hiddify . StartRequest ( ) ;
request . setConfigContent ( $ ( "#config-content" ) . val ( ) ) ;
request . setEnableRawConfig ( false ) ;
try {
const res = await hiddifyClient . start ( request , { } ) ;
console . log ( res . getCoreState ( ) , res . getMessage ( ) )
handleCoreStatus ( res . getCoreState ( ) ) ;
} catch ( err ) {
console . log ( err )
alert ( JSON . stringify ( err ) )
return
}
} )
$ ( "#disconnect-button" ) . click ( async ( ) => {
const request = new hiddify . Empty ( ) ;
try {
const res = await hiddifyClient . stop ( request , { } ) ;
console . log ( res . getCoreState ( ) , res . getMessage ( ) )
handleCoreStatus ( res . getCoreState ( ) ) ;
} catch ( err ) {
console . log ( err )
alert ( JSON . stringify ( err ) )
return
}
} )
}
function connect ( ) {
const request = new hiddify . Empty ( ) ;
const stream = hiddifyClient . coreInfoListener ( request , { } ) ;
stream . on ( 'data' , ( response ) => {
console . log ( 'Receving ' , response ) ;
handleCoreStatus ( response ) ;
} ) ;
stream . on ( 'error' , ( err ) => {
console . error ( 'Error opening extension page:' , err ) ;
// openExtensionPage(extensionId);
} ) ;
stream . on ( 'end' , ( ) => {
console . log ( 'Stream ended' ) ;
setTimeout ( connect , 1000 ) ;
} ) ;
}
function handleCoreStatus ( status ) {
if ( status == hiddify . CoreState . STOPPED ) {
$ ( "#connection-before-connect" ) . show ( ) ;
$ ( "#connection-connecting" ) . hide ( ) ;
} else {
$ ( "#connection-before-connect" ) . hide ( ) ;
$ ( "#connection-connecting" ) . show ( ) ;
if ( status == hiddify . CoreState . STARTING ) {
$ ( "#connection-status" ) . text ( "Starting" ) ;
$ ( "#connection-status" ) . css ( "color" , "yellow" ) ;
} else if ( status == hiddify . CoreState . STOPPING ) {
$ ( "#connection-status" ) . text ( "Stopping" ) ;
$ ( "#connection-status" ) . css ( "color" , "red" ) ;
} else if ( status == hiddify . CoreState . STARTED ) {
$ ( "#connection-status" ) . text ( "Connected" ) ;
$ ( "#connection-status" ) . css ( "color" , "green" ) ;
}
}
}
2024-09-26 23:16:20 +02:00
2024-09-28 20:31:38 +02:00
module . exports = { openConnectionPage } ;
} , { "./client.js" : 2 , "./hiddify_grpc_web_pb.js" : 10 } ] , 4 : [ function ( require , module , exports ) {
const { listExtensions } = require ( './extensionList.js' ) ;
const { openConnectionPage } = require ( './connectionPage.js' ) ;
2024-09-26 23:16:20 +02:00
window . onload = ( ) => {
listExtensions ( ) ;
2024-09-28 20:31:38 +02:00
openConnectionPage ( ) ;
2024-09-26 23:16:20 +02:00
} ;
2024-09-28 20:31:38 +02:00
} , { "./connectionPage.js" : 3 , "./extensionList.js" : 5 } ] , 5 : [ function ( require , module , exports ) {
2024-09-26 23:16:20 +02:00
2024-09-28 20:31:38 +02:00
const { extensionClient } = require ( './client.js' ) ;
const extension = require ( "./extension_grpc_web_pb.js" ) ;
2024-09-26 23:16:20 +02:00
async function listExtensions ( ) {
$ ( "#extension-list-container" ) . show ( ) ;
$ ( "#extension-page-container" ) . hide ( ) ;
2024-09-28 20:31:38 +02:00
$ ( "#connection-page" ) . show ( ) ;
2024-09-26 23:16:20 +02:00
try {
2024-09-28 20:31:38 +02:00
const extensionListContainer = document . getElementById ( 'extension-list' ) ;
2024-09-26 23:16:20 +02:00
extensionListContainer . innerHTML = '' ; // Clear previous entries
2024-09-28 20:31:38 +02:00
const response = await extensionClient . listExtensions ( new extension . Empty ( ) , { } ) ;
2024-09-26 23:16:20 +02:00
const extensionList = response . getExtensionsList ( ) ;
extensionList . forEach ( ext => {
const listItem = createExtensionListItem ( ext ) ;
extensionListContainer . appendChild ( listItem ) ;
} ) ;
} catch ( err ) {
console . error ( 'Error listing extensions:' , err ) ;
}
}
function createExtensionListItem ( ext ) {
const listItem = document . createElement ( 'li' ) ;
listItem . className = 'list-group-item d-flex justify-content-between align-items-center' ;
listItem . setAttribute ( 'data-extension-id' , ext . getId ( ) ) ;
const contentDiv = document . createElement ( 'div' ) ;
const titleElement = document . createElement ( 'span' ) ;
titleElement . innerHTML = ` <strong> ${ ext . getTitle ( ) } </strong> ` ;
contentDiv . appendChild ( titleElement ) ;
const descriptionElement = document . createElement ( 'p' ) ;
descriptionElement . className = 'mb-0' ;
descriptionElement . textContent = ext . getDescription ( ) ;
contentDiv . appendChild ( descriptionElement ) ;
2024-09-28 20:31:38 +02:00
contentDiv . style . width = "100%" ;
2024-09-26 23:16:20 +02:00
listItem . appendChild ( contentDiv ) ;
const switchDiv = createSwitchElement ( ext ) ;
listItem . appendChild ( switchDiv ) ;
const { openExtensionPage } = require ( './extensionPage.js' ) ;
2024-09-28 20:31:38 +02:00
contentDiv . addEventListener ( 'click' , ( ) => {
if ( ! ext . getEnable ( ) ) {
alert ( "Extension is not enabled" )
return
}
openExtensionPage ( ext . getId ( ) )
} ) ;
2024-09-26 23:16:20 +02:00
return listItem ;
}
function createSwitchElement ( ext ) {
const switchDiv = document . createElement ( 'div' ) ;
switchDiv . className = 'form-check form-switch' ;
const switchButton = document . createElement ( 'input' ) ;
switchButton . type = 'checkbox' ;
switchButton . className = 'form-check-input' ;
switchButton . checked = ext . getEnable ( ) ;
2024-09-28 20:31:38 +02:00
switchButton . addEventListener ( 'change' , ( e ) => {
toggleExtension ( ext . getId ( ) , switchButton . checked )
} ) ;
2024-09-26 23:16:20 +02:00
switchDiv . appendChild ( switchButton ) ;
return switchDiv ;
}
async function toggleExtension ( extensionId , enable ) {
const request = new extension . EditExtensionRequest ( ) ;
request . setExtensionId ( extensionId ) ;
request . setEnable ( enable ) ;
try {
2024-09-28 20:31:38 +02:00
await extensionClient . editExtension ( request , { } ) ;
2024-09-26 23:16:20 +02:00
console . log ( ` Extension ${ extensionId } updated to ${ enable ? 'enabled' : 'disabled' } ` ) ;
} catch ( err ) {
console . error ( 'Error updating extension status:' , err ) ;
}
2024-09-28 20:31:38 +02:00
listExtensions ( ) ;
2024-09-26 23:16:20 +02:00
}
module . exports = { listExtensions } ;
2024-09-28 20:31:38 +02:00
} , { "./client.js" : 2 , "./extensionPage.js" : 6 , "./extension_grpc_web_pb.js" : 7 } ] , 6 : [ function ( require , module , exports ) {
const { extensionClient } = require ( './client.js' ) ;
const extension = require ( "./extension_grpc_web_pb.js" ) ;
2024-09-26 23:16:20 +02:00
const { renderForm } = require ( './formRenderer.js' ) ;
const { listExtensions } = require ( './extensionList.js' ) ;
2024-09-30 23:16:24 +02:00
var currentExtensionId = undefined ;
2024-09-26 23:16:20 +02:00
function openExtensionPage ( extensionId ) {
2024-09-30 23:16:24 +02:00
currentExtensionId = extensionId ;
$ ( "#extension-list-container" ) . hide ( ) ;
$ ( "#extension-page-container" ) . show ( ) ;
$ ( "#connection-page" ) . hide ( ) ;
2024-09-28 20:31:38 +02:00
connect ( )
}
function connect ( ) {
2024-09-26 23:16:20 +02:00
const request = new extension . ExtensionRequest ( ) ;
2024-09-28 20:31:38 +02:00
request . setExtensionId ( currentExtensionId ) ;
2024-09-26 23:16:20 +02:00
2024-09-28 20:31:38 +02:00
const stream = extensionClient . connect ( request , { } ) ;
2024-09-30 23:16:24 +02:00
2024-09-26 23:16:20 +02:00
stream . on ( 'data' , ( response ) => {
2024-10-02 21:17:59 +02:00
console . log ( 'Receiving ' , response ) ;
2024-09-26 23:16:20 +02:00
if ( response . getExtensionId ( ) === currentExtensionId ) {
2024-09-30 23:16:24 +02:00
ui = JSON . parse ( response . getJsonUi ( ) )
if ( response . getType ( ) == proto . hiddifyrpc . ExtensionResponseType . SHOW _DIALOG ) {
renderForm ( ui , "dialog" , handleSubmitButtonClick , undefined ) ;
} else {
renderForm ( ui , "" , handleSubmitButtonClick , handleStopButtonClick ) ;
2024-09-26 23:16:20 +02:00
}
2024-09-30 23:16:24 +02:00
2024-09-26 23:16:20 +02:00
}
} ) ;
2024-09-30 23:16:24 +02:00
2024-09-26 23:16:20 +02:00
stream . on ( 'error' , ( err ) => {
console . error ( 'Error opening extension page:' , err ) ;
2024-09-28 20:31:38 +02:00
// openExtensionPage(extensionId);
2024-09-26 23:16:20 +02:00
} ) ;
2024-09-30 23:16:24 +02:00
2024-09-26 23:16:20 +02:00
stream . on ( 'end' , ( ) => {
console . log ( 'Stream ended' ) ;
2024-09-28 20:31:38 +02:00
setTimeout ( connect , 1000 ) ;
2024-09-30 23:16:24 +02:00
2024-09-26 23:16:20 +02:00
} ) ;
}
2024-09-30 23:16:24 +02:00
async function handleSubmitButtonClick ( event , button ) {
2024-09-26 23:16:20 +02:00
event . preventDefault ( ) ;
2024-09-28 20:31:38 +02:00
bootstrap . Modal . getOrCreateInstance ( "#extension-dialog" ) . hide ( ) ;
2024-09-30 23:16:24 +02:00
const request = new extension . SendExtensionDataRequest ( ) ;
request . setButton ( button ) ;
if ( event . type != 'hidden.bs.modal' ) {
const formData = new FormData ( event . target . closest ( 'form' ) ) ;
const datamap = request . getDataMap ( )
formData . forEach ( ( value , key ) => {
datamap . set ( key , value ) ;
} ) ;
}
2024-09-26 23:16:20 +02:00
request . setExtensionId ( currentExtensionId ) ;
try {
2024-09-28 20:31:38 +02:00
await extensionClient . submitForm ( request , { } ) ;
2024-09-26 23:16:20 +02:00
console . log ( 'Form submitted successfully.' ) ;
} catch ( err ) {
console . error ( 'Error submitting form:' , err ) ;
}
}
async function handleStopButtonClick ( event ) {
event . preventDefault ( ) ;
const request = new extension . ExtensionRequest ( ) ;
request . setExtensionId ( currentExtensionId ) ;
2024-09-30 23:16:24 +02:00
bootstrap . Modal . getOrCreateInstance ( "#extension-dialog" ) . hide ( ) ;
2024-09-26 23:16:20 +02:00
try {
2024-10-02 21:17:59 +02:00
await extensionClient . close ( request , { } ) ;
2024-09-26 23:16:20 +02:00
console . log ( 'Extension stopped successfully.' ) ;
currentExtensionId = undefined ;
listExtensions ( ) ; // Return to the extension list
} catch ( err ) {
console . error ( 'Error stopping extension:' , err ) ;
}
}
module . exports = { openExtensionPage } ;
2024-09-28 20:31:38 +02:00
} , { "./client.js" : 2 , "./extensionList.js" : 5 , "./extension_grpc_web_pb.js" : 7 , "./formRenderer.js" : 9 } ] , 7 : [ function ( require , module , exports ) {
2024-09-26 23:16:20 +02:00
/ * *
* @ fileoverview gRPC - Web generated client stub for hiddifyrpc
* @ enhanceable
* @ public
* /
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
// versions:
// protoc-gen-grpc-web v1.5.0
// protoc v5.28.0
// source: extension.proto
/* eslint-disable */
// @ts-nocheck
const grpc = { } ;
grpc . web = require ( 'grpc-web' ) ;
var base _pb = require ( './base_pb.js' )
const proto = { } ;
proto . hiddifyrpc = require ( './extension_pb.js' ) ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . ExtensionHostServiceClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . ExtensionHostServicePromiseClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . ExtensionList > }
* /
const methodDescriptor _ExtensionHostService _ListExtensions = new grpc . web . MethodDescriptor (
'/hiddifyrpc.ExtensionHostService/ListExtensions' ,
grpc . web . MethodType . UNARY ,
base _pb . Empty ,
proto . hiddifyrpc . ExtensionList ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ExtensionList . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . ExtensionList ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionList > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . ExtensionHostServiceClient . prototype . listExtensions =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/ListExtensions' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _ListExtensions ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . ExtensionList > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . ExtensionHostServicePromiseClient . prototype . listExtensions =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/ListExtensions' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _ListExtensions ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . ExtensionRequest ,
* ! proto . hiddifyrpc . ExtensionResponse > }
* /
const methodDescriptor _ExtensionHostService _Connect = new grpc . web . MethodDescriptor (
'/hiddifyrpc.ExtensionHostService/Connect' ,
grpc . web . MethodType . SERVER _STREAMING ,
proto . hiddifyrpc . ExtensionRequest ,
proto . hiddifyrpc . ExtensionResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ExtensionResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionResponse > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . ExtensionHostServiceClient . prototype . connect =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/Connect' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _Connect ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionResponse > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . ExtensionHostServicePromiseClient . prototype . connect =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/Connect' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _Connect ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . EditExtensionRequest ,
* ! proto . hiddifyrpc . ExtensionActionResult > }
* /
const methodDescriptor _ExtensionHostService _EditExtension = new grpc . web . MethodDescriptor (
'/hiddifyrpc.ExtensionHostService/EditExtension' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . EditExtensionRequest ,
proto . hiddifyrpc . ExtensionActionResult ,
/ * *
* @ param { ! proto . hiddifyrpc . EditExtensionRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ExtensionActionResult . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . EditExtensionRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . ExtensionActionResult ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionActionResult > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . ExtensionHostServiceClient . prototype . editExtension =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/EditExtension' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _EditExtension ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . EditExtensionRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . ExtensionActionResult > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . ExtensionHostServicePromiseClient . prototype . editExtension =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/EditExtension' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _EditExtension ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
2024-09-30 21:27:18 +02:00
* ! proto . hiddifyrpc . SendExtensionDataRequest ,
2024-09-26 23:16:20 +02:00
* ! proto . hiddifyrpc . ExtensionActionResult > }
* /
const methodDescriptor _ExtensionHostService _SubmitForm = new grpc . web . MethodDescriptor (
'/hiddifyrpc.ExtensionHostService/SubmitForm' ,
grpc . web . MethodType . UNARY ,
2024-09-30 21:27:18 +02:00
proto . hiddifyrpc . SendExtensionDataRequest ,
2024-09-26 23:16:20 +02:00
proto . hiddifyrpc . ExtensionActionResult ,
/ * *
2024-09-30 21:27:18 +02:00
* @ param { ! proto . hiddifyrpc . SendExtensionDataRequest } request
2024-09-26 23:16:20 +02:00
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ExtensionActionResult . deserializeBinary
) ;
/ * *
2024-09-30 21:27:18 +02:00
* @ param { ! proto . hiddifyrpc . SendExtensionDataRequest } request The
2024-09-26 23:16:20 +02:00
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . ExtensionActionResult ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionActionResult > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . ExtensionHostServiceClient . prototype . submitForm =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/SubmitForm' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _SubmitForm ,
callback ) ;
} ;
/ * *
2024-09-30 21:27:18 +02:00
* @ param { ! proto . hiddifyrpc . SendExtensionDataRequest } request The
2024-09-26 23:16:20 +02:00
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . ExtensionActionResult > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . ExtensionHostServicePromiseClient . prototype . submitForm =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/SubmitForm' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _SubmitForm ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . ExtensionRequest ,
* ! proto . hiddifyrpc . ExtensionActionResult > }
* /
2024-10-01 08:20:30 +02:00
const methodDescriptor _ExtensionHostService _Close = new grpc . web . MethodDescriptor (
'/hiddifyrpc.ExtensionHostService/Close' ,
2024-09-26 23:16:20 +02:00
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . ExtensionRequest ,
proto . hiddifyrpc . ExtensionActionResult ,
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ExtensionActionResult . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . ExtensionActionResult ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionActionResult > | undefined }
* The XHR Node Readable Stream
* /
2024-10-01 08:20:30 +02:00
proto . hiddifyrpc . ExtensionHostServiceClient . prototype . close =
2024-09-26 23:16:20 +02:00
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
2024-10-01 08:20:30 +02:00
'/hiddifyrpc.ExtensionHostService/Close' ,
2024-09-26 23:16:20 +02:00
request ,
metadata || { } ,
2024-10-01 08:20:30 +02:00
methodDescriptor _ExtensionHostService _Close ,
2024-09-26 23:16:20 +02:00
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . ExtensionActionResult > }
* Promise that resolves to the response
* /
2024-10-01 08:20:30 +02:00
proto . hiddifyrpc . ExtensionHostServicePromiseClient . prototype . close =
2024-09-26 23:16:20 +02:00
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
2024-10-01 08:20:30 +02:00
'/hiddifyrpc.ExtensionHostService/Close' ,
2024-09-26 23:16:20 +02:00
request ,
metadata || { } ,
2024-10-01 08:20:30 +02:00
methodDescriptor _ExtensionHostService _Close ) ;
2024-09-26 23:16:20 +02:00
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . ExtensionRequest ,
* ! proto . hiddifyrpc . ExtensionActionResult > }
* /
const methodDescriptor _ExtensionHostService _GetUI = new grpc . web . MethodDescriptor (
'/hiddifyrpc.ExtensionHostService/GetUI' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . ExtensionRequest ,
proto . hiddifyrpc . ExtensionActionResult ,
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ExtensionActionResult . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . ExtensionActionResult ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ExtensionActionResult > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . ExtensionHostServiceClient . prototype . getUI =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/GetUI' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _GetUI ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ExtensionRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . ExtensionActionResult > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . ExtensionHostServicePromiseClient . prototype . getUI =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.ExtensionHostService/GetUI' ,
request ,
metadata || { } ,
methodDescriptor _ExtensionHostService _GetUI ) ;
} ;
module . exports = proto . hiddifyrpc ;
2024-09-28 20:31:38 +02:00
} , { "./base_pb.js" : 1 , "./extension_pb.js" : 8 , "grpc-web" : 13 } ] , 8 : [ function ( require , module , exports ) {
2024-09-26 23:16:20 +02:00
// 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 ) ;
2024-09-30 21:27:18 +02:00
goog . exportSymbol ( 'proto.hiddifyrpc.SendExtensionDataRequest' , null , global ) ;
2024-09-26 23:16:20 +02:00
/ * *
* 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' ;
}
2024-09-30 21:27:18 +02:00
/ * *
* 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 . SendExtensionDataRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . SendExtensionDataRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . SendExtensionDataRequest . displayName = 'proto.hiddifyrpc.SendExtensionDataRequest' ;
}
2024-09-26 23:16:20 +02:00
/ * *
* 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 ;
} ;
2024-09-30 21:27:18 +02:00
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 . SendExtensionDataRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . SendExtensionDataRequest . 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 . SendExtensionDataRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SendExtensionDataRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
extensionId : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
button : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
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 . SendExtensionDataRequest }
* /
proto . hiddifyrpc . SendExtensionDataRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . SendExtensionDataRequest ;
return proto . hiddifyrpc . SendExtensionDataRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . SendExtensionDataRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . SendExtensionDataRequest }
* /
proto . hiddifyrpc . SendExtensionDataRequest . 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 {string} */ ( reader . readString ( ) ) ;
msg . setButton ( value ) ;
break ;
case 3 :
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 . SendExtensionDataRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . SendExtensionDataRequest . 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 . SendExtensionDataRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SendExtensionDataRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getExtensionId ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getButton ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getDataMap ( true ) ;
if ( f && f . getLength ( ) > 0 ) {
f . serializeBinary ( 3 , writer , jspb . BinaryWriter . prototype . writeString , jspb . BinaryWriter . prototype . writeString ) ;
}
} ;
/ * *
* optional string extension _id = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . SendExtensionDataRequest . prototype . getExtensionId = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SendExtensionDataRequest } returns this
* /
proto . hiddifyrpc . SendExtensionDataRequest . prototype . setExtensionId = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string button = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . SendExtensionDataRequest . prototype . getButton = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SendExtensionDataRequest } returns this
* /
proto . hiddifyrpc . SendExtensionDataRequest . prototype . setButton = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* map < string , string > data = 3 ;
* @ param { boolean = } opt _noLazyCreate Do not create the map if
* empty , instead returning ` undefined `
* @ return { ! jspb . Map < string , string > }
* /
proto . hiddifyrpc . SendExtensionDataRequest . prototype . getDataMap = function ( opt _noLazyCreate ) {
return /** @type {!jspb.Map<string,string>} */ (
jspb . Message . getMapField ( this , 3 , opt _noLazyCreate ,
null ) ) ;
} ;
/ * *
* Clears values from the map . The map will be non - null .
* @ return { ! proto . hiddifyrpc . SendExtensionDataRequest } returns this
* /
proto . hiddifyrpc . SendExtensionDataRequest . prototype . clearDataMap = function ( ) {
this . getDataMap ( ) . clear ( ) ;
return this ;
} ;
2024-09-26 23:16:20 +02:00
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 ) ;
2024-09-28 20:31:38 +02:00
} , { "./base_pb.js" : 1 , "google-protobuf" : 12 } ] , 9 : [ function ( require , module , exports ) {
const ansi _up = new AnsiUp ( {
escape _html : false ,
} ) ;
2024-09-26 23:16:20 +02:00
2024-09-30 23:16:24 +02:00
function renderForm ( json , dialog , submitAction , stopAction ) {
2024-09-26 23:16:20 +02:00
const container = document . getElementById ( ` extension-page-container ${ dialog } ` ) ;
const formId = ` dynamicForm ${ json . id } ${ dialog } ` ;
const existingForm = document . getElementById ( formId ) ;
if ( existingForm ) {
existingForm . remove ( ) ;
}
const form = document . createElement ( 'form' ) ;
2024-09-28 20:31:38 +02:00
container . appendChild ( form ) ;
2024-09-26 23:16:20 +02:00
form . id = formId ;
if ( dialog === "dialog" ) {
document . getElementById ( "modalLabel" ) . textContent = json . title ;
} else {
const titleElement = createTitleElement ( json ) ;
2024-10-02 21:17:59 +02:00
const stopBtn = document . createElement ( 'button' ) ;
stopBtn . type = 'button' ;
stopBtn . className = 'btn btn-danger' ;
stopBtn . textContent = 'Close' ;
stopBtn . addEventListener ( 'click' , stopAction ) ;
form . appendChild ( stopBtn ) ;
2024-09-26 23:16:20 +02:00
form . appendChild ( titleElement ) ;
}
2024-09-30 23:16:24 +02:00
addElementsToForm ( form , json , submitAction ) ;
2024-09-26 23:16:20 +02:00
if ( dialog === "dialog" ) {
document . getElementById ( "modal-footer" ) . innerHTML = '' ;
2024-09-30 23:16:24 +02:00
// if ($(form.lastChild).find("button").length > 0) {
// document.getElementById("modal-footer").appendChild(form.lastChild);
// }
2024-09-30 21:10:33 +02:00
const extensionDialog = document . getElementById ( "extension-dialog" ) ;
const dialog = bootstrap . Modal . getOrCreateInstance ( extensionDialog ) ;
dialog . show ( ) ;
2024-09-30 23:16:24 +02:00
extensionDialog . addEventListener ( "hidden.bs.modal" , ( e ) => submitAction ( e , "CloseDialog" ) ) ;
2024-09-26 23:16:20 +02:00
}
2024-09-28 20:31:38 +02:00
2024-09-26 23:16:20 +02:00
}
2024-09-30 23:16:24 +02:00
function addElementsToForm ( form , json , submitAction ) {
2024-09-26 23:16:20 +02:00
const description = document . createElement ( 'p' ) ;
description . textContent = json . description ;
form . appendChild ( description ) ;
2024-09-28 20:31:38 +02:00
if ( json . fields ) {
json . fields . forEach ( field => {
2024-09-30 23:16:24 +02:00
div = document . createElement ( "div" )
div . classList . add ( "row" )
form . appendChild ( div )
for ( let i = 0 ; i < field . length ; i ++ ) {
const formGroup = createFormGroup ( field [ i ] , submitAction ) ;
formGroup . classList . add ( "col" )
div . appendChild ( formGroup ) ;
}
2024-09-28 20:31:38 +02:00
} ) ;
}
2024-09-26 23:16:20 +02:00
return form ;
}
function createTitleElement ( json ) {
const title = document . createElement ( 'h1' ) ;
title . textContent = json . title ;
return title ;
}
2024-09-30 23:16:24 +02:00
function createFormGroup ( field , submitAction ) {
2024-09-26 23:16:20 +02:00
const formGroup = document . createElement ( 'div' ) ;
formGroup . classList . add ( 'mb-3' ) ;
2024-09-30 23:16:24 +02:00
if ( field . type == "Button" ) {
const button = document . createElement ( 'button' ) ;
button . textContent = field . label ;
button . name = field . key
button . classList . add ( 'btn' ) ;
if ( field . key == "Submit" ) {
button . classList . add ( 'btn-primary' ) ;
} else if ( field . key == "Cancel" ) {
button . classList . add ( 'btn-secondary' ) ;
} else {
button . classList . add ( 'btn' , 'btn-outline-secondary' ) ;
}
button . addEventListener ( 'click' , ( e ) => submitAction ( e , field . key ) ) ;
formGroup . appendChild ( button ) ;
} else {
if ( field . label && ! field . labelHidden ) {
const label = document . createElement ( 'label' ) ;
label . textContent = field . label ;
label . setAttribute ( 'for' , field . key ) ;
formGroup . appendChild ( label ) ;
}
2024-09-26 23:16:20 +02:00
2024-09-30 23:16:24 +02:00
const input = createInputElement ( field ) ;
formGroup . appendChild ( input ) ;
2024-09-26 23:16:20 +02:00
}
return formGroup ;
}
function createInputElement ( field ) {
let input ;
switch ( field . type ) {
2024-09-28 20:31:38 +02:00
case "Console" :
input = document . createElement ( 'pre' ) ;
input . innerHTML = ansi _up . ansi _to _html ( field . value || field . placeholder || '' ) ;
input . style . maxHeight = field . lines * 20 + 'px' ;
break ;
2024-09-26 23:16:20 +02:00
case "TextArea" :
input = document . createElement ( 'textarea' ) ;
input . rows = field . lines || 3 ;
input . textContent = field . value || '' ;
break ;
case "Checkbox" :
case "RadioButton" :
input = createCheckboxOrRadioGroup ( field ) ;
break ;
case "Switch" :
input = createSwitchElement ( field ) ;
break ;
case "Select" :
input = document . createElement ( 'select' ) ;
field . items . forEach ( item => {
const option = document . createElement ( 'option' ) ;
option . value = item . value ;
option . text = item . label ;
input . appendChild ( option ) ;
} ) ;
break ;
default :
input = document . createElement ( 'input' ) ;
input . type = field . type . toLowerCase ( ) ;
input . value = field . value ;
break ;
}
input . id = field . key ;
input . name = field . key ;
if ( field . readOnly ) input . readOnly = true ;
if ( field . type == "Checkbox" || field . type == "RadioButton" || field . type == "Switch" ) {
} else {
if ( field . required ) input . required = true ;
input . classList . add ( 'form-control' ) ;
if ( field . placeholder ) input . placeholder = field . placeholder ;
}
return input ;
}
function createCheckboxOrRadioGroup ( field ) {
const wrapper = document . createDocumentFragment ( ) ;
field . items . forEach ( item => {
const inputWrapper = document . createElement ( 'div' ) ;
inputWrapper . classList . add ( 'form-check' ) ;
const input = document . createElement ( 'input' ) ;
input . type = field . type === "Checkbox" ? 'checkbox' : 'radio' ;
input . classList . add ( 'form-check-input' ) ;
input . id = ` ${ field . key } _ ${ item . value } ` ;
input . name = field . key ; // Grouping by name for radio buttons
input . value = item . value ;
input . checked = field . value === item . value ;
const itemLabel = document . createElement ( 'label' ) ;
itemLabel . classList . add ( 'form-check-label' ) ;
itemLabel . setAttribute ( 'for' , input . id ) ;
itemLabel . textContent = item . label ;
inputWrapper . appendChild ( input ) ;
inputWrapper . appendChild ( itemLabel ) ;
wrapper . appendChild ( inputWrapper ) ;
} ) ;
return wrapper ;
}
function createSwitchElement ( field ) {
const switchWrapper = document . createElement ( 'div' ) ;
switchWrapper . classList . add ( 'form-check' , 'form-switch' ) ;
const input = document . createElement ( 'input' ) ;
input . type = 'checkbox' ;
input . classList . add ( 'form-check-input' ) ;
input . setAttribute ( 'role' , 'switch' ) ;
input . id = field . key ;
input . checked = field . value === "true" ;
const label = document . createElement ( 'label' ) ;
label . classList . add ( 'form-check-label' ) ;
label . setAttribute ( 'for' , field . key ) ;
label . textContent = field . label ;
switchWrapper . appendChild ( input ) ;
switchWrapper . appendChild ( label ) ;
return switchWrapper ;
}
2024-09-28 20:31:38 +02:00
function createButtonGroup ( json , submitAction , cancelAction ) {
2024-09-26 23:16:20 +02:00
const buttonGroup = document . createElement ( 'div' ) ;
buttonGroup . classList . add ( 'btn-group' ) ;
2024-09-28 20:31:38 +02:00
json . buttons . forEach ( buttonText => {
const btn = document . createElement ( 'button' ) ;
2024-09-30 23:16:24 +02:00
btn . classList . add ( 'btn' , "btn-default" ) ;
2024-09-28 20:31:38 +02:00
buttonGroup . appendChild ( btn ) ;
btn . textContent = buttonText
2024-09-30 23:16:24 +02:00
if ( buttonText == "Cancel" ) {
btn . classList . add ( 'btn-secondary' ) ;
2024-09-28 20:31:38 +02:00
btn . addEventListener ( 'click' , cancelAction ) ;
2024-09-30 23:16:24 +02:00
} else {
if ( buttonText == "Submit" || buttonText == "Ok" )
2024-09-28 20:31:38 +02:00
btn . classList . add ( 'btn-primary' ) ;
btn . addEventListener ( 'click' , submitAction ) ;
}
2024-09-30 23:16:24 +02:00
2024-09-28 20:31:38 +02:00
} )
2024-09-26 23:16:20 +02:00
return buttonGroup ;
}
module . exports = { renderForm } ;
2024-09-28 20:31:38 +02:00
} , { } ] , 10 : [ function ( require , module , exports ) {
/ * *
* @ fileoverview gRPC - Web generated client stub for hiddifyrpc
* @ enhanceable
* @ public
* /
2024-09-26 23:16:20 +02:00
2024-09-28 20:31:38 +02:00
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
// versions:
// protoc-gen-grpc-web v1.5.0
// protoc v5.28.0
// source: hiddify.proto
2024-09-26 23:16:20 +02:00
2024-09-28 20:31:38 +02:00
/* eslint-disable */
// @ts-nocheck
const grpc = { } ;
grpc . web = require ( 'grpc-web' ) ;
var base _pb = require ( './base_pb.js' )
const proto = { } ;
proto . hiddifyrpc = require ( './hiddify_pb.js' ) ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . HelloClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . HelloPromiseClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . HelloRequest ,
* ! proto . hiddifyrpc . HelloResponse > }
* /
const methodDescriptor _Hello _SayHello = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Hello/SayHello' ,
grpc . web . MethodType . UNARY ,
base _pb . HelloRequest ,
base _pb . HelloResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . HelloRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
base _pb . HelloResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . HelloRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . HelloResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . HelloResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . HelloClient . prototype . sayHello =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Hello/SayHello' ,
request ,
metadata || { } ,
methodDescriptor _Hello _SayHello ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . HelloRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . HelloResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . HelloPromiseClient . prototype . sayHello =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Hello/SayHello' ,
request ,
metadata || { } ,
methodDescriptor _Hello _SayHello ) ;
} ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . CoreClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . CorePromiseClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . StartRequest ,
* ! proto . hiddifyrpc . CoreInfoResponse > }
* /
const methodDescriptor _Core _Start = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/Start' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . StartRequest ,
proto . hiddifyrpc . CoreInfoResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . CoreInfoResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . start =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/Start' ,
request ,
metadata || { } ,
methodDescriptor _Core _Start ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . CoreInfoResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . start =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/Start' ,
request ,
metadata || { } ,
methodDescriptor _Core _Start ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . CoreInfoResponse > }
* /
const methodDescriptor _Core _CoreInfoListener = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/CoreInfoListener' ,
grpc . web . MethodType . SERVER _STREAMING ,
base _pb . Empty ,
proto . hiddifyrpc . CoreInfoResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . coreInfoListener =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/CoreInfoListener' ,
request ,
metadata || { } ,
methodDescriptor _Core _CoreInfoListener ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CorePromiseClient . prototype . coreInfoListener =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/CoreInfoListener' ,
request ,
metadata || { } ,
methodDescriptor _Core _CoreInfoListener ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . OutboundGroupList > }
* /
const methodDescriptor _Core _OutboundsInfo = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/OutboundsInfo' ,
grpc . web . MethodType . SERVER _STREAMING ,
base _pb . Empty ,
proto . hiddifyrpc . OutboundGroupList ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . OutboundGroupList . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . OutboundGroupList > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . outboundsInfo =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/OutboundsInfo' ,
request ,
metadata || { } ,
methodDescriptor _Core _OutboundsInfo ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . OutboundGroupList > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CorePromiseClient . prototype . outboundsInfo =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/OutboundsInfo' ,
request ,
metadata || { } ,
methodDescriptor _Core _OutboundsInfo ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . OutboundGroupList > }
* /
const methodDescriptor _Core _MainOutboundsInfo = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/MainOutboundsInfo' ,
grpc . web . MethodType . SERVER _STREAMING ,
base _pb . Empty ,
proto . hiddifyrpc . OutboundGroupList ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . OutboundGroupList . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . OutboundGroupList > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . mainOutboundsInfo =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/MainOutboundsInfo' ,
request ,
metadata || { } ,
methodDescriptor _Core _MainOutboundsInfo ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . OutboundGroupList > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CorePromiseClient . prototype . mainOutboundsInfo =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/MainOutboundsInfo' ,
request ,
metadata || { } ,
methodDescriptor _Core _MainOutboundsInfo ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . SystemInfo > }
* /
const methodDescriptor _Core _GetSystemInfo = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/GetSystemInfo' ,
grpc . web . MethodType . SERVER _STREAMING ,
base _pb . Empty ,
proto . hiddifyrpc . SystemInfo ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . SystemInfo . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . SystemInfo > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . getSystemInfo =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/GetSystemInfo' ,
request ,
metadata || { } ,
methodDescriptor _Core _GetSystemInfo ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . SystemInfo > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CorePromiseClient . prototype . getSystemInfo =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/GetSystemInfo' ,
request ,
metadata || { } ,
methodDescriptor _Core _GetSystemInfo ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . SetupRequest ,
* ! proto . hiddifyrpc . Response > }
* /
const methodDescriptor _Core _Setup = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/Setup' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . SetupRequest ,
proto . hiddifyrpc . Response ,
/ * *
* @ param { ! proto . hiddifyrpc . SetupRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . Response . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . SetupRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . Response ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . Response > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . setup =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/Setup' ,
request ,
metadata || { } ,
methodDescriptor _Core _Setup ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . SetupRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . Response > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . setup =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/Setup' ,
request ,
metadata || { } ,
methodDescriptor _Core _Setup ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . ParseRequest ,
* ! proto . hiddifyrpc . ParseResponse > }
* /
const methodDescriptor _Core _Parse = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/Parse' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . ParseRequest ,
proto . hiddifyrpc . ParseResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . ParseRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . ParseResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . ParseRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . ParseResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . ParseResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . parse =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/Parse' ,
request ,
metadata || { } ,
methodDescriptor _Core _Parse ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ParseRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . ParseResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . parse =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/Parse' ,
request ,
metadata || { } ,
methodDescriptor _Core _Parse ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . ChangeHiddifySettingsRequest ,
* ! proto . hiddifyrpc . CoreInfoResponse > }
* /
const methodDescriptor _Core _ChangeHiddifySettings = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/ChangeHiddifySettings' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . ChangeHiddifySettingsRequest ,
proto . hiddifyrpc . CoreInfoResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . ChangeHiddifySettingsRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . ChangeHiddifySettingsRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . CoreInfoResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . changeHiddifySettings =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/ChangeHiddifySettings' ,
request ,
metadata || { } ,
methodDescriptor _Core _ChangeHiddifySettings ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ChangeHiddifySettingsRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . CoreInfoResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . changeHiddifySettings =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/ChangeHiddifySettings' ,
request ,
metadata || { } ,
methodDescriptor _Core _ChangeHiddifySettings ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . StartRequest ,
* ! proto . hiddifyrpc . CoreInfoResponse > }
* /
const methodDescriptor _Core _StartService = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/StartService' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . StartRequest ,
proto . hiddifyrpc . CoreInfoResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . CoreInfoResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . startService =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/StartService' ,
request ,
metadata || { } ,
methodDescriptor _Core _StartService ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . CoreInfoResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . startService =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/StartService' ,
request ,
metadata || { } ,
methodDescriptor _Core _StartService ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . CoreInfoResponse > }
* /
const methodDescriptor _Core _Stop = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/Stop' ,
grpc . web . MethodType . UNARY ,
base _pb . Empty ,
proto . hiddifyrpc . CoreInfoResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . CoreInfoResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . stop =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/Stop' ,
request ,
metadata || { } ,
methodDescriptor _Core _Stop ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . CoreInfoResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . stop =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/Stop' ,
request ,
metadata || { } ,
methodDescriptor _Core _Stop ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . StartRequest ,
* ! proto . hiddifyrpc . CoreInfoResponse > }
* /
const methodDescriptor _Core _Restart = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/Restart' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . StartRequest ,
proto . hiddifyrpc . CoreInfoResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . CoreInfoResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . CoreInfoResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . restart =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/Restart' ,
request ,
metadata || { } ,
methodDescriptor _Core _Restart ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . StartRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . CoreInfoResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . restart =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/Restart' ,
request ,
metadata || { } ,
methodDescriptor _Core _Restart ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . SelectOutboundRequest ,
* ! proto . hiddifyrpc . Response > }
* /
const methodDescriptor _Core _SelectOutbound = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/SelectOutbound' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . SelectOutboundRequest ,
proto . hiddifyrpc . Response ,
/ * *
* @ param { ! proto . hiddifyrpc . SelectOutboundRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . Response . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . SelectOutboundRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . Response ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . Response > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . selectOutbound =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/SelectOutbound' ,
request ,
metadata || { } ,
methodDescriptor _Core _SelectOutbound ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . SelectOutboundRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . Response > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . selectOutbound =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/SelectOutbound' ,
request ,
metadata || { } ,
methodDescriptor _Core _SelectOutbound ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . UrlTestRequest ,
* ! proto . hiddifyrpc . Response > }
* /
const methodDescriptor _Core _UrlTest = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/UrlTest' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . UrlTestRequest ,
proto . hiddifyrpc . Response ,
/ * *
* @ param { ! proto . hiddifyrpc . UrlTestRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . Response . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . UrlTestRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . Response ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . Response > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . urlTest =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/UrlTest' ,
request ,
metadata || { } ,
methodDescriptor _Core _UrlTest ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . UrlTestRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . Response > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . urlTest =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/UrlTest' ,
request ,
metadata || { } ,
methodDescriptor _Core _UrlTest ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . GenerateWarpConfigRequest ,
* ! proto . hiddifyrpc . WarpGenerationResponse > }
* /
const methodDescriptor _Core _GenerateWarpConfig = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/GenerateWarpConfig' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . GenerateWarpConfigRequest ,
proto . hiddifyrpc . WarpGenerationResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . GenerateWarpConfigRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . WarpGenerationResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . GenerateWarpConfigRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . WarpGenerationResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . WarpGenerationResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . generateWarpConfig =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/GenerateWarpConfig' ,
request ,
metadata || { } ,
methodDescriptor _Core _GenerateWarpConfig ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . GenerateWarpConfigRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . WarpGenerationResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . generateWarpConfig =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/GenerateWarpConfig' ,
request ,
metadata || { } ,
methodDescriptor _Core _GenerateWarpConfig ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . SystemProxyStatus > }
* /
const methodDescriptor _Core _GetSystemProxyStatus = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/GetSystemProxyStatus' ,
grpc . web . MethodType . UNARY ,
base _pb . Empty ,
proto . hiddifyrpc . SystemProxyStatus ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . SystemProxyStatus . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . SystemProxyStatus ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . SystemProxyStatus > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . getSystemProxyStatus =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/GetSystemProxyStatus' ,
request ,
metadata || { } ,
methodDescriptor _Core _GetSystemProxyStatus ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . SystemProxyStatus > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . getSystemProxyStatus =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/GetSystemProxyStatus' ,
request ,
metadata || { } ,
methodDescriptor _Core _GetSystemProxyStatus ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . SetSystemProxyEnabledRequest ,
* ! proto . hiddifyrpc . Response > }
* /
const methodDescriptor _Core _SetSystemProxyEnabled = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/SetSystemProxyEnabled' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . SetSystemProxyEnabledRequest ,
proto . hiddifyrpc . Response ,
/ * *
* @ param { ! proto . hiddifyrpc . SetSystemProxyEnabledRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . Response . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . SetSystemProxyEnabledRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . Response ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . Response > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . setSystemProxyEnabled =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.Core/SetSystemProxyEnabled' ,
request ,
metadata || { } ,
methodDescriptor _Core _SetSystemProxyEnabled ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . SetSystemProxyEnabledRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . Response > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . CorePromiseClient . prototype . setSystemProxyEnabled =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.Core/SetSystemProxyEnabled' ,
request ,
metadata || { } ,
methodDescriptor _Core _SetSystemProxyEnabled ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . LogMessage > }
* /
const methodDescriptor _Core _LogListener = new grpc . web . MethodDescriptor (
'/hiddifyrpc.Core/LogListener' ,
grpc . web . MethodType . SERVER _STREAMING ,
base _pb . Empty ,
proto . hiddifyrpc . LogMessage ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . LogMessage . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . LogMessage > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CoreClient . prototype . logListener =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/LogListener' ,
request ,
metadata || { } ,
methodDescriptor _Core _LogListener ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . LogMessage > }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . CorePromiseClient . prototype . logListener =
function ( request , metadata ) {
return this . client _ . serverStreaming ( this . hostname _ +
'/hiddifyrpc.Core/LogListener' ,
request ,
metadata || { } ,
methodDescriptor _Core _LogListener ) ;
} ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . TunnelServiceClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ param { string } hostname
* @ param { ? Object } credentials
* @ param { ? grpc . web . ClientOptions } options
* @ constructor
* @ struct
* @ final
* /
proto . hiddifyrpc . TunnelServicePromiseClient =
function ( hostname , credentials , options ) {
if ( ! options ) options = { } ;
options . format = 'text' ;
/ * *
* @ private @ const { ! grpc . web . GrpcWebClientBase } The client
* /
this . client _ = new grpc . web . GrpcWebClientBase ( options ) ;
/ * *
* @ private @ const { string } The hostname
* /
this . hostname _ = hostname . replace ( /\/+$/ , '' ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . TunnelStartRequest ,
* ! proto . hiddifyrpc . TunnelResponse > }
* /
const methodDescriptor _TunnelService _Start = new grpc . web . MethodDescriptor (
'/hiddifyrpc.TunnelService/Start' ,
grpc . web . MethodType . UNARY ,
proto . hiddifyrpc . TunnelStartRequest ,
proto . hiddifyrpc . TunnelResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . TunnelStartRequest } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . TunnelResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . TunnelStartRequest } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . TunnelResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . TunnelResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . TunnelServiceClient . prototype . start =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Start' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Start ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . TunnelStartRequest } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . TunnelResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . TunnelServicePromiseClient . prototype . start =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Start' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Start ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . TunnelResponse > }
* /
const methodDescriptor _TunnelService _Stop = new grpc . web . MethodDescriptor (
'/hiddifyrpc.TunnelService/Stop' ,
grpc . web . MethodType . UNARY ,
base _pb . Empty ,
proto . hiddifyrpc . TunnelResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . TunnelResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . TunnelResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . TunnelResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . TunnelServiceClient . prototype . stop =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Stop' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Stop ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . TunnelResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . TunnelServicePromiseClient . prototype . stop =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Stop' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Stop ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . TunnelResponse > }
* /
const methodDescriptor _TunnelService _Status = new grpc . web . MethodDescriptor (
'/hiddifyrpc.TunnelService/Status' ,
grpc . web . MethodType . UNARY ,
base _pb . Empty ,
proto . hiddifyrpc . TunnelResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . TunnelResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . TunnelResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . TunnelResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . TunnelServiceClient . prototype . status =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Status' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Status ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . TunnelResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . TunnelServicePromiseClient . prototype . status =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Status' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Status ) ;
} ;
/ * *
* @ const
* @ type { ! grpc . web . MethodDescriptor <
* ! proto . hiddifyrpc . Empty ,
* ! proto . hiddifyrpc . TunnelResponse > }
* /
const methodDescriptor _TunnelService _Exit = new grpc . web . MethodDescriptor (
'/hiddifyrpc.TunnelService/Exit' ,
grpc . web . MethodType . UNARY ,
base _pb . Empty ,
proto . hiddifyrpc . TunnelResponse ,
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request
* @ return { ! Uint8Array }
* /
function ( request ) {
return request . serializeBinary ( ) ;
} ,
proto . hiddifyrpc . TunnelResponse . deserializeBinary
) ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string > } metadata User defined
* call metadata
* @ param { function ( ? grpc . web . RpcError , ? proto . hiddifyrpc . TunnelResponse ) }
* callback The callback function ( error , response )
* @ return { ! grpc . web . ClientReadableStream < ! proto . hiddifyrpc . TunnelResponse > | undefined }
* The XHR Node Readable Stream
* /
proto . hiddifyrpc . TunnelServiceClient . prototype . exit =
function ( request , metadata , callback ) {
return this . client _ . rpcCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Exit' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Exit ,
callback ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . Empty } request The
* request proto
* @ param { ? Object < string , string >= } metadata User defined
* call metadata
* @ return { ! Promise < ! proto . hiddifyrpc . TunnelResponse > }
* Promise that resolves to the response
* /
proto . hiddifyrpc . TunnelServicePromiseClient . prototype . exit =
function ( request , metadata ) {
return this . client _ . unaryCall ( this . hostname _ +
'/hiddifyrpc.TunnelService/Exit' ,
request ,
metadata || { } ,
methodDescriptor _TunnelService _Exit ) ;
} ;
module . exports = proto . hiddifyrpc ;
} , { "./base_pb.js" : 1 , "./hiddify_pb.js" : 11 , "grpc-web" : 13 } ] , 11 : [ function ( require , module , exports ) {
// source: hiddify.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.ChangeHiddifySettingsRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.CoreInfoResponse' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.CoreState' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.GenerateConfigRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.GenerateConfigResponse' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.GenerateWarpConfigRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.LogLevel' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.LogMessage' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.LogType' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.MessageType' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.OutboundGroup' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.OutboundGroupItem' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.OutboundGroupList' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.ParseRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.ParseResponse' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.Response' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.SelectOutboundRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.SetSystemProxyEnabledRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.SetupRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.StartRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.StopRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.SystemInfo' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.SystemProxyStatus' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.TunnelResponse' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.TunnelStartRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.UrlTestRequest' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.WarpAccount' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.WarpGenerationResponse' , null , global ) ;
goog . exportSymbol ( 'proto.hiddifyrpc.WarpWireguardConfig' , 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 . CoreInfoResponse = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . CoreInfoResponse , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . CoreInfoResponse . displayName = 'proto.hiddifyrpc.CoreInfoResponse' ;
}
/ * *
* 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 . StartRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . StartRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . StartRequest . displayName = 'proto.hiddifyrpc.StartRequest' ;
}
/ * *
* 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 . SetupRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . SetupRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . SetupRequest . displayName = 'proto.hiddifyrpc.SetupRequest' ;
}
/ * *
* 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 . Response = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . Response , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . Response . displayName = 'proto.hiddifyrpc.Response' ;
}
/ * *
* 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 . SystemInfo = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . SystemInfo , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . SystemInfo . displayName = 'proto.hiddifyrpc.SystemInfo' ;
}
/ * *
* 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 . OutboundGroupItem = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . OutboundGroupItem , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . OutboundGroupItem . displayName = 'proto.hiddifyrpc.OutboundGroupItem' ;
}
/ * *
* 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 . OutboundGroup = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , proto . hiddifyrpc . OutboundGroup . repeatedFields _ , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . OutboundGroup , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . OutboundGroup . displayName = 'proto.hiddifyrpc.OutboundGroup' ;
}
/ * *
* 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 . OutboundGroupList = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , proto . hiddifyrpc . OutboundGroupList . repeatedFields _ , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . OutboundGroupList , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . OutboundGroupList . displayName = 'proto.hiddifyrpc.OutboundGroupList' ;
}
/ * *
* 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 . WarpAccount = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . WarpAccount , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . WarpAccount . displayName = 'proto.hiddifyrpc.WarpAccount' ;
}
/ * *
* 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 . WarpWireguardConfig = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . WarpWireguardConfig , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . WarpWireguardConfig . displayName = 'proto.hiddifyrpc.WarpWireguardConfig' ;
}
/ * *
* 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 . WarpGenerationResponse = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . WarpGenerationResponse , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . WarpGenerationResponse . displayName = 'proto.hiddifyrpc.WarpGenerationResponse' ;
}
/ * *
* 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 . SystemProxyStatus = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . SystemProxyStatus , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . SystemProxyStatus . displayName = 'proto.hiddifyrpc.SystemProxyStatus' ;
}
/ * *
* 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 . ParseRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . ParseRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . ParseRequest . displayName = 'proto.hiddifyrpc.ParseRequest' ;
}
/ * *
* 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 . ParseResponse = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . ParseResponse , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . ParseResponse . displayName = 'proto.hiddifyrpc.ParseResponse' ;
}
/ * *
* 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 . ChangeHiddifySettingsRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . ChangeHiddifySettingsRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . displayName = 'proto.hiddifyrpc.ChangeHiddifySettingsRequest' ;
}
/ * *
* 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 . GenerateConfigRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . GenerateConfigRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . GenerateConfigRequest . displayName = 'proto.hiddifyrpc.GenerateConfigRequest' ;
}
/ * *
* 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 . GenerateConfigResponse = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . GenerateConfigResponse , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . GenerateConfigResponse . displayName = 'proto.hiddifyrpc.GenerateConfigResponse' ;
}
/ * *
* 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 . SelectOutboundRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . SelectOutboundRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . SelectOutboundRequest . displayName = 'proto.hiddifyrpc.SelectOutboundRequest' ;
}
/ * *
* 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 . UrlTestRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . UrlTestRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . UrlTestRequest . displayName = 'proto.hiddifyrpc.UrlTestRequest' ;
}
/ * *
* 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 . GenerateWarpConfigRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . GenerateWarpConfigRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . displayName = 'proto.hiddifyrpc.GenerateWarpConfigRequest' ;
}
/ * *
* 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 . SetSystemProxyEnabledRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . SetSystemProxyEnabledRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . displayName = 'proto.hiddifyrpc.SetSystemProxyEnabledRequest' ;
}
/ * *
* 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 . LogMessage = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . LogMessage , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . LogMessage . displayName = 'proto.hiddifyrpc.LogMessage' ;
}
/ * *
* 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 . StopRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . StopRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . StopRequest . displayName = 'proto.hiddifyrpc.StopRequest' ;
}
/ * *
* 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 . TunnelStartRequest = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . TunnelStartRequest , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . TunnelStartRequest . displayName = 'proto.hiddifyrpc.TunnelStartRequest' ;
}
/ * *
* 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 . TunnelResponse = function ( opt _data ) {
jspb . Message . initialize ( this , opt _data , 0 , - 1 , null , null ) ;
} ;
goog . inherits ( proto . hiddifyrpc . TunnelResponse , jspb . Message ) ;
if ( goog . DEBUG && ! COMPILED ) {
/ * *
* @ public
* @ override
* /
proto . hiddifyrpc . TunnelResponse . displayName = 'proto.hiddifyrpc.TunnelResponse' ;
}
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 . CoreInfoResponse . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . CoreInfoResponse . 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 . CoreInfoResponse } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . CoreInfoResponse . toObject = function ( includeInstance , msg ) {
var f , obj = {
coreState : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
messageType : 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 . CoreInfoResponse }
* /
proto . hiddifyrpc . CoreInfoResponse . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . CoreInfoResponse ;
return proto . hiddifyrpc . CoreInfoResponse . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . CoreInfoResponse } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . CoreInfoResponse }
* /
proto . hiddifyrpc . CoreInfoResponse . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {!proto.hiddifyrpc.CoreState} */ ( reader . readEnum ( ) ) ;
msg . setCoreState ( value ) ;
break ;
case 2 :
var value = /** @type {!proto.hiddifyrpc.MessageType} */ ( reader . readEnum ( ) ) ;
msg . setMessageType ( 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 . CoreInfoResponse . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . CoreInfoResponse . 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 . CoreInfoResponse } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . CoreInfoResponse . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getCoreState ( ) ;
if ( f !== 0.0 ) {
writer . writeEnum (
1 ,
f
) ;
}
f = message . getMessageType ( ) ;
if ( f !== 0.0 ) {
writer . writeEnum (
2 ,
f
) ;
}
f = message . getMessage ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
} ;
/ * *
* optional CoreState core _state = 1 ;
* @ return { ! proto . hiddifyrpc . CoreState }
* /
proto . hiddifyrpc . CoreInfoResponse . prototype . getCoreState = function ( ) {
return /** @type {!proto.hiddifyrpc.CoreState} */ ( jspb . Message . getFieldWithDefault ( this , 1 , 0 ) ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . CoreState } value
* @ return { ! proto . hiddifyrpc . CoreInfoResponse } returns this
* /
proto . hiddifyrpc . CoreInfoResponse . prototype . setCoreState = function ( value ) {
return jspb . Message . setProto3EnumField ( this , 1 , value ) ;
} ;
/ * *
* optional MessageType message _type = 2 ;
* @ return { ! proto . hiddifyrpc . MessageType }
* /
proto . hiddifyrpc . CoreInfoResponse . prototype . getMessageType = function ( ) {
return /** @type {!proto.hiddifyrpc.MessageType} */ ( jspb . Message . getFieldWithDefault ( this , 2 , 0 ) ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . MessageType } value
* @ return { ! proto . hiddifyrpc . CoreInfoResponse } returns this
* /
proto . hiddifyrpc . CoreInfoResponse . prototype . setMessageType = function ( value ) {
return jspb . Message . setProto3EnumField ( this , 2 , value ) ;
} ;
/ * *
* optional string message = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . CoreInfoResponse . prototype . getMessage = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . CoreInfoResponse } returns this
* /
proto . hiddifyrpc . CoreInfoResponse . prototype . setMessage = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , 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 . StartRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . StartRequest . 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 . StartRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . StartRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
configPath : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
configContent : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
disableMemoryLimit : jspb . Message . getBooleanFieldWithDefault ( msg , 3 , false ) ,
delayStart : jspb . Message . getBooleanFieldWithDefault ( msg , 4 , false ) ,
enableOldCommandServer : jspb . Message . getBooleanFieldWithDefault ( msg , 5 , false ) ,
enableRawConfig : jspb . Message . getBooleanFieldWithDefault ( msg , 6 , 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 . StartRequest }
* /
proto . hiddifyrpc . StartRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . StartRequest ;
return proto . hiddifyrpc . StartRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . StartRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . StartRequest }
* /
proto . hiddifyrpc . StartRequest . 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 . setConfigPath ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setConfigContent ( value ) ;
break ;
case 3 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setDisableMemoryLimit ( value ) ;
break ;
case 4 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setDelayStart ( value ) ;
break ;
case 5 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setEnableOldCommandServer ( value ) ;
break ;
case 6 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setEnableRawConfig ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . StartRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . StartRequest . 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 . StartRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . StartRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getConfigPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getConfigContent ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getDisableMemoryLimit ( ) ;
if ( f ) {
writer . writeBool (
3 ,
f
) ;
}
f = message . getDelayStart ( ) ;
if ( f ) {
writer . writeBool (
4 ,
f
) ;
}
f = message . getEnableOldCommandServer ( ) ;
if ( f ) {
writer . writeBool (
5 ,
f
) ;
}
f = message . getEnableRawConfig ( ) ;
if ( f ) {
writer . writeBool (
6 ,
f
) ;
}
} ;
/ * *
* optional string config _path = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . StartRequest . prototype . getConfigPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . StartRequest } returns this
* /
proto . hiddifyrpc . StartRequest . prototype . setConfigPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string config _content = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . StartRequest . prototype . getConfigContent = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . StartRequest } returns this
* /
proto . hiddifyrpc . StartRequest . prototype . setConfigContent = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional bool disable _memory _limit = 3 ;
* @ return { boolean }
* /
proto . hiddifyrpc . StartRequest . prototype . getDisableMemoryLimit = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 3 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . StartRequest } returns this
* /
proto . hiddifyrpc . StartRequest . prototype . setDisableMemoryLimit = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 3 , value ) ;
} ;
/ * *
* optional bool delay _start = 4 ;
* @ return { boolean }
* /
proto . hiddifyrpc . StartRequest . prototype . getDelayStart = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 4 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . StartRequest } returns this
* /
proto . hiddifyrpc . StartRequest . prototype . setDelayStart = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 4 , value ) ;
} ;
/ * *
* optional bool enable _old _command _server = 5 ;
* @ return { boolean }
* /
proto . hiddifyrpc . StartRequest . prototype . getEnableOldCommandServer = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 5 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . StartRequest } returns this
* /
proto . hiddifyrpc . StartRequest . prototype . setEnableOldCommandServer = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 5 , value ) ;
} ;
/ * *
* optional bool enable _raw _config = 6 ;
* @ return { boolean }
* /
proto . hiddifyrpc . StartRequest . prototype . getEnableRawConfig = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 6 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . StartRequest } returns this
* /
proto . hiddifyrpc . StartRequest . prototype . setEnableRawConfig = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 6 , 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 . SetupRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . SetupRequest . 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 . SetupRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SetupRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
basePath : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
workingPath : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
tempPath : 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 . SetupRequest }
* /
proto . hiddifyrpc . SetupRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . SetupRequest ;
return proto . hiddifyrpc . SetupRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . SetupRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . SetupRequest }
* /
proto . hiddifyrpc . SetupRequest . 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 . setBasePath ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setWorkingPath ( value ) ;
break ;
case 3 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setTempPath ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . SetupRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . SetupRequest . 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 . SetupRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SetupRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getBasePath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getWorkingPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getTempPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
} ;
/ * *
* optional string base _path = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . SetupRequest . prototype . getBasePath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SetupRequest } returns this
* /
proto . hiddifyrpc . SetupRequest . prototype . setBasePath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string working _path = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . SetupRequest . prototype . getWorkingPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SetupRequest } returns this
* /
proto . hiddifyrpc . SetupRequest . prototype . setWorkingPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional string temp _path = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . SetupRequest . prototype . getTempPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SetupRequest } returns this
* /
proto . hiddifyrpc . SetupRequest . prototype . setTempPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , 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 . Response . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . Response . 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 . Response } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . Response . toObject = function ( includeInstance , msg ) {
var f , obj = {
responseCode : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
message : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
} ;
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 . Response }
* /
proto . hiddifyrpc . Response . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . Response ;
return proto . hiddifyrpc . Response . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . Response } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . Response }
* /
proto . hiddifyrpc . Response . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {!proto.hiddifyrpc.ResponseCode} */ ( reader . readEnum ( ) ) ;
msg . setResponseCode ( value ) ;
break ;
case 2 :
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 . Response . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . Response . 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 . Response } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . Response . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getResponseCode ( ) ;
if ( f !== 0.0 ) {
writer . writeEnum (
1 ,
f
) ;
}
f = message . getMessage ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
} ;
/ * *
* optional ResponseCode response _code = 1 ;
* @ return { ! proto . hiddifyrpc . ResponseCode }
* /
proto . hiddifyrpc . Response . prototype . getResponseCode = function ( ) {
return /** @type {!proto.hiddifyrpc.ResponseCode} */ ( jspb . Message . getFieldWithDefault ( this , 1 , 0 ) ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ResponseCode } value
* @ return { ! proto . hiddifyrpc . Response } returns this
* /
proto . hiddifyrpc . Response . prototype . setResponseCode = function ( value ) {
return jspb . Message . setProto3EnumField ( this , 1 , value ) ;
} ;
/ * *
* optional string message = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . Response . prototype . getMessage = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . Response } returns this
* /
proto . hiddifyrpc . Response . prototype . setMessage = function ( value ) {
return jspb . Message . setProto3StringField ( 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 . SystemInfo . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . SystemInfo . 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 . SystemInfo } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SystemInfo . toObject = function ( includeInstance , msg ) {
var f , obj = {
memory : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
goroutines : jspb . Message . getFieldWithDefault ( msg , 2 , 0 ) ,
connectionsIn : jspb . Message . getFieldWithDefault ( msg , 3 , 0 ) ,
connectionsOut : jspb . Message . getFieldWithDefault ( msg , 4 , 0 ) ,
trafficAvailable : jspb . Message . getBooleanFieldWithDefault ( msg , 5 , false ) ,
uplink : jspb . Message . getFieldWithDefault ( msg , 6 , 0 ) ,
downlink : jspb . Message . getFieldWithDefault ( msg , 7 , 0 ) ,
uplinkTotal : jspb . Message . getFieldWithDefault ( msg , 8 , 0 ) ,
downlinkTotal : jspb . Message . getFieldWithDefault ( msg , 9 , 0 )
} ;
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 . SystemInfo }
* /
proto . hiddifyrpc . SystemInfo . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . SystemInfo ;
return proto . hiddifyrpc . SystemInfo . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . SystemInfo } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . SystemInfo }
* /
proto . hiddifyrpc . SystemInfo . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {number} */ ( reader . readInt64 ( ) ) ;
msg . setMemory ( value ) ;
break ;
case 2 :
var value = /** @type {number} */ ( reader . readInt32 ( ) ) ;
msg . setGoroutines ( value ) ;
break ;
case 3 :
var value = /** @type {number} */ ( reader . readInt32 ( ) ) ;
msg . setConnectionsIn ( value ) ;
break ;
case 4 :
var value = /** @type {number} */ ( reader . readInt32 ( ) ) ;
msg . setConnectionsOut ( value ) ;
break ;
case 5 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setTrafficAvailable ( value ) ;
break ;
case 6 :
var value = /** @type {number} */ ( reader . readInt64 ( ) ) ;
msg . setUplink ( value ) ;
break ;
case 7 :
var value = /** @type {number} */ ( reader . readInt64 ( ) ) ;
msg . setDownlink ( value ) ;
break ;
case 8 :
var value = /** @type {number} */ ( reader . readInt64 ( ) ) ;
msg . setUplinkTotal ( value ) ;
break ;
case 9 :
var value = /** @type {number} */ ( reader . readInt64 ( ) ) ;
msg . setDownlinkTotal ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . SystemInfo . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . SystemInfo . 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 . SystemInfo } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SystemInfo . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getMemory ( ) ;
if ( f !== 0 ) {
writer . writeInt64 (
1 ,
f
) ;
}
f = message . getGoroutines ( ) ;
if ( f !== 0 ) {
writer . writeInt32 (
2 ,
f
) ;
}
f = message . getConnectionsIn ( ) ;
if ( f !== 0 ) {
writer . writeInt32 (
3 ,
f
) ;
}
f = message . getConnectionsOut ( ) ;
if ( f !== 0 ) {
writer . writeInt32 (
4 ,
f
) ;
}
f = message . getTrafficAvailable ( ) ;
if ( f ) {
writer . writeBool (
5 ,
f
) ;
}
f = message . getUplink ( ) ;
if ( f !== 0 ) {
writer . writeInt64 (
6 ,
f
) ;
}
f = message . getDownlink ( ) ;
if ( f !== 0 ) {
writer . writeInt64 (
7 ,
f
) ;
}
f = message . getUplinkTotal ( ) ;
if ( f !== 0 ) {
writer . writeInt64 (
8 ,
f
) ;
}
f = message . getDownlinkTotal ( ) ;
if ( f !== 0 ) {
writer . writeInt64 (
9 ,
f
) ;
}
} ;
/ * *
* optional int64 memory = 1 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getMemory = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 1 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setMemory = function ( value ) {
return jspb . Message . setProto3IntField ( this , 1 , value ) ;
} ;
/ * *
* optional int32 goroutines = 2 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getGoroutines = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 2 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setGoroutines = function ( value ) {
return jspb . Message . setProto3IntField ( this , 2 , value ) ;
} ;
/ * *
* optional int32 connections _in = 3 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getConnectionsIn = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 3 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setConnectionsIn = function ( value ) {
return jspb . Message . setProto3IntField ( this , 3 , value ) ;
} ;
/ * *
* optional int32 connections _out = 4 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getConnectionsOut = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 4 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setConnectionsOut = function ( value ) {
return jspb . Message . setProto3IntField ( this , 4 , value ) ;
} ;
/ * *
* optional bool traffic _available = 5 ;
* @ return { boolean }
* /
proto . hiddifyrpc . SystemInfo . prototype . getTrafficAvailable = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 5 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setTrafficAvailable = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 5 , value ) ;
} ;
/ * *
* optional int64 uplink = 6 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getUplink = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 6 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setUplink = function ( value ) {
return jspb . Message . setProto3IntField ( this , 6 , value ) ;
} ;
/ * *
* optional int64 downlink = 7 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getDownlink = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 7 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setDownlink = function ( value ) {
return jspb . Message . setProto3IntField ( this , 7 , value ) ;
} ;
/ * *
* optional int64 uplink _total = 8 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getUplinkTotal = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 8 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setUplinkTotal = function ( value ) {
return jspb . Message . setProto3IntField ( this , 8 , value ) ;
} ;
/ * *
* optional int64 downlink _total = 9 ;
* @ return { number }
* /
proto . hiddifyrpc . SystemInfo . prototype . getDownlinkTotal = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 9 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . SystemInfo } returns this
* /
proto . hiddifyrpc . SystemInfo . prototype . setDownlinkTotal = function ( value ) {
return jspb . Message . setProto3IntField ( this , 9 , 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 . OutboundGroupItem . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . OutboundGroupItem . 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 . OutboundGroupItem } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . OutboundGroupItem . toObject = function ( includeInstance , msg ) {
var f , obj = {
tag : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
type : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
urlTestTime : jspb . Message . getFieldWithDefault ( msg , 3 , 0 ) ,
urlTestDelay : jspb . Message . getFieldWithDefault ( msg , 4 , 0 )
} ;
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 . OutboundGroupItem }
* /
proto . hiddifyrpc . OutboundGroupItem . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . OutboundGroupItem ;
return proto . hiddifyrpc . OutboundGroupItem . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . OutboundGroupItem } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . OutboundGroupItem }
* /
proto . hiddifyrpc . OutboundGroupItem . 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 . setTag ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setType ( value ) ;
break ;
case 3 :
var value = /** @type {number} */ ( reader . readInt64 ( ) ) ;
msg . setUrlTestTime ( value ) ;
break ;
case 4 :
var value = /** @type {number} */ ( reader . readInt32 ( ) ) ;
msg . setUrlTestDelay ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . OutboundGroupItem . 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 . OutboundGroupItem } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . OutboundGroupItem . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getTag ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getType ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getUrlTestTime ( ) ;
if ( f !== 0 ) {
writer . writeInt64 (
3 ,
f
) ;
}
f = message . getUrlTestDelay ( ) ;
if ( f !== 0 ) {
writer . writeInt32 (
4 ,
f
) ;
}
} ;
/ * *
* optional string tag = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . getTag = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . OutboundGroupItem } returns this
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . setTag = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string type = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . getType = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . OutboundGroupItem } returns this
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . setType = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional int64 url _test _time = 3 ;
* @ return { number }
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . getUrlTestTime = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 3 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . OutboundGroupItem } returns this
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . setUrlTestTime = function ( value ) {
return jspb . Message . setProto3IntField ( this , 3 , value ) ;
} ;
/ * *
* optional int32 url _test _delay = 4 ;
* @ return { number }
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . getUrlTestDelay = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 4 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . OutboundGroupItem } returns this
* /
proto . hiddifyrpc . OutboundGroupItem . prototype . setUrlTestDelay = function ( value ) {
return jspb . Message . setProto3IntField ( this , 4 , value ) ;
} ;
/ * *
* List of repeated fields within this message type .
* @ private { ! Array < number > }
* @ const
* /
proto . hiddifyrpc . OutboundGroup . repeatedFields _ = [ 4 ] ;
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 . OutboundGroup . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . OutboundGroup . 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 . OutboundGroup } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . OutboundGroup . toObject = function ( includeInstance , msg ) {
var f , obj = {
tag : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
type : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
selected : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
itemsList : jspb . Message . toObjectList ( msg . getItemsList ( ) ,
proto . hiddifyrpc . OutboundGroupItem . 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 . OutboundGroup }
* /
proto . hiddifyrpc . OutboundGroup . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . OutboundGroup ;
return proto . hiddifyrpc . OutboundGroup . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . OutboundGroup } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . OutboundGroup }
* /
proto . hiddifyrpc . OutboundGroup . 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 . setTag ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setType ( value ) ;
break ;
case 3 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setSelected ( value ) ;
break ;
case 4 :
var value = new proto . hiddifyrpc . OutboundGroupItem ;
reader . readMessage ( value , proto . hiddifyrpc . OutboundGroupItem . deserializeBinaryFromReader ) ;
msg . addItems ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . OutboundGroup . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . OutboundGroup . 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 . OutboundGroup } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . OutboundGroup . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getTag ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getType ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getSelected ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
f = message . getItemsList ( ) ;
if ( f . length > 0 ) {
writer . writeRepeatedMessage (
4 ,
f ,
proto . hiddifyrpc . OutboundGroupItem . serializeBinaryToWriter
) ;
}
} ;
/ * *
* optional string tag = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . OutboundGroup . prototype . getTag = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . OutboundGroup } returns this
* /
proto . hiddifyrpc . OutboundGroup . prototype . setTag = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string type = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . OutboundGroup . prototype . getType = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . OutboundGroup } returns this
* /
proto . hiddifyrpc . OutboundGroup . prototype . setType = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional string selected = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . OutboundGroup . prototype . getSelected = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . OutboundGroup } returns this
* /
proto . hiddifyrpc . OutboundGroup . prototype . setSelected = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , value ) ;
} ;
/ * *
* repeated OutboundGroupItem items = 4 ;
* @ return { ! Array < ! proto . hiddifyrpc . OutboundGroupItem > }
* /
proto . hiddifyrpc . OutboundGroup . prototype . getItemsList = function ( ) {
return /** @type{!Array<!proto.hiddifyrpc.OutboundGroupItem>} */ (
jspb . Message . getRepeatedWrapperField ( this , proto . hiddifyrpc . OutboundGroupItem , 4 ) ) ;
} ;
/ * *
* @ param { ! Array < ! proto . hiddifyrpc . OutboundGroupItem > } value
* @ return { ! proto . hiddifyrpc . OutboundGroup } returns this
* /
proto . hiddifyrpc . OutboundGroup . prototype . setItemsList = function ( value ) {
return jspb . Message . setRepeatedWrapperField ( this , 4 , value ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . OutboundGroupItem = } opt _value
* @ param { number = } opt _index
* @ return { ! proto . hiddifyrpc . OutboundGroupItem }
* /
proto . hiddifyrpc . OutboundGroup . prototype . addItems = function ( opt _value , opt _index ) {
return jspb . Message . addToRepeatedWrapperField ( this , 4 , opt _value , proto . hiddifyrpc . OutboundGroupItem , opt _index ) ;
} ;
/ * *
* Clears the list making it empty but non - null .
* @ return { ! proto . hiddifyrpc . OutboundGroup } returns this
* /
proto . hiddifyrpc . OutboundGroup . prototype . clearItemsList = function ( ) {
return this . setItemsList ( [ ] ) ;
} ;
/ * *
* List of repeated fields within this message type .
* @ private { ! Array < number > }
* @ const
* /
proto . hiddifyrpc . OutboundGroupList . 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 . OutboundGroupList . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . OutboundGroupList . 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 . OutboundGroupList } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . OutboundGroupList . toObject = function ( includeInstance , msg ) {
var f , obj = {
itemsList : jspb . Message . toObjectList ( msg . getItemsList ( ) ,
proto . hiddifyrpc . OutboundGroup . 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 . OutboundGroupList }
* /
proto . hiddifyrpc . OutboundGroupList . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . OutboundGroupList ;
return proto . hiddifyrpc . OutboundGroupList . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . OutboundGroupList } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . OutboundGroupList }
* /
proto . hiddifyrpc . OutboundGroupList . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = new proto . hiddifyrpc . OutboundGroup ;
reader . readMessage ( value , proto . hiddifyrpc . OutboundGroup . deserializeBinaryFromReader ) ;
msg . addItems ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . OutboundGroupList . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . OutboundGroupList . 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 . OutboundGroupList } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . OutboundGroupList . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getItemsList ( ) ;
if ( f . length > 0 ) {
writer . writeRepeatedMessage (
1 ,
f ,
proto . hiddifyrpc . OutboundGroup . serializeBinaryToWriter
) ;
}
} ;
/ * *
* repeated OutboundGroup items = 1 ;
* @ return { ! Array < ! proto . hiddifyrpc . OutboundGroup > }
* /
proto . hiddifyrpc . OutboundGroupList . prototype . getItemsList = function ( ) {
return /** @type{!Array<!proto.hiddifyrpc.OutboundGroup>} */ (
jspb . Message . getRepeatedWrapperField ( this , proto . hiddifyrpc . OutboundGroup , 1 ) ) ;
} ;
/ * *
* @ param { ! Array < ! proto . hiddifyrpc . OutboundGroup > } value
* @ return { ! proto . hiddifyrpc . OutboundGroupList } returns this
* /
proto . hiddifyrpc . OutboundGroupList . prototype . setItemsList = function ( value ) {
return jspb . Message . setRepeatedWrapperField ( this , 1 , value ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . OutboundGroup = } opt _value
* @ param { number = } opt _index
* @ return { ! proto . hiddifyrpc . OutboundGroup }
* /
proto . hiddifyrpc . OutboundGroupList . prototype . addItems = function ( opt _value , opt _index ) {
return jspb . Message . addToRepeatedWrapperField ( this , 1 , opt _value , proto . hiddifyrpc . OutboundGroup , opt _index ) ;
} ;
/ * *
* Clears the list making it empty but non - null .
* @ return { ! proto . hiddifyrpc . OutboundGroupList } returns this
* /
proto . hiddifyrpc . OutboundGroupList . prototype . clearItemsList = function ( ) {
return this . setItemsList ( [ ] ) ;
} ;
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 . WarpAccount . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . WarpAccount . 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 . WarpAccount } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . WarpAccount . toObject = function ( includeInstance , msg ) {
var f , obj = {
accountId : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
accessToken : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
} ;
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 . WarpAccount }
* /
proto . hiddifyrpc . WarpAccount . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . WarpAccount ;
return proto . hiddifyrpc . WarpAccount . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . WarpAccount } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . WarpAccount }
* /
proto . hiddifyrpc . WarpAccount . 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 . setAccountId ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setAccessToken ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . WarpAccount . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . WarpAccount . 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 . WarpAccount } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . WarpAccount . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getAccountId ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getAccessToken ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
} ;
/ * *
* optional string account _id = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpAccount . prototype . getAccountId = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpAccount } returns this
* /
proto . hiddifyrpc . WarpAccount . prototype . setAccountId = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string access _token = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpAccount . prototype . getAccessToken = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpAccount } returns this
* /
proto . hiddifyrpc . WarpAccount . prototype . setAccessToken = function ( value ) {
return jspb . Message . setProto3StringField ( 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 . WarpWireguardConfig . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . WarpWireguardConfig . 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 . WarpWireguardConfig } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . WarpWireguardConfig . toObject = function ( includeInstance , msg ) {
var f , obj = {
privateKey : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
localAddressIpv4 : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
localAddressIpv6 : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
peerPublicKey : jspb . Message . getFieldWithDefault ( msg , 4 , "" ) ,
clientId : jspb . Message . getFieldWithDefault ( msg , 5 , "" )
} ;
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 . WarpWireguardConfig }
* /
proto . hiddifyrpc . WarpWireguardConfig . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . WarpWireguardConfig ;
return proto . hiddifyrpc . WarpWireguardConfig . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . WarpWireguardConfig } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . WarpWireguardConfig }
* /
proto . hiddifyrpc . WarpWireguardConfig . 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 . setPrivateKey ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setLocalAddressIpv4 ( value ) ;
break ;
case 3 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setLocalAddressIpv6 ( value ) ;
break ;
case 4 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setPeerPublicKey ( value ) ;
break ;
case 5 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setClientId ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . WarpWireguardConfig . 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 . WarpWireguardConfig } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . WarpWireguardConfig . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getPrivateKey ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getLocalAddressIpv4 ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getLocalAddressIpv6 ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
f = message . getPeerPublicKey ( ) ;
if ( f . length > 0 ) {
writer . writeString (
4 ,
f
) ;
}
f = message . getClientId ( ) ;
if ( f . length > 0 ) {
writer . writeString (
5 ,
f
) ;
}
} ;
/ * *
* optional string private _key = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . getPrivateKey = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpWireguardConfig } returns this
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . setPrivateKey = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string local _address _ipv4 = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . getLocalAddressIpv4 = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpWireguardConfig } returns this
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . setLocalAddressIpv4 = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional string local _address _ipv6 = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . getLocalAddressIpv6 = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpWireguardConfig } returns this
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . setLocalAddressIpv6 = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , value ) ;
} ;
/ * *
* optional string peer _public _key = 4 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . getPeerPublicKey = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 4 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpWireguardConfig } returns this
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . setPeerPublicKey = function ( value ) {
return jspb . Message . setProto3StringField ( this , 4 , value ) ;
} ;
/ * *
* optional string client _id = 5 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . getClientId = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 5 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpWireguardConfig } returns this
* /
proto . hiddifyrpc . WarpWireguardConfig . prototype . setClientId = function ( value ) {
return jspb . Message . setProto3StringField ( this , 5 , 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 . WarpGenerationResponse . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . WarpGenerationResponse . 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 . WarpGenerationResponse } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . WarpGenerationResponse . toObject = function ( includeInstance , msg ) {
var f , obj = {
account : ( f = msg . getAccount ( ) ) && proto . hiddifyrpc . WarpAccount . toObject ( includeInstance , f ) ,
log : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
config : ( f = msg . getConfig ( ) ) && proto . hiddifyrpc . WarpWireguardConfig . toObject ( includeInstance , f )
} ;
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 . WarpGenerationResponse }
* /
proto . hiddifyrpc . WarpGenerationResponse . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . WarpGenerationResponse ;
return proto . hiddifyrpc . WarpGenerationResponse . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . WarpGenerationResponse } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . WarpGenerationResponse }
* /
proto . hiddifyrpc . WarpGenerationResponse . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = new proto . hiddifyrpc . WarpAccount ;
reader . readMessage ( value , proto . hiddifyrpc . WarpAccount . deserializeBinaryFromReader ) ;
msg . setAccount ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setLog ( value ) ;
break ;
case 3 :
var value = new proto . hiddifyrpc . WarpWireguardConfig ;
reader . readMessage ( value , proto . hiddifyrpc . WarpWireguardConfig . deserializeBinaryFromReader ) ;
msg . setConfig ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . WarpGenerationResponse . 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 . WarpGenerationResponse } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . WarpGenerationResponse . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getAccount ( ) ;
if ( f != null ) {
writer . writeMessage (
1 ,
f ,
proto . hiddifyrpc . WarpAccount . serializeBinaryToWriter
) ;
}
f = message . getLog ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getConfig ( ) ;
if ( f != null ) {
writer . writeMessage (
3 ,
f ,
proto . hiddifyrpc . WarpWireguardConfig . serializeBinaryToWriter
) ;
}
} ;
/ * *
* optional WarpAccount account = 1 ;
* @ return { ? proto . hiddifyrpc . WarpAccount }
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . getAccount = function ( ) {
return /** @type{?proto.hiddifyrpc.WarpAccount} */ (
jspb . Message . getWrapperField ( this , proto . hiddifyrpc . WarpAccount , 1 ) ) ;
} ;
/ * *
* @ param { ? proto . hiddifyrpc . WarpAccount | undefined } value
* @ return { ! proto . hiddifyrpc . WarpGenerationResponse } returns this
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . setAccount = function ( value ) {
return jspb . Message . setWrapperField ( this , 1 , value ) ;
} ;
/ * *
* Clears the message field making it undefined .
* @ return { ! proto . hiddifyrpc . WarpGenerationResponse } returns this
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . clearAccount = function ( ) {
return this . setAccount ( undefined ) ;
} ;
/ * *
* Returns whether this field is set .
* @ return { boolean }
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . hasAccount = function ( ) {
return jspb . Message . getField ( this , 1 ) != null ;
} ;
/ * *
* optional string log = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . getLog = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . WarpGenerationResponse } returns this
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . setLog = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional WarpWireguardConfig config = 3 ;
* @ return { ? proto . hiddifyrpc . WarpWireguardConfig }
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . getConfig = function ( ) {
return /** @type{?proto.hiddifyrpc.WarpWireguardConfig} */ (
jspb . Message . getWrapperField ( this , proto . hiddifyrpc . WarpWireguardConfig , 3 ) ) ;
} ;
/ * *
* @ param { ? proto . hiddifyrpc . WarpWireguardConfig | undefined } value
* @ return { ! proto . hiddifyrpc . WarpGenerationResponse } returns this
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . setConfig = function ( value ) {
return jspb . Message . setWrapperField ( this , 3 , value ) ;
} ;
/ * *
* Clears the message field making it undefined .
* @ return { ! proto . hiddifyrpc . WarpGenerationResponse } returns this
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . clearConfig = function ( ) {
return this . setConfig ( undefined ) ;
} ;
/ * *
* Returns whether this field is set .
* @ return { boolean }
* /
proto . hiddifyrpc . WarpGenerationResponse . prototype . hasConfig = function ( ) {
return jspb . Message . getField ( this , 3 ) != null ;
} ;
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 . SystemProxyStatus . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . SystemProxyStatus . 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 . SystemProxyStatus } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SystemProxyStatus . toObject = function ( includeInstance , msg ) {
var f , obj = {
available : jspb . Message . getBooleanFieldWithDefault ( msg , 1 , false ) ,
enabled : 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 . SystemProxyStatus }
* /
proto . hiddifyrpc . SystemProxyStatus . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . SystemProxyStatus ;
return proto . hiddifyrpc . SystemProxyStatus . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . SystemProxyStatus } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . SystemProxyStatus }
* /
proto . hiddifyrpc . SystemProxyStatus . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setAvailable ( value ) ;
break ;
case 2 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setEnabled ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . SystemProxyStatus . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . SystemProxyStatus . 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 . SystemProxyStatus } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SystemProxyStatus . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getAvailable ( ) ;
if ( f ) {
writer . writeBool (
1 ,
f
) ;
}
f = message . getEnabled ( ) ;
if ( f ) {
writer . writeBool (
2 ,
f
) ;
}
} ;
/ * *
* optional bool available = 1 ;
* @ return { boolean }
* /
proto . hiddifyrpc . SystemProxyStatus . prototype . getAvailable = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 1 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . SystemProxyStatus } returns this
* /
proto . hiddifyrpc . SystemProxyStatus . prototype . setAvailable = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 1 , value ) ;
} ;
/ * *
* optional bool enabled = 2 ;
* @ return { boolean }
* /
proto . hiddifyrpc . SystemProxyStatus . prototype . getEnabled = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 2 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . SystemProxyStatus } returns this
* /
proto . hiddifyrpc . SystemProxyStatus . prototype . setEnabled = 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 . ParseRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . ParseRequest . 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 . ParseRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . ParseRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
content : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
configPath : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
tempPath : jspb . Message . getFieldWithDefault ( msg , 3 , "" ) ,
debug : 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 . ParseRequest }
* /
proto . hiddifyrpc . ParseRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . ParseRequest ;
return proto . hiddifyrpc . ParseRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . ParseRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . ParseRequest }
* /
proto . hiddifyrpc . ParseRequest . 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 . setContent ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setConfigPath ( value ) ;
break ;
case 3 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setTempPath ( value ) ;
break ;
case 4 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setDebug ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . ParseRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . ParseRequest . 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 . ParseRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . ParseRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getContent ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getConfigPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getTempPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
f = message . getDebug ( ) ;
if ( f ) {
writer . writeBool (
4 ,
f
) ;
}
} ;
/ * *
* optional string content = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . ParseRequest . prototype . getContent = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . ParseRequest } returns this
* /
proto . hiddifyrpc . ParseRequest . prototype . setContent = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string config _path = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . ParseRequest . prototype . getConfigPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . ParseRequest } returns this
* /
proto . hiddifyrpc . ParseRequest . prototype . setConfigPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional string temp _path = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . ParseRequest . prototype . getTempPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . ParseRequest } returns this
* /
proto . hiddifyrpc . ParseRequest . prototype . setTempPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , value ) ;
} ;
/ * *
* optional bool debug = 4 ;
* @ return { boolean }
* /
proto . hiddifyrpc . ParseRequest . prototype . getDebug = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 4 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . ParseRequest } returns this
* /
proto . hiddifyrpc . ParseRequest . prototype . setDebug = 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 . ParseResponse . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . ParseResponse . 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 . ParseResponse } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . ParseResponse . toObject = function ( includeInstance , msg ) {
var f , obj = {
responseCode : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
content : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
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 . ParseResponse }
* /
proto . hiddifyrpc . ParseResponse . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . ParseResponse ;
return proto . hiddifyrpc . ParseResponse . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . ParseResponse } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . ParseResponse }
* /
proto . hiddifyrpc . ParseResponse . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {!proto.hiddifyrpc.ResponseCode} */ ( reader . readEnum ( ) ) ;
msg . setResponseCode ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setContent ( 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 . ParseResponse . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . ParseResponse . 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 . ParseResponse } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . ParseResponse . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getResponseCode ( ) ;
if ( f !== 0.0 ) {
writer . writeEnum (
1 ,
f
) ;
}
f = message . getContent ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getMessage ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
} ;
/ * *
* optional ResponseCode response _code = 1 ;
* @ return { ! proto . hiddifyrpc . ResponseCode }
* /
proto . hiddifyrpc . ParseResponse . prototype . getResponseCode = function ( ) {
return /** @type {!proto.hiddifyrpc.ResponseCode} */ ( jspb . Message . getFieldWithDefault ( this , 1 , 0 ) ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . ResponseCode } value
* @ return { ! proto . hiddifyrpc . ParseResponse } returns this
* /
proto . hiddifyrpc . ParseResponse . prototype . setResponseCode = function ( value ) {
return jspb . Message . setProto3EnumField ( this , 1 , value ) ;
} ;
/ * *
* optional string content = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . ParseResponse . prototype . getContent = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . ParseResponse } returns this
* /
proto . hiddifyrpc . ParseResponse . prototype . setContent = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional string message = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . ParseResponse . prototype . getMessage = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . ParseResponse } returns this
* /
proto . hiddifyrpc . ParseResponse . prototype . setMessage = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , 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 . ChangeHiddifySettingsRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . ChangeHiddifySettingsRequest . 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 . ChangeHiddifySettingsRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
hiddifySettingsJson : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
} ;
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 . ChangeHiddifySettingsRequest }
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . ChangeHiddifySettingsRequest ;
return proto . hiddifyrpc . ChangeHiddifySettingsRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . ChangeHiddifySettingsRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . ChangeHiddifySettingsRequest }
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . 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 . setHiddifySettingsJson ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . ChangeHiddifySettingsRequest . 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 . ChangeHiddifySettingsRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getHiddifySettingsJson ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
} ;
/ * *
* optional string hiddify _settings _json = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . prototype . getHiddifySettingsJson = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . ChangeHiddifySettingsRequest } returns this
* /
proto . hiddifyrpc . ChangeHiddifySettingsRequest . prototype . setHiddifySettingsJson = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , 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 . GenerateConfigRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . GenerateConfigRequest . 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 . GenerateConfigRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . GenerateConfigRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
path : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
tempPath : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
debug : jspb . Message . getBooleanFieldWithDefault ( msg , 3 , 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 . GenerateConfigRequest }
* /
proto . hiddifyrpc . GenerateConfigRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . GenerateConfigRequest ;
return proto . hiddifyrpc . GenerateConfigRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . GenerateConfigRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . GenerateConfigRequest }
* /
proto . hiddifyrpc . GenerateConfigRequest . 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 . setPath ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setTempPath ( value ) ;
break ;
case 3 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setDebug ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . GenerateConfigRequest . 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 . GenerateConfigRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . GenerateConfigRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getTempPath ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getDebug ( ) ;
if ( f ) {
writer . writeBool (
3 ,
f
) ;
}
} ;
/ * *
* optional string path = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . getPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . GenerateConfigRequest } returns this
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . setPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string temp _path = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . getTempPath = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . GenerateConfigRequest } returns this
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . setTempPath = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional bool debug = 3 ;
* @ return { boolean }
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . getDebug = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 3 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . GenerateConfigRequest } returns this
* /
proto . hiddifyrpc . GenerateConfigRequest . prototype . setDebug = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 3 , 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 . GenerateConfigResponse . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . GenerateConfigResponse . 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 . GenerateConfigResponse } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . GenerateConfigResponse . toObject = function ( includeInstance , msg ) {
var f , obj = {
configContent : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
} ;
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 . GenerateConfigResponse }
* /
proto . hiddifyrpc . GenerateConfigResponse . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . GenerateConfigResponse ;
return proto . hiddifyrpc . GenerateConfigResponse . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . GenerateConfigResponse } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . GenerateConfigResponse }
* /
proto . hiddifyrpc . GenerateConfigResponse . 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 . setConfigContent ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . GenerateConfigResponse . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . GenerateConfigResponse . 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 . GenerateConfigResponse } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . GenerateConfigResponse . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getConfigContent ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
} ;
/ * *
* optional string config _content = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . GenerateConfigResponse . prototype . getConfigContent = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . GenerateConfigResponse } returns this
* /
proto . hiddifyrpc . GenerateConfigResponse . prototype . setConfigContent = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , 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 . SelectOutboundRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . SelectOutboundRequest . 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 . SelectOutboundRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SelectOutboundRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
groupTag : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
outboundTag : jspb . Message . getFieldWithDefault ( msg , 2 , "" )
} ;
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 . SelectOutboundRequest }
* /
proto . hiddifyrpc . SelectOutboundRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . SelectOutboundRequest ;
return proto . hiddifyrpc . SelectOutboundRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . SelectOutboundRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . SelectOutboundRequest }
* /
proto . hiddifyrpc . SelectOutboundRequest . 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 . setGroupTag ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setOutboundTag ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . SelectOutboundRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . SelectOutboundRequest . 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 . SelectOutboundRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SelectOutboundRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getGroupTag ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getOutboundTag ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
} ;
/ * *
* optional string group _tag = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . SelectOutboundRequest . prototype . getGroupTag = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SelectOutboundRequest } returns this
* /
proto . hiddifyrpc . SelectOutboundRequest . prototype . setGroupTag = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string outbound _tag = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . SelectOutboundRequest . prototype . getOutboundTag = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . SelectOutboundRequest } returns this
* /
proto . hiddifyrpc . SelectOutboundRequest . prototype . setOutboundTag = function ( value ) {
return jspb . Message . setProto3StringField ( 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 . UrlTestRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . UrlTestRequest . 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 . UrlTestRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . UrlTestRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
groupTag : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
} ;
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 . UrlTestRequest }
* /
proto . hiddifyrpc . UrlTestRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . UrlTestRequest ;
return proto . hiddifyrpc . UrlTestRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . UrlTestRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . UrlTestRequest }
* /
proto . hiddifyrpc . UrlTestRequest . 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 . setGroupTag ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . UrlTestRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . UrlTestRequest . 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 . UrlTestRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . UrlTestRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getGroupTag ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
} ;
/ * *
* optional string group _tag = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . UrlTestRequest . prototype . getGroupTag = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . UrlTestRequest } returns this
* /
proto . hiddifyrpc . UrlTestRequest . prototype . setGroupTag = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , 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 . GenerateWarpConfigRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . GenerateWarpConfigRequest . 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 . GenerateWarpConfigRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
licenseKey : jspb . Message . getFieldWithDefault ( msg , 1 , "" ) ,
accountId : jspb . Message . getFieldWithDefault ( msg , 2 , "" ) ,
accessToken : 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 . GenerateWarpConfigRequest }
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . GenerateWarpConfigRequest ;
return proto . hiddifyrpc . GenerateWarpConfigRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . GenerateWarpConfigRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . GenerateWarpConfigRequest }
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . 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 . setLicenseKey ( value ) ;
break ;
case 2 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setAccountId ( value ) ;
break ;
case 3 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setAccessToken ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . GenerateWarpConfigRequest . 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 . GenerateWarpConfigRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getLicenseKey ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
f = message . getAccountId ( ) ;
if ( f . length > 0 ) {
writer . writeString (
2 ,
f
) ;
}
f = message . getAccessToken ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
} ;
/ * *
* optional string license _key = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . getLicenseKey = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . GenerateWarpConfigRequest } returns this
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . setLicenseKey = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* optional string account _id = 2 ;
* @ return { string }
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . getAccountId = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 2 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . GenerateWarpConfigRequest } returns this
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . setAccountId = function ( value ) {
return jspb . Message . setProto3StringField ( this , 2 , value ) ;
} ;
/ * *
* optional string access _token = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . getAccessToken = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . GenerateWarpConfigRequest } returns this
* /
proto . hiddifyrpc . GenerateWarpConfigRequest . prototype . setAccessToken = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , 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 . SetSystemProxyEnabledRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . SetSystemProxyEnabledRequest . 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 . SetSystemProxyEnabledRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
isEnabled : jspb . Message . getBooleanFieldWithDefault ( msg , 1 , 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 . SetSystemProxyEnabledRequest }
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . SetSystemProxyEnabledRequest ;
return proto . hiddifyrpc . SetSystemProxyEnabledRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . SetSystemProxyEnabledRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . SetSystemProxyEnabledRequest }
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setIsEnabled ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . SetSystemProxyEnabledRequest . 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 . SetSystemProxyEnabledRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getIsEnabled ( ) ;
if ( f ) {
writer . writeBool (
1 ,
f
) ;
}
} ;
/ * *
* optional bool is _enabled = 1 ;
* @ return { boolean }
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . prototype . getIsEnabled = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 1 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . SetSystemProxyEnabledRequest } returns this
* /
proto . hiddifyrpc . SetSystemProxyEnabledRequest . prototype . setIsEnabled = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 1 , 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 . LogMessage . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . LogMessage . 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 . LogMessage } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . LogMessage . toObject = function ( includeInstance , msg ) {
var f , obj = {
level : jspb . Message . getFieldWithDefault ( msg , 1 , 0 ) ,
type : 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 . LogMessage }
* /
proto . hiddifyrpc . LogMessage . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . LogMessage ;
return proto . hiddifyrpc . LogMessage . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . LogMessage } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . LogMessage }
* /
proto . hiddifyrpc . LogMessage . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {!proto.hiddifyrpc.LogLevel} */ ( reader . readEnum ( ) ) ;
msg . setLevel ( value ) ;
break ;
case 2 :
var value = /** @type {!proto.hiddifyrpc.LogType} */ ( reader . readEnum ( ) ) ;
msg . setType ( 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 . LogMessage . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . LogMessage . 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 . LogMessage } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . LogMessage . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getLevel ( ) ;
if ( f !== 0.0 ) {
writer . writeEnum (
1 ,
f
) ;
}
f = message . getType ( ) ;
if ( f !== 0.0 ) {
writer . writeEnum (
2 ,
f
) ;
}
f = message . getMessage ( ) ;
if ( f . length > 0 ) {
writer . writeString (
3 ,
f
) ;
}
} ;
/ * *
* optional LogLevel level = 1 ;
* @ return { ! proto . hiddifyrpc . LogLevel }
* /
proto . hiddifyrpc . LogMessage . prototype . getLevel = function ( ) {
return /** @type {!proto.hiddifyrpc.LogLevel} */ ( jspb . Message . getFieldWithDefault ( this , 1 , 0 ) ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . LogLevel } value
* @ return { ! proto . hiddifyrpc . LogMessage } returns this
* /
proto . hiddifyrpc . LogMessage . prototype . setLevel = function ( value ) {
return jspb . Message . setProto3EnumField ( this , 1 , value ) ;
} ;
/ * *
* optional LogType type = 2 ;
* @ return { ! proto . hiddifyrpc . LogType }
* /
proto . hiddifyrpc . LogMessage . prototype . getType = function ( ) {
return /** @type {!proto.hiddifyrpc.LogType} */ ( jspb . Message . getFieldWithDefault ( this , 2 , 0 ) ) ;
} ;
/ * *
* @ param { ! proto . hiddifyrpc . LogType } value
* @ return { ! proto . hiddifyrpc . LogMessage } returns this
* /
proto . hiddifyrpc . LogMessage . prototype . setType = function ( value ) {
return jspb . Message . setProto3EnumField ( this , 2 , value ) ;
} ;
/ * *
* optional string message = 3 ;
* @ return { string }
* /
proto . hiddifyrpc . LogMessage . prototype . getMessage = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 3 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . LogMessage } returns this
* /
proto . hiddifyrpc . LogMessage . prototype . setMessage = function ( value ) {
return jspb . Message . setProto3StringField ( this , 3 , 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 . StopRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . StopRequest . 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 . StopRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . StopRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
} ;
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 . StopRequest }
* /
proto . hiddifyrpc . StopRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . StopRequest ;
return proto . hiddifyrpc . StopRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . StopRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . StopRequest }
* /
proto . hiddifyrpc . StopRequest . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . StopRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . StopRequest . 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 . StopRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . StopRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
} ;
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 . TunnelStartRequest . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . TunnelStartRequest . 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 . TunnelStartRequest } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . TunnelStartRequest . toObject = function ( includeInstance , msg ) {
var f , obj = {
ipv6 : jspb . Message . getBooleanFieldWithDefault ( msg , 1 , false ) ,
serverPort : jspb . Message . getFieldWithDefault ( msg , 2 , 0 ) ,
strictRoute : jspb . Message . getBooleanFieldWithDefault ( msg , 3 , false ) ,
endpointIndependentNat : jspb . Message . getBooleanFieldWithDefault ( msg , 4 , false ) ,
stack : jspb . Message . getFieldWithDefault ( msg , 5 , "" )
} ;
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 . TunnelStartRequest }
* /
proto . hiddifyrpc . TunnelStartRequest . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . TunnelStartRequest ;
return proto . hiddifyrpc . TunnelStartRequest . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . TunnelStartRequest } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . TunnelStartRequest }
* /
proto . hiddifyrpc . TunnelStartRequest . deserializeBinaryFromReader = function ( msg , reader ) {
while ( reader . nextField ( ) ) {
if ( reader . isEndGroup ( ) ) {
break ;
}
var field = reader . getFieldNumber ( ) ;
switch ( field ) {
case 1 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setIpv6 ( value ) ;
break ;
case 2 :
var value = /** @type {number} */ ( reader . readInt32 ( ) ) ;
msg . setServerPort ( value ) ;
break ;
case 3 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setStrictRoute ( value ) ;
break ;
case 4 :
var value = /** @type {boolean} */ ( reader . readBool ( ) ) ;
msg . setEndpointIndependentNat ( value ) ;
break ;
case 5 :
var value = /** @type {string} */ ( reader . readString ( ) ) ;
msg . setStack ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . TunnelStartRequest . 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 . TunnelStartRequest } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . TunnelStartRequest . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getIpv6 ( ) ;
if ( f ) {
writer . writeBool (
1 ,
f
) ;
}
f = message . getServerPort ( ) ;
if ( f !== 0 ) {
writer . writeInt32 (
2 ,
f
) ;
}
f = message . getStrictRoute ( ) ;
if ( f ) {
writer . writeBool (
3 ,
f
) ;
}
f = message . getEndpointIndependentNat ( ) ;
if ( f ) {
writer . writeBool (
4 ,
f
) ;
}
f = message . getStack ( ) ;
if ( f . length > 0 ) {
writer . writeString (
5 ,
f
) ;
}
} ;
/ * *
* optional bool ipv6 = 1 ;
* @ return { boolean }
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . getIpv6 = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 1 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . TunnelStartRequest } returns this
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . setIpv6 = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 1 , value ) ;
} ;
/ * *
* optional int32 server _port = 2 ;
* @ return { number }
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . getServerPort = function ( ) {
return /** @type {number} */ ( jspb . Message . getFieldWithDefault ( this , 2 , 0 ) ) ;
} ;
/ * *
* @ param { number } value
* @ return { ! proto . hiddifyrpc . TunnelStartRequest } returns this
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . setServerPort = function ( value ) {
return jspb . Message . setProto3IntField ( this , 2 , value ) ;
} ;
/ * *
* optional bool strict _route = 3 ;
* @ return { boolean }
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . getStrictRoute = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 3 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . TunnelStartRequest } returns this
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . setStrictRoute = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 3 , value ) ;
} ;
/ * *
* optional bool endpoint _independent _nat = 4 ;
* @ return { boolean }
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . getEndpointIndependentNat = function ( ) {
return /** @type {boolean} */ ( jspb . Message . getBooleanFieldWithDefault ( this , 4 , false ) ) ;
} ;
/ * *
* @ param { boolean } value
* @ return { ! proto . hiddifyrpc . TunnelStartRequest } returns this
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . setEndpointIndependentNat = function ( value ) {
return jspb . Message . setProto3BooleanField ( this , 4 , value ) ;
} ;
/ * *
* optional string stack = 5 ;
* @ return { string }
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . getStack = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 5 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . TunnelStartRequest } returns this
* /
proto . hiddifyrpc . TunnelStartRequest . prototype . setStack = function ( value ) {
return jspb . Message . setProto3StringField ( this , 5 , 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 . TunnelResponse . prototype . toObject = function ( opt _includeInstance ) {
return proto . hiddifyrpc . TunnelResponse . 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 . TunnelResponse } msg The msg instance to transform .
* @ return { ! Object }
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . TunnelResponse . toObject = function ( includeInstance , msg ) {
var f , obj = {
message : jspb . Message . getFieldWithDefault ( msg , 1 , "" )
} ;
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 . TunnelResponse }
* /
proto . hiddifyrpc . TunnelResponse . deserializeBinary = function ( bytes ) {
var reader = new jspb . BinaryReader ( bytes ) ;
var msg = new proto . hiddifyrpc . TunnelResponse ;
return proto . hiddifyrpc . TunnelResponse . deserializeBinaryFromReader ( msg , reader ) ;
} ;
/ * *
* Deserializes binary data ( in protobuf wire format ) from the
* given reader into the given message object .
* @ param { ! proto . hiddifyrpc . TunnelResponse } msg The message object to deserialize into .
* @ param { ! jspb . BinaryReader } reader The BinaryReader to use .
* @ return { ! proto . hiddifyrpc . TunnelResponse }
* /
proto . hiddifyrpc . TunnelResponse . 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 . setMessage ( value ) ;
break ;
default :
reader . skipField ( ) ;
break ;
}
}
return msg ;
} ;
/ * *
* Serializes the message to binary data ( in protobuf wire format ) .
* @ return { ! Uint8Array }
* /
proto . hiddifyrpc . TunnelResponse . prototype . serializeBinary = function ( ) {
var writer = new jspb . BinaryWriter ( ) ;
proto . hiddifyrpc . TunnelResponse . 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 . TunnelResponse } message
* @ param { ! jspb . BinaryWriter } writer
* @ suppress { unusedLocalVariables } f is only used for nested messages
* /
proto . hiddifyrpc . TunnelResponse . serializeBinaryToWriter = function ( message , writer ) {
var f = undefined ;
f = message . getMessage ( ) ;
if ( f . length > 0 ) {
writer . writeString (
1 ,
f
) ;
}
} ;
/ * *
* optional string message = 1 ;
* @ return { string }
* /
proto . hiddifyrpc . TunnelResponse . prototype . getMessage = function ( ) {
return /** @type {string} */ ( jspb . Message . getFieldWithDefault ( this , 1 , "" ) ) ;
} ;
/ * *
* @ param { string } value
* @ return { ! proto . hiddifyrpc . TunnelResponse } returns this
* /
proto . hiddifyrpc . TunnelResponse . prototype . setMessage = function ( value ) {
return jspb . Message . setProto3StringField ( this , 1 , value ) ;
} ;
/ * *
* @ enum { number }
* /
proto . hiddifyrpc . CoreState = {
STOPPED : 0 ,
STARTING : 1 ,
STARTED : 2 ,
STOPPING : 3
} ;
/ * *
* @ enum { number }
* /
proto . hiddifyrpc . MessageType = {
EMPTY : 0 ,
EMPTY _CONFIGURATION : 1 ,
START _COMMAND _SERVER : 2 ,
CREATE _SERVICE : 3 ,
START _SERVICE : 4 ,
UNEXPECTED _ERROR : 5 ,
ALREADY _STARTED : 6 ,
ALREADY _STOPPED : 7 ,
INSTANCE _NOT _FOUND : 8 ,
INSTANCE _NOT _STOPPED : 9 ,
INSTANCE _NOT _STARTED : 10 ,
ERROR _BUILDING _CONFIG : 11 ,
ERROR _PARSING _CONFIG : 12 ,
ERROR _READING _CONFIG : 13
} ;
/ * *
* @ enum { number }
* /
proto . hiddifyrpc . LogLevel = {
DEBUG : 0 ,
INFO : 1 ,
WARNING : 2 ,
ERROR : 3 ,
FATAL : 4
} ;
/ * *
* @ enum { number }
* /
proto . hiddifyrpc . LogType = {
CORE : 0 ,
SERVICE : 1 ,
CONFIG : 2
} ;
goog . object . extend ( exports , proto . hiddifyrpc ) ;
} , { "./base_pb.js" : 1 , "google-protobuf" : 12 } ] , 12 : [ function ( require , module , exports ) {
( function ( global ) { ( function ( ) {
/ *
Copyright The Closure Library Authors .
SPDX - License - Identifier : Apache - 2.0
* /
var aa = "function" == typeof Object . defineProperties ? Object . defineProperty : function ( a , b , c ) { a != Array . prototype && a != Object . prototype && ( a [ b ] = c . value ) } , e = "undefined" != typeof window && window === this ? this : "undefined" != typeof global && null != global ? global : this ; function ba ( a , b ) { if ( b ) { var c = e ; a = a . split ( "." ) ; for ( var d = 0 ; d < a . length - 1 ; d ++ ) { var f = a [ d ] ; f in c || ( c [ f ] = { } ) ; c = c [ f ] } a = a [ a . length - 1 ] ; d = c [ a ] ; b = b ( d ) ; b != d && null != b && aa ( c , a , { configurable : ! 0 , writable : ! 0 , value : b } ) } }
function ca ( a ) { var b = 0 ; return function ( ) { return b < a . length ? { done : ! 1 , value : a [ b ++ ] } : { done : ! 0 } } } function da ( ) { da = function ( ) { } ; e . Symbol || ( e . Symbol = ea ) } function fa ( a , b ) { this . a = a ; aa ( this , "description" , { configurable : ! 0 , writable : ! 0 , value : b } ) } fa . prototype . toString = function ( ) { return this . a } ; var ea = function ( ) { function a ( c ) { if ( this instanceof a ) throw new TypeError ( "Symbol is not a constructor" ) ; return new fa ( "jscomp_symbol_" + ( c || "" ) + "_" + b ++ , c ) } var b = 0 ; return a } ( ) ;
function ha ( ) { da ( ) ; var a = e . Symbol . iterator ; a || ( a = e . Symbol . iterator = e . Symbol ( "Symbol.iterator" ) ) ; "function" != typeof Array . prototype [ a ] && aa ( Array . prototype , a , { configurable : ! 0 , writable : ! 0 , value : function ( ) { return ia ( ca ( this ) ) } } ) ; ha = function ( ) { } } function ia ( a ) { ha ( ) ; a = { next : a } ; a [ e . Symbol . iterator ] = function ( ) { return this } ; return a }
function ja ( a , b ) { ha ( ) ; a instanceof String && ( a += "" ) ; var c = 0 , d = { next : function ( ) { if ( c < a . length ) { var f = c ++ ; return { value : b ( f , a [ f ] ) , done : ! 1 } } d . next = function ( ) { return { done : ! 0 , value : void 0 } } ; return d . next ( ) } } ; d [ Symbol . iterator ] = function ( ) { return d } ; return d } ba ( "Array.prototype.entries" , function ( a ) { return a ? a : function ( ) { return ja ( this , function ( b , c ) { return [ b , c ] } ) } } ) ; var ka = this || self ;
function g ( a , b , c ) { a = a . split ( "." ) ; c = c || ka ; a [ 0 ] in c || "undefined" == typeof c . execScript || c . execScript ( "var " + a [ 0 ] ) ; for ( var d ; a . length && ( d = a . shift ( ) ) ; ) a . length || void 0 === b ? c [ d ] && c [ d ] !== Object . prototype [ d ] ? c = c [ d ] : c = c [ d ] = { } : c [ d ] = b }
function k ( a ) { var b = typeof a ; if ( "object" == b ) if ( a ) { if ( a instanceof Array ) return "array" ; if ( a instanceof Object ) return b ; var c = Object . prototype . toString . call ( a ) ; if ( "[object Window]" == c ) return "object" ; if ( "[object Array]" == c || "number" == typeof a . length && "undefined" != typeof a . splice && "undefined" != typeof a . propertyIsEnumerable && ! a . propertyIsEnumerable ( "splice" ) ) return "array" ; if ( "[object Function]" == c || "undefined" != typeof a . call && "undefined" != typeof a . propertyIsEnumerable && ! a . propertyIsEnumerable ( "call" ) ) return "function" } else return "null" ;
else if ( "function" == b && "undefined" == typeof a . call ) return "object" ; return b } function la ( a ) { var b = typeof a ; return "object" == b && null != a || "function" == b } function ma ( a , b , c ) { g ( a , b , c ) } function na ( a , b ) { function c ( ) { } c . prototype = b . prototype ; a . prototype = new c ; a . prototype . constructor = a } ; var oa = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf" . split ( " " ) ; function pa ( a , b ) { for ( var c , d , f = 1 ; f < arguments . length ; f ++ ) { d = arguments [ f ] ; for ( c in d ) a [ c ] = d [ c ] ; for ( var h = 0 ; h < oa . length ; h ++ ) c = oa [ h ] , Object . prototype . hasOwnProperty . call ( d , c ) && ( a [ c ] = d [ c ] ) } } ; var qa = Array . prototype . forEach ? function ( a , b ) { Array . prototype . forEach . call ( a , b , void 0 ) } : function ( a , b ) { for ( var c = a . length , d = "string" === typeof a ? a . split ( "" ) : a , f = 0 ; f < c ; f ++ ) f in d && b . call ( void 0 , d [ f ] , f , a ) } , l = Array . prototype . map ? function ( a , b ) { return Array . prototype . map . call ( a , b , void 0 ) } : function ( a , b ) { for ( var c = a . length , d = Array ( c ) , f = "string" === typeof a ? a . split ( "" ) : a , h = 0 ; h < c ; h ++ ) h in f && ( d [ h ] = b . call ( void 0 , f [ h ] , h , a ) ) ; return d } ;
function ra ( a , b , c ) { return 2 >= arguments . length ? Array . prototype . slice . call ( a , b ) : Array . prototype . slice . call ( a , b , c ) } ; function sa ( a , b , c , d ) { var f = "Assertion failed" ; if ( c ) { f += ": " + c ; var h = d } else a && ( f += ": " + a , h = b ) ; throw Error ( f , h || [ ] ) ; } function n ( a , b , c ) { for ( var d = [ ] , f = 2 ; f < arguments . length ; ++ f ) d [ f - 2 ] = arguments [ f ] ; a || sa ( "" , null , b , d ) ; return a } function ta ( a , b , c ) { for ( var d = [ ] , f = 2 ; f < arguments . length ; ++ f ) d [ f - 2 ] = arguments [ f ] ; "string" !== typeof a && sa ( "Expected string but got %s: %s." , [ k ( a ) , a ] , b , d ) }
function ua ( a , b , c ) { for ( var d = [ ] , f = 2 ; f < arguments . length ; ++ f ) d [ f - 2 ] = arguments [ f ] ; Array . isArray ( a ) || sa ( "Expected array but got %s: %s." , [ k ( a ) , a ] , b , d ) } function p ( a , b ) { for ( var c = [ ] , d = 1 ; d < arguments . length ; ++ d ) c [ d - 1 ] = arguments [ d ] ; throw Error ( "Failure" + ( a ? ": " + a : "" ) , c ) ; } function q ( a , b , c , d ) { for ( var f = [ ] , h = 3 ; h < arguments . length ; ++ h ) f [ h - 3 ] = arguments [ h ] ; a instanceof b || sa ( "Expected instanceof %s but got %s." , [ va ( b ) , va ( a ) ] , c , f ) }
function va ( a ) { return a instanceof Function ? a . displayName || a . name || "unknown type name" : a instanceof Object ? a . constructor . displayName || a . constructor . name || Object . prototype . toString . call ( a ) : null === a ? "null" : typeof a } ; function r ( a , b ) { this . c = a ; this . b = b ; this . a = { } ; this . arrClean = ! 0 ; if ( 0 < this . c . length ) { for ( a = 0 ; a < this . c . length ; a ++ ) { b = this . c [ a ] ; var c = b [ 0 ] ; this . a [ c . toString ( ) ] = new wa ( c , b [ 1 ] ) } this . arrClean = ! 0 } } g ( "jspb.Map" , r , void 0 ) ;
r . prototype . g = function ( ) { if ( this . arrClean ) { if ( this . b ) { var a = this . a , b ; for ( b in a ) if ( Object . prototype . hasOwnProperty . call ( a , b ) ) { var c = a [ b ] . a ; c && c . g ( ) } } } else { this . c . length = 0 ; a = u ( this ) ; a . sort ( ) ; for ( b = 0 ; b < a . length ; b ++ ) { var d = this . a [ a [ b ] ] ; ( c = d . a ) && c . g ( ) ; this . c . push ( [ d . key , d . value ] ) } this . arrClean = ! 0 } return this . c } ; r . prototype . toArray = r . prototype . g ;
r . prototype . Mc = function ( a , b ) { for ( var c = this . g ( ) , d = [ ] , f = 0 ; f < c . length ; f ++ ) { var h = this . a [ c [ f ] [ 0 ] . toString ( ) ] ; v ( this , h ) ; var m = h . a ; m ? ( n ( b ) , d . push ( [ h . key , b ( a , m ) ] ) ) : d . push ( [ h . key , h . value ] ) } return d } ; r . prototype . toObject = r . prototype . Mc ; r . fromObject = function ( a , b , c ) { b = new r ( [ ] , b ) ; for ( var d = 0 ; d < a . length ; d ++ ) { var f = a [ d ] [ 0 ] , h = c ( a [ d ] [ 1 ] ) ; b . set ( f , h ) } return b } ; function w ( a ) { this . a = 0 ; this . b = a } w . prototype . next = function ( ) { return this . a < this . b . length ? { done : ! 1 , value : this . b [ this . a ++ ] } : { done : ! 0 , value : void 0 } } ;
"undefined" != typeof Symbol && ( w . prototype [ Symbol . iterator ] = function ( ) { return this } ) ; r . prototype . Jb = function ( ) { return u ( this ) . length } ; r . prototype . getLength = r . prototype . Jb ; r . prototype . clear = function ( ) { this . a = { } ; this . arrClean = ! 1 } ; r . prototype . clear = r . prototype . clear ; r . prototype . Cb = function ( a ) { a = a . toString ( ) ; var b = this . a . hasOwnProperty ( a ) ; delete this . a [ a ] ; this . arrClean = ! 1 ; return b } ; r . prototype . del = r . prototype . Cb ;
r . prototype . Eb = function ( ) { var a = [ ] , b = u ( this ) ; b . sort ( ) ; for ( var c = 0 ; c < b . length ; c ++ ) { var d = this . a [ b [ c ] ] ; a . push ( [ d . key , d . value ] ) } return a } ; r . prototype . getEntryList = r . prototype . Eb ; r . prototype . entries = function ( ) { var a = [ ] , b = u ( this ) ; b . sort ( ) ; for ( var c = 0 ; c < b . length ; c ++ ) { var d = this . a [ b [ c ] ] ; a . push ( [ d . key , v ( this , d ) ] ) } return new w ( a ) } ; r . prototype . entries = r . prototype . entries ; r . prototype . keys = function ( ) { var a = [ ] , b = u ( this ) ; b . sort ( ) ; for ( var c = 0 ; c < b . length ; c ++ ) a . push ( this . a [ b [ c ] ] . key ) ; return new w ( a ) } ;
r . prototype . keys = r . prototype . keys ; r . prototype . values = function ( ) { var a = [ ] , b = u ( this ) ; b . sort ( ) ; for ( var c = 0 ; c < b . length ; c ++ ) a . push ( v ( this , this . a [ b [ c ] ] ) ) ; return new w ( a ) } ; r . prototype . values = r . prototype . values ; r . prototype . forEach = function ( a , b ) { var c = u ( this ) ; c . sort ( ) ; for ( var d = 0 ; d < c . length ; d ++ ) { var f = this . a [ c [ d ] ] ; a . call ( b , v ( this , f ) , f . key , this ) } } ; r . prototype . forEach = r . prototype . forEach ;
r . prototype . set = function ( a , b ) { var c = new wa ( a ) ; this . b ? ( c . a = b , c . value = b . g ( ) ) : c . value = b ; this . a [ a . toString ( ) ] = c ; this . arrClean = ! 1 ; return this } ; r . prototype . set = r . prototype . set ; function v ( a , b ) { return a . b ? ( b . a || ( b . a = new a . b ( b . value ) ) , b . a ) : b . value } r . prototype . get = function ( a ) { if ( a = this . a [ a . toString ( ) ] ) return v ( this , a ) } ; r . prototype . get = r . prototype . get ; r . prototype . has = function ( a ) { return a . toString ( ) in this . a } ; r . prototype . has = r . prototype . has ;
r . prototype . Jc = function ( a , b , c , d , f ) { var h = u ( this ) ; h . sort ( ) ; for ( var m = 0 ; m < h . length ; m ++ ) { var t = this . a [ h [ m ] ] ; b . Va ( a ) ; c . call ( b , 1 , t . key ) ; this . b ? d . call ( b , 2 , v ( this , t ) , f ) : d . call ( b , 2 , t . value ) ; b . Ya ( ) } } ; r . prototype . serializeBinary = r . prototype . Jc ; r . deserializeBinary = function ( a , b , c , d , f , h , m ) { for ( ; b . oa ( ) && ! b . bb ( ) ; ) { var t = b . c ; 1 == t ? h = c . call ( b ) : 2 == t && ( a . b ? ( n ( f ) , m || ( m = new a . b ) , d . call ( b , m , f ) ) : m = d . call ( b ) ) } n ( void 0 != h ) ; n ( void 0 != m ) ; a . set ( h , m ) } ;
function u ( a ) { a = a . a ; var b = [ ] , c ; for ( c in a ) Object . prototype . hasOwnProperty . call ( a , c ) && b . push ( c ) ; return b } function wa ( a , b ) { this . key = a ; this . value = b ; this . a = void 0 } ; function xa ( a ) { if ( 8192 >= a . length ) return String . fromCharCode . apply ( null , a ) ; for ( var b = "" , c = 0 ; c < a . length ; c += 8192 ) b += String . fromCharCode . apply ( null , ra ( a , c , c + 8192 ) ) ; return b } ; var ya = { "\x00" : "\\0" , "\b" : "\\b" , "\f" : "\\f" , "\n" : "\\n" , "\r" : "\\r" , "\t" : "\\t" , "\x0B" : "\\x0B" , '"' : '\\"' , "\\" : "\\\\" , "<" : "\\u003C" } , za = { "'" : "\\'" } ; var Aa = { } , x = null ; function Ba ( a , b ) { void 0 === b && ( b = 0 ) ; Ca ( ) ; b = Aa [ b ] ; for ( var c = [ ] , d = 0 ; d < a . length ; d += 3 ) { var f = a [ d ] , h = d + 1 < a . length , m = h ? a [ d + 1 ] : 0 , t = d + 2 < a . length , B = t ? a [ d + 2 ] : 0 , M = f >> 2 ; f = ( f & 3 ) << 4 | m >> 4 ; m = ( m & 15 ) << 2 | B >> 6 ; B &= 63 ; t || ( B = 64 , h || ( m = 64 ) ) ; c . push ( b [ M ] , b [ f ] , b [ m ] || "" , b [ B ] || "" ) } return c . join ( "" ) } function Da ( a ) { var b = a . length , c = 3 * b / 4 ; c % 3 ? c = Math . floor ( c ) : - 1 != "=." . indexOf ( a [ b - 1 ] ) && ( c = - 1 != "=." . indexOf ( a [ b - 2 ] ) ? c - 2 : c - 1 ) ; var d = new Uint8Array ( c ) , f = 0 ; Ea ( a , function ( h ) { d [ f ++ ] = h } ) ; return d . subarray ( 0 , f ) }
function Ea ( a , b ) { function c ( B ) { for ( ; d < a . length ; ) { var M = a . charAt ( d ++ ) , La = x [ M ] ; if ( null != La ) return La ; if ( ! /^[\s\xa0]*$/ . test ( M ) ) throw Error ( "Unknown base64 encoding at char: " + M ) ; } return B } Ca ( ) ; for ( var d = 0 ; ; ) { var f = c ( - 1 ) , h = c ( 0 ) , m = c ( 64 ) , t = c ( 64 ) ; if ( 64 === t && - 1 === f ) break ; b ( f << 2 | h >> 4 ) ; 64 != m && ( b ( h << 4 & 240 | m >> 2 ) , 64 != t && b ( m << 6 & 192 | t ) ) } }
function Ca ( ) { if ( ! x ) { x = { } ; for ( var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" . split ( "" ) , b = [ "+/=" , "+/" , "-_=" , "-_." , "-_" ] , c = 0 ; 5 > c ; c ++ ) { var d = a . concat ( b [ c ] . split ( "" ) ) ; Aa [ c ] = d ; for ( var f = 0 ; f < d . length ; f ++ ) { var h = d [ f ] ; void 0 === x [ h ] && ( x [ h ] = f ) } } } } ; g ( "jspb.ConstBinaryMessage" , function ( ) { } , void 0 ) ; g ( "jspb.BinaryMessage" , function ( ) { } , void 0 ) ; g ( "jspb.BinaryConstants.FieldType" , { yb : - 1 , ee : 1 , FLOAT : 2 , ke : 3 , te : 4 , je : 5 , xb : 6 , wb : 7 , BOOL : 8 , re : 9 , ie : 10 , le : 11 , ce : 12 , se : 13 , ge : 14 , me : 15 , ne : 16 , oe : 17 , pe : 18 , he : 30 , ve : 31 } , void 0 ) ; g ( "jspb.BinaryConstants.WireType" , { yb : - 1 , ue : 0 , xb : 1 , de : 2 , qe : 3 , fe : 4 , wb : 5 } , void 0 ) ;
g ( "jspb.BinaryConstants.FieldTypeToWireType" , function ( a ) { switch ( a ) { case 5 : case 3 : case 13 : case 4 : case 17 : case 18 : case 8 : case 14 : case 31 : return 0 ; case 1 : case 6 : case 16 : case 30 : return 1 ; case 9 : case 11 : case 12 : return 2 ; case 2 : case 7 : case 15 : return 5 ; default : return - 1 } } , void 0 ) ; g ( "jspb.BinaryConstants.INVALID_FIELD_NUMBER" , - 1 , void 0 ) ; g ( "jspb.BinaryConstants.FLOAT32_EPS" , 1.401298464324817 E - 45 , void 0 ) ; g ( "jspb.BinaryConstants.FLOAT32_MIN" , 1.1754943508222875 E - 38 , void 0 ) ;
g ( "jspb.BinaryConstants.FLOAT32_MAX" , 3.4028234663852886 E38 , void 0 ) ; g ( "jspb.BinaryConstants.FLOAT64_EPS" , 4.9 E - 324 , void 0 ) ; g ( "jspb.BinaryConstants.FLOAT64_MIN" , 2.2250738585072014 E - 308 , void 0 ) ; g ( "jspb.BinaryConstants.FLOAT64_MAX" , 1.7976931348623157 E308 , void 0 ) ; g ( "jspb.BinaryConstants.TWO_TO_20" , 1048576 , void 0 ) ; g ( "jspb.BinaryConstants.TWO_TO_23" , 8388608 , void 0 ) ; g ( "jspb.BinaryConstants.TWO_TO_31" , 2147483648 , void 0 ) ; g ( "jspb.BinaryConstants.TWO_TO_32" , 4294967296 , void 0 ) ;
g ( "jspb.BinaryConstants.TWO_TO_52" , 4503599627370496 , void 0 ) ; g ( "jspb.BinaryConstants.TWO_TO_63" , 0x7fffffffffffffff , void 0 ) ; g ( "jspb.BinaryConstants.TWO_TO_64" , 1.8446744073709552 E19 , void 0 ) ; g ( "jspb.BinaryConstants.ZERO_HASH" , "\x00\x00\x00\x00\x00\x00\x00\x00" , void 0 ) ; var y = 0 , z = 0 ; g ( "jspb.utils.getSplit64Low" , function ( ) { return y } , void 0 ) ; g ( "jspb.utils.getSplit64High" , function ( ) { return z } , void 0 ) ; function Fa ( a ) { var b = a >>> 0 ; a = Math . floor ( ( a - b ) / 4294967296 ) >>> 0 ; y = b ; z = a } g ( "jspb.utils.splitUint64" , Fa , void 0 ) ; function A ( a ) { var b = 0 > a ; a = Math . abs ( a ) ; var c = a >>> 0 ; a = Math . floor ( ( a - c ) / 4294967296 ) ; a >>>= 0 ; b && ( a = ~ a >>> 0 , c = ( ~ c >>> 0 ) + 1 , 4294967295 < c && ( c = 0 , a ++ , 4294967295 < a && ( a = 0 ) ) ) ; y = c ; z = a } g ( "jspb.utils.splitInt64" , A , void 0 ) ;
function Ga ( a ) { var b = 0 > a ; a = 2 * Math . abs ( a ) ; Fa ( a ) ; a = y ; var c = z ; b && ( 0 == a ? 0 == c ? c = a = 4294967295 : ( c -- , a = 4294967295 ) : a -- ) ; y = a ; z = c } g ( "jspb.utils.splitZigzag64" , Ga , void 0 ) ;
function Ha ( a ) { var b = 0 > a ? 1 : 0 ; a = b ? - a : a ; if ( 0 === a ) 0 < 1 / a ? y = z = 0 : ( z = 0 , y = 2147483648 ) ; else if ( isNaN ( a ) ) z = 0 , y = 2147483647 ; else if ( 3.4028234663852886 E38 < a ) z = 0 , y = ( b << 31 | 2139095040 ) >>> 0 ; else if ( 1.1754943508222875 E - 38 > a ) a = Math . round ( a / Math . pow ( 2 , - 149 ) ) , z = 0 , y = ( b << 31 | a ) >>> 0 ; else { var c = Math . floor ( Math . log ( a ) / Math . LN2 ) ; a *= Math . pow ( 2 , - c ) ; a = Math . round ( 8388608 * a ) ; 16777216 <= a && ++ c ; z = 0 ; y = ( b << 31 | c + 127 << 23 | a & 8388607 ) >>> 0 } } g ( "jspb.utils.splitFloat32" , Ha , void 0 ) ;
function Ia ( a ) { var b = 0 > a ? 1 : 0 ; a = b ? - a : a ; if ( 0 === a ) z = 0 < 1 / a ? 0 : 2147483648 , y = 0 ; else if ( isNaN ( a ) ) z = 2147483647 , y = 4294967295 ; else if ( 1.7976931348623157 E308 < a ) z = ( b << 31 | 2146435072 ) >>> 0 , y = 0 ; else if ( 2.2250738585072014 E - 308 > a ) a /= Math . pow ( 2 , - 1074 ) , z = ( b << 31 | a / 4294967296 ) >>> 0 , y = a >>> 0 ; else { var c = a , d = 0 ; if ( 2 <= c ) for ( ; 2 <= c && 1023 > d ; ) d ++ , c /= 2 ; else for ( ; 1 > c && - 1022 < d ; ) c *= 2 , d -- ; a *= Math . pow ( 2 , - d ) ; z = ( b << 31 | d + 1023 << 20 | 1048576 * a & 1048575 ) >>> 0 ; y = 4503599627370496 * a >>> 0 } } g ( "jspb.utils.splitFloat64" , Ia , void 0 ) ;
function C ( a ) { var b = a . charCodeAt ( 4 ) , c = a . charCodeAt ( 5 ) , d = a . charCodeAt ( 6 ) , f = a . charCodeAt ( 7 ) ; y = a . charCodeAt ( 0 ) + ( a . charCodeAt ( 1 ) << 8 ) + ( a . charCodeAt ( 2 ) << 16 ) + ( a . charCodeAt ( 3 ) << 24 ) >>> 0 ; z = b + ( c << 8 ) + ( d << 16 ) + ( f << 24 ) >>> 0 } g ( "jspb.utils.splitHash64" , C , void 0 ) ; function D ( a , b ) { return 4294967296 * b + ( a >>> 0 ) } g ( "jspb.utils.joinUint64" , D , void 0 ) ; function E ( a , b ) { var c = b & 2147483648 ; c && ( a = ~ a + 1 >>> 0 , b = ~ b >>> 0 , 0 == a && ( b = b + 1 >>> 0 ) ) ; a = D ( a , b ) ; return c ? - a : a } g ( "jspb.utils.joinInt64" , E , void 0 ) ;
function Ja ( a , b , c ) { var d = b >> 31 ; return c ( a << 1 ^ d , ( b << 1 | a >>> 31 ) ^ d ) } g ( "jspb.utils.toZigzag64" , Ja , void 0 ) ; function Ka ( a , b ) { return Ma ( a , b , E ) } g ( "jspb.utils.joinZigzag64" , Ka , void 0 ) ; function Ma ( a , b , c ) { var d = - ( a & 1 ) ; return c ( ( a >>> 1 | b << 31 ) ^ d , b >>> 1 ^ d ) } g ( "jspb.utils.fromZigzag64" , Ma , void 0 ) ; function Na ( a ) { var b = 2 * ( a >> 31 ) + 1 , c = a >>> 23 & 255 ; a &= 8388607 ; return 255 == c ? a ? NaN : Infinity * b : 0 == c ? b * Math . pow ( 2 , - 149 ) * a : b * Math . pow ( 2 , c - 150 ) * ( a + Math . pow ( 2 , 23 ) ) } g ( "jspb.utils.joinFloat32" , Na , void 0 ) ;
function Oa ( a , b ) { var c = 2 * ( b >> 31 ) + 1 , d = b >>> 20 & 2047 ; a = 4294967296 * ( b & 1048575 ) + a ; return 2047 == d ? a ? NaN : Infinity * c : 0 == d ? c * Math . pow ( 2 , - 1074 ) * a : c * Math . pow ( 2 , d - 1075 ) * ( a + 4503599627370496 ) } g ( "jspb.utils.joinFloat64" , Oa , void 0 ) ; function Pa ( a , b ) { return String . fromCharCode ( a >>> 0 & 255 , a >>> 8 & 255 , a >>> 16 & 255 , a >>> 24 & 255 , b >>> 0 & 255 , b >>> 8 & 255 , b >>> 16 & 255 , b >>> 24 & 255 ) } g ( "jspb.utils.joinHash64" , Pa , void 0 ) ; g ( "jspb.utils.DIGITS" , "0123456789abcdef" . split ( "" ) , void 0 ) ;
function F ( a , b ) { function c ( f , h ) { f = f ? String ( f ) : "" ; return h ? "0000000" . slice ( f . length ) + f : f } if ( 2097151 >= b ) return "" + D ( a , b ) ; var d = ( a >>> 24 | b << 8 ) >>> 0 & 16777215 ; b = b >> 16 & 65535 ; a = ( a & 16777215 ) + 6777216 * d + 6710656 * b ; d += 8147497 * b ; b *= 2 ; 1E7 <= a && ( d += Math . floor ( a / 1E7 ) , a %= 1E7 ) ; 1E7 <= d && ( b += Math . floor ( d / 1E7 ) , d %= 1E7 ) ; return c ( b , 0 ) + c ( d , b ) + c ( a , 1 ) } g ( "jspb.utils.joinUnsignedDecimalString" , F , void 0 ) ; function G ( a , b ) { var c = b & 2147483648 ; c && ( a = ~ a + 1 >>> 0 , b = ~ b + ( 0 == a ? 1 : 0 ) >>> 0 ) ; a = F ( a , b ) ; return c ? "-" + a : a }
g ( "jspb.utils.joinSignedDecimalString" , G , void 0 ) ; function Qa ( a , b ) { C ( a ) ; a = y ; var c = z ; return b ? G ( a , c ) : F ( a , c ) } g ( "jspb.utils.hash64ToDecimalString" , Qa , void 0 ) ; g ( "jspb.utils.hash64ArrayToDecimalStrings" , function ( a , b ) { for ( var c = Array ( a . length ) , d = 0 ; d < a . length ; d ++ ) c [ d ] = Qa ( a [ d ] , b ) ; return c } , void 0 ) ;
function H ( a ) { function b ( m , t ) { for ( var B = 0 ; 8 > B && ( 1 !== m || 0 < t ) ; B ++ ) t = m * f [ B ] + t , f [ B ] = t & 255 , t >>>= 8 } function c ( ) { for ( var m = 0 ; 8 > m ; m ++ ) f [ m ] = ~ f [ m ] & 255 } n ( 0 < a . length ) ; var d = ! 1 ; "-" === a [ 0 ] && ( d = ! 0 , a = a . slice ( 1 ) ) ; for ( var f = [ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] , h = 0 ; h < a . length ; h ++ ) b ( 10 , a . charCodeAt ( h ) - 48 ) ; d && ( c ( ) , b ( 1 , 1 ) ) ; return xa ( f ) } g ( "jspb.utils.decimalStringToHash64" , H , void 0 ) ; g ( "jspb.utils.splitDecimalString" , function ( a ) { C ( H ( a ) ) } , void 0 ) ; function Ra ( a ) { return String . fromCharCode ( 10 > a ? 48 + a : 87 + a ) }
function Sa ( a ) { return 97 <= a ? a - 97 + 10 : a - 48 } g ( "jspb.utils.hash64ToHexString" , function ( a ) { var b = Array ( 18 ) ; b [ 0 ] = "0" ; b [ 1 ] = "x" ; for ( var c = 0 ; 8 > c ; c ++ ) { var d = a . charCodeAt ( 7 - c ) ; b [ 2 * c + 2 ] = Ra ( d >> 4 ) ; b [ 2 * c + 3 ] = Ra ( d & 15 ) } return b . join ( "" ) } , void 0 ) ; g ( "jspb.utils.hexStringToHash64" , function ( a ) { a = a . toLowerCase ( ) ; n ( 18 == a . length ) ; n ( "0" == a [ 0 ] ) ; n ( "x" == a [ 1 ] ) ; for ( var b = "" , c = 0 ; 8 > c ; c ++ ) b = String . fromCharCode ( 16 * Sa ( a . charCodeAt ( 2 * c + 2 ) ) + Sa ( a . charCodeAt ( 2 * c + 3 ) ) ) + b ; return b } , void 0 ) ;
g ( "jspb.utils.hash64ToNumber" , function ( a , b ) { C ( a ) ; a = y ; var c = z ; return b ? E ( a , c ) : D ( a , c ) } , void 0 ) ; g ( "jspb.utils.numberToHash64" , function ( a ) { A ( a ) ; return Pa ( y , z ) } , void 0 ) ; g ( "jspb.utils.countVarints" , function ( a , b , c ) { for ( var d = 0 , f = b ; f < c ; f ++ ) d += a [ f ] >> 7 ; return c - b - d } , void 0 ) ;
g ( "jspb.utils.countVarintFields" , function ( a , b , c , d ) { var f = 0 ; d *= 8 ; if ( 128 > d ) for ( ; b < c && a [ b ++ ] == d ; ) for ( f ++ ; ; ) { var h = a [ b ++ ] ; if ( 0 == ( h & 128 ) ) break } else for ( ; b < c ; ) { for ( h = d ; 128 < h ; ) { if ( a [ b ] != ( h & 127 | 128 ) ) return f ; b ++ ; h >>= 7 } if ( a [ b ++ ] != h ) break ; for ( f ++ ; h = a [ b ++ ] , 0 != ( h & 128 ) ; ) ; } return f } , void 0 ) ; function Ta ( a , b , c , d , f ) { var h = 0 ; if ( 128 > d ) for ( ; b < c && a [ b ++ ] == d ; ) h ++ , b += f ; else for ( ; b < c ; ) { for ( var m = d ; 128 < m ; ) { if ( a [ b ++ ] != ( m & 127 | 128 ) ) return h ; m >>= 7 } if ( a [ b ++ ] != m ) break ; h ++ ; b += f } return h }
g ( "jspb.utils.countFixed32Fields" , function ( a , b , c , d ) { return Ta ( a , b , c , 8 * d + 5 , 4 ) } , void 0 ) ; g ( "jspb.utils.countFixed64Fields" , function ( a , b , c , d ) { return Ta ( a , b , c , 8 * d + 1 , 8 ) } , void 0 ) ; g ( "jspb.utils.countDelimitedFields" , function ( a , b , c , d ) { var f = 0 ; for ( d = 8 * d + 2 ; b < c ; ) { for ( var h = d ; 128 < h ; ) { if ( a [ b ++ ] != ( h & 127 | 128 ) ) return f ; h >>= 7 } if ( a [ b ++ ] != h ) break ; f ++ ; for ( var m = 0 , t = 1 ; h = a [ b ++ ] , m += ( h & 127 ) * t , t *= 128 , 0 != ( h & 128 ) ; ) ; b += m } return f } , void 0 ) ;
g ( "jspb.utils.debugBytesToTextFormat" , function ( a ) { var b = '"' ; if ( a ) { a = Ua ( a ) ; for ( var c = 0 ; c < a . length ; c ++ ) b += "\\x" , 16 > a [ c ] && ( b += "0" ) , b += a [ c ] . toString ( 16 ) } return b + '"' } , void 0 ) ;
g ( "jspb.utils.debugScalarToTextFormat" , function ( a ) { if ( "string" === typeof a ) { a = String ( a ) ; for ( var b = [ '"' ] , c = 0 ; c < a . length ; c ++ ) { var d = a . charAt ( c ) , f = d . charCodeAt ( 0 ) , h = c + 1 , m ; if ( ! ( m = ya [ d ] ) ) { if ( ! ( 31 < f && 127 > f ) ) if ( f = d , f in za ) d = za [ f ] ; else if ( f in ya ) d = za [ f ] = ya [ f ] ; else { m = f . charCodeAt ( 0 ) ; if ( 31 < m && 127 > m ) d = f ; else { if ( 256 > m ) { if ( d = "\\x" , 16 > m || 256 < m ) d += "0" } else d = "\\u" , 4096 > m && ( d += "0" ) ; d += m . toString ( 16 ) . toUpperCase ( ) } d = za [ f ] = d } m = d } b [ h ] = m } b . push ( '"' ) ; a = b . join ( "" ) } else a = a . toString ( ) ; return a } , void 0 ) ;
g ( "jspb.utils.stringToByteArray" , function ( a ) { for ( var b = new Uint8Array ( a . length ) , c = 0 ; c < a . length ; c ++ ) { var d = a . charCodeAt ( c ) ; if ( 255 < d ) throw Error ( "Conversion error: string contains codepoint outside of byte range" ) ; b [ c ] = d } return b } , void 0 ) ;
function Ua ( a ) { if ( a . constructor === Uint8Array ) return a ; if ( a . constructor === ArrayBuffer ) return new Uint8Array ( a ) ; if ( a . constructor === Array ) return new Uint8Array ( a ) ; if ( a . constructor === String ) return Da ( a ) ; if ( a instanceof Uint8Array ) return new Uint8Array ( a . buffer , a . byteOffset , a . byteLength ) ; p ( "Type not convertible to Uint8Array." ) ; return new Uint8Array ( 0 ) } g ( "jspb.utils.byteSourceToUint8Array" , Ua , void 0 ) ; function I ( a , b , c ) { this . b = null ; this . a = this . c = this . h = 0 ; this . v = ! 1 ; a && this . H ( a , b , c ) } g ( "jspb.BinaryDecoder" , I , void 0 ) ; var Va = [ ] ; I . getInstanceCacheLength = function ( ) { return Va . length } ; function Wa ( a , b , c ) { if ( Va . length ) { var d = Va . pop ( ) ; a && d . H ( a , b , c ) ; return d } return new I ( a , b , c ) } I . alloc = Wa ; I . prototype . Ca = function ( ) { this . clear ( ) ; 100 > Va . length && Va . push ( this ) } ; I . prototype . free = I . prototype . Ca ; I . prototype . clone = function ( ) { return Wa ( this . b , this . h , this . c - this . h ) } ; I . prototype . clone = I . prototype . clone ;
I . prototype . clear = function ( ) { this . b = null ; this . a = this . c = this . h = 0 ; this . v = ! 1 } ; I . prototype . clear = I . prototype . clear ; I . prototype . Y = function ( ) { return this . b } ; I . prototype . getBuffer = I . prototype . Y ; I . prototype . H = function ( a , b , c ) { this . b = Ua ( a ) ; this . h = void 0 !== b ? b : 0 ; this . c = void 0 !== c ? this . h + c : this . b . length ; this . a = this . h } ; I . prototype . setBlock = I . prototype . H ; I . prototype . Db = function ( ) { return this . c } ; I . prototype . getEnd = I . prototype . Db ; I . prototype . setEnd = function ( a ) { this . c = a } ; I . prototype . setEnd = I . prototype . setEnd ;
I . prototype . reset = function ( ) { this . a = this . h } ; I . prototype . reset = I . prototype . reset ; I . prototype . B = function ( ) { return this . a } ; I . prototype . getCursor = I . prototype . B ; I . prototype . Ma = function ( a ) { this . a = a } ; I . prototype . setCursor = I . prototype . Ma ; I . prototype . advance = function ( a ) { this . a += a ; n ( this . a <= this . c ) } ; I . prototype . advance = I . prototype . advance ; I . prototype . ya = function ( ) { return this . a == this . c } ; I . prototype . atEnd = I . prototype . ya ; I . prototype . Qb = function ( ) { return this . a > this . c } ; I . prototype . pastEnd = I . prototype . Qb ;
I . prototype . getError = function ( ) { return this . v || 0 > this . a || this . a > this . c } ; I . prototype . getError = I . prototype . getError ; I . prototype . w = function ( a ) { for ( var b = 128 , c = 0 , d = 0 , f = 0 ; 4 > f && 128 <= b ; f ++ ) b = this . b [ this . a ++ ] , c |= ( b & 127 ) << 7 * f ; 128 <= b && ( b = this . b [ this . a ++ ] , c |= ( b & 127 ) << 28 , d |= ( b & 127 ) >> 4 ) ; if ( 128 <= b ) for ( f = 0 ; 5 > f && 128 <= b ; f ++ ) b = this . b [ this . a ++ ] , d |= ( b & 127 ) << 7 * f + 3 ; if ( 128 > b ) return a ( c >>> 0 , d >>> 0 ) ; p ( "Failed to read varint, encoding is invalid." ) ; this . v = ! 0 } ; I . prototype . readSplitVarint64 = I . prototype . w ;
I . prototype . ea = function ( a ) { return this . w ( function ( b , c ) { return Ma ( b , c , a ) } ) } ; I . prototype . readSplitZigzagVarint64 = I . prototype . ea ; I . prototype . ta = function ( a ) { var b = this . b , c = this . a ; this . a += 8 ; for ( var d = 0 , f = 0 , h = c + 7 ; h >= c ; h -- ) d = d << 8 | b [ h ] , f = f << 8 | b [ h + 4 ] ; return a ( d , f ) } ; I . prototype . readSplitFixed64 = I . prototype . ta ; I . prototype . kb = function ( ) { for ( ; this . b [ this . a ] & 128 ; ) this . a ++ ; this . a ++ } ; I . prototype . skipVarint = I . prototype . kb ; I . prototype . mb = function ( a ) { for ( ; 128 < a ; ) this . a -- , a >>>= 7 ; this . a -- } ; I . prototype . unskipVarint = I . prototype . mb ;
I . prototype . o = function ( ) { var a = this . b ; var b = a [ this . a ] ; var c = b & 127 ; if ( 128 > b ) return this . a += 1 , n ( this . a <= this . c ) , c ; b = a [ this . a + 1 ] ; c |= ( b & 127 ) << 7 ; if ( 128 > b ) return this . a += 2 , n ( this . a <= this . c ) , c ; b = a [ this . a + 2 ] ; c |= ( b & 127 ) << 14 ; if ( 128 > b ) return this . a += 3 , n ( this . a <= this . c ) , c ; b = a [ this . a + 3 ] ; c |= ( b & 127 ) << 21 ; if ( 128 > b ) return this . a += 4 , n ( this . a <= this . c ) , c ; b = a [ this . a + 4 ] ; c |= ( b & 15 ) << 28 ; if ( 128 > b ) return this . a += 5 , n ( this . a <= this . c ) , c >>> 0 ; this . a += 5 ; 128 <= a [ this . a ++ ] && 128 <= a [ this . a ++ ] && 128 <= a [ this . a ++ ] && 128 <= a [ this . a ++ ] && 128 <=
a [ this . a ++ ] && n ( ! 1 ) ; n ( this . a <= this . c ) ; return c } ; I . prototype . readUnsignedVarint32 = I . prototype . o ; I . prototype . da = function ( ) { return ~ ~ this . o ( ) } ; I . prototype . readSignedVarint32 = I . prototype . da ; I . prototype . O = function ( ) { return this . o ( ) . toString ( ) } ; I . prototype . Ea = function ( ) { return this . da ( ) . toString ( ) } ; I . prototype . readSignedVarint32String = I . prototype . Ea ; I . prototype . Ia = function ( ) { var a = this . o ( ) ; return a >>> 1 ^ - ( a & 1 ) } ; I . prototype . readZigzagVarint32 = I . prototype . Ia ; I . prototype . Ga = function ( ) { return this . w ( D ) } ;
I . prototype . readUnsignedVarint64 = I . prototype . Ga ; I . prototype . Ha = function ( ) { return this . w ( F ) } ; I . prototype . readUnsignedVarint64String = I . prototype . Ha ; I . prototype . sa = function ( ) { return this . w ( E ) } ; I . prototype . readSignedVarint64 = I . prototype . sa ; I . prototype . Fa = function ( ) { return this . w ( G ) } ; I . prototype . readSignedVarint64String = I . prototype . Fa ; I . prototype . Ja = function ( ) { return this . w ( Ka ) } ; I . prototype . readZigzagVarint64 = I . prototype . Ja ; I . prototype . fb = function ( ) { return this . ea ( Pa ) } ;
I . prototype . readZigzagVarintHash64 = I . prototype . fb ; I . prototype . Ka = function ( ) { return this . ea ( G ) } ; I . prototype . readZigzagVarint64String = I . prototype . Ka ; I . prototype . Gc = function ( ) { var a = this . b [ this . a ] ; this . a += 1 ; n ( this . a <= this . c ) ; return a } ; I . prototype . readUint8 = I . prototype . Gc ; I . prototype . Ec = function ( ) { var a = this . b [ this . a ] , b = this . b [ this . a + 1 ] ; this . a += 2 ; n ( this . a <= this . c ) ; return a << 0 | b << 8 } ; I . prototype . readUint16 = I . prototype . Ec ;
I . prototype . m = function ( ) { var a = this . b [ this . a ] , b = this . b [ this . a + 1 ] , c = this . b [ this . a + 2 ] , d = this . b [ this . a + 3 ] ; this . a += 4 ; n ( this . a <= this . c ) ; return ( a << 0 | b << 8 | c << 16 | d << 24 ) >>> 0 } ; I . prototype . readUint32 = I . prototype . m ; I . prototype . ga = function ( ) { var a = this . m ( ) , b = this . m ( ) ; return D ( a , b ) } ; I . prototype . readUint64 = I . prototype . ga ; I . prototype . ha = function ( ) { var a = this . m ( ) , b = this . m ( ) ; return F ( a , b ) } ; I . prototype . readUint64String = I . prototype . ha ;
I . prototype . Xb = function ( ) { var a = this . b [ this . a ] ; this . a += 1 ; n ( this . a <= this . c ) ; return a << 24 >> 24 } ; I . prototype . readInt8 = I . prototype . Xb ; I . prototype . Vb = function ( ) { var a = this . b [ this . a ] , b = this . b [ this . a + 1 ] ; this . a += 2 ; n ( this . a <= this . c ) ; return ( a << 0 | b << 8 ) << 16 >> 16 } ; I . prototype . readInt16 = I . prototype . Vb ; I . prototype . P = function ( ) { var a = this . b [ this . a ] , b = this . b [ this . a + 1 ] , c = this . b [ this . a + 2 ] , d = this . b [ this . a + 3 ] ; this . a += 4 ; n ( this . a <= this . c ) ; return a << 0 | b << 8 | c << 16 | d << 24 } ; I . prototype . readInt32 = I . prototype . P ;
I . prototype . ba = function ( ) { var a = this . m ( ) , b = this . m ( ) ; return E ( a , b ) } ; I . prototype . readInt64 = I . prototype . ba ; I . prototype . ca = function ( ) { var a = this . m ( ) , b = this . m ( ) ; return G ( a , b ) } ; I . prototype . readInt64String = I . prototype . ca ; I . prototype . aa = function ( ) { var a = this . m ( ) ; return Na ( a , 0 ) } ; I . prototype . readFloat = I . prototype . aa ; I . prototype . Z = function ( ) { var a = this . m ( ) , b = this . m ( ) ; return Oa ( a , b ) } ; I . prototype . readDouble = I . prototype . Z ; I . prototype . pa = function ( ) { return ! ! this . b [ this . a ++ ] } ; I . prototype . readBool = I . prototype . pa ;
I . prototype . ra = function ( ) { return this . da ( ) } ; I . prototype . readEnum = I . prototype . ra ;
I . prototype . fa = function ( a ) { var b = this . b , c = this . a ; a = c + a ; for ( var d = [ ] , f = "" ; c < a ; ) { var h = b [ c ++ ] ; if ( 128 > h ) d . push ( h ) ; else if ( 192 > h ) continue ; else if ( 224 > h ) { var m = b [ c ++ ] ; d . push ( ( h & 31 ) << 6 | m & 63 ) } else if ( 240 > h ) { m = b [ c ++ ] ; var t = b [ c ++ ] ; d . push ( ( h & 15 ) << 12 | ( m & 63 ) << 6 | t & 63 ) } else if ( 248 > h ) { m = b [ c ++ ] ; t = b [ c ++ ] ; var B = b [ c ++ ] ; h = ( h & 7 ) << 18 | ( m & 63 ) << 12 | ( t & 63 ) << 6 | B & 63 ; h -= 65536 ; d . push ( ( h >> 10 & 1023 ) + 55296 , ( h & 1023 ) + 56320 ) } 8192 <= d . length && ( f += String . fromCharCode . apply ( null , d ) , d . length = 0 ) } f += xa ( d ) ; this . a = c ; return f } ;
I . prototype . readString = I . prototype . fa ; I . prototype . Dc = function ( ) { var a = this . o ( ) ; return this . fa ( a ) } ; I . prototype . readStringWithLength = I . prototype . Dc ; I . prototype . qa = function ( a ) { if ( 0 > a || this . a + a > this . b . length ) return this . v = ! 0 , p ( "Invalid byte length!" ) , new Uint8Array ( 0 ) ; var b = this . b . subarray ( this . a , this . a + a ) ; this . a += a ; n ( this . a <= this . c ) ; return b } ; I . prototype . readBytes = I . prototype . qa ; I . prototype . ia = function ( ) { return this . w ( Pa ) } ; I . prototype . readVarintHash64 = I . prototype . ia ;
I . prototype . $ = function ( ) { var a = this . b , b = this . a , c = a [ b ] , d = a [ b + 1 ] , f = a [ b + 2 ] , h = a [ b + 3 ] , m = a [ b + 4 ] , t = a [ b + 5 ] , B = a [ b + 6 ] ; a = a [ b + 7 ] ; this . a += 8 ; return String . fromCharCode ( c , d , f , h , m , t , B , a ) } ; I . prototype . readFixedHash64 = I . prototype . $ ; function J ( a , b , c ) { this . a = Wa ( a , b , c ) ; this . O = this . a . B ( ) ; this . b = this . c = - 1 ; this . h = ! 1 ; this . v = null } g ( "jspb.BinaryReader" , J , void 0 ) ; var K = [ ] ; J . clearInstanceCache = function ( ) { K = [ ] } ; J . getInstanceCacheLength = function ( ) { return K . length } ; function Xa ( a , b , c ) { if ( K . length ) { var d = K . pop ( ) ; a && d . a . H ( a , b , c ) ; return d } return new J ( a , b , c ) } J . alloc = Xa ; J . prototype . zb = Xa ; J . prototype . alloc = J . prototype . zb ; J . prototype . Ca = function ( ) { this . a . clear ( ) ; this . b = this . c = - 1 ; this . h = ! 1 ; this . v = null ; 100 > K . length && K . push ( this ) } ;
J . prototype . free = J . prototype . Ca ; J . prototype . Fb = function ( ) { return this . O } ; J . prototype . getFieldCursor = J . prototype . Fb ; J . prototype . B = function ( ) { return this . a . B ( ) } ; J . prototype . getCursor = J . prototype . B ; J . prototype . Y = function ( ) { return this . a . Y ( ) } ; J . prototype . getBuffer = J . prototype . Y ; J . prototype . Hb = function ( ) { return this . c } ; J . prototype . getFieldNumber = J . prototype . Hb ; J . prototype . Lb = function ( ) { return this . b } ; J . prototype . getWireType = J . prototype . Lb ; J . prototype . Mb = function ( ) { return 2 == this . b } ;
J . prototype . isDelimited = J . prototype . Mb ; J . prototype . bb = function ( ) { return 4 == this . b } ; J . prototype . isEndGroup = J . prototype . bb ; J . prototype . getError = function ( ) { return this . h || this . a . getError ( ) } ; J . prototype . getError = J . prototype . getError ; J . prototype . H = function ( a , b , c ) { this . a . H ( a , b , c ) ; this . b = this . c = - 1 } ; J . prototype . setBlock = J . prototype . H ; J . prototype . reset = function ( ) { this . a . reset ( ) ; this . b = this . c = - 1 } ; J . prototype . reset = J . prototype . reset ; J . prototype . advance = function ( a ) { this . a . advance ( a ) } ; J . prototype . advance = J . prototype . advance ;
J . prototype . oa = function ( ) { if ( this . a . ya ( ) ) return ! 1 ; if ( this . getError ( ) ) return p ( "Decoder hit an error" ) , ! 1 ; this . O = this . a . B ( ) ; var a = this . a . o ( ) , b = a >>> 3 ; a &= 7 ; if ( 0 != a && 5 != a && 1 != a && 2 != a && 3 != a && 4 != a ) return p ( "Invalid wire type: %s (at position %s)" , a , this . O ) , this . h = ! 0 , ! 1 ; this . c = b ; this . b = a ; return ! 0 } ; J . prototype . nextField = J . prototype . oa ; J . prototype . Oa = function ( ) { this . a . mb ( this . c << 3 | this . b ) } ; J . prototype . unskipHeader = J . prototype . Oa ;
J . prototype . Lc = function ( ) { var a = this . c ; for ( this . Oa ( ) ; this . oa ( ) && this . c == a ; ) this . C ( ) ; this . a . ya ( ) || this . Oa ( ) } ; J . prototype . skipMatchingFields = J . prototype . Lc ; J . prototype . lb = function ( ) { 0 != this . b ? ( p ( "Invalid wire type for skipVarintField" ) , this . C ( ) ) : this . a . kb ( ) } ; J . prototype . skipVarintField = J . prototype . lb ; J . prototype . gb = function ( ) { if ( 2 != this . b ) p ( "Invalid wire type for skipDelimitedField" ) , this . C ( ) ; else { var a = this . a . o ( ) ; this . a . advance ( a ) } } ; J . prototype . skipDelimitedField = J . prototype . gb ;
J . prototype . hb = function ( ) { 5 != this . b ? ( p ( "Invalid wire type for skipFixed32Field" ) , this . C ( ) ) : this . a . advance ( 4 ) } ; J . prototype . skipFixed32Field = J . prototype . hb ; J . prototype . ib = function ( ) { 1 != this . b ? ( p ( "Invalid wire type for skipFixed64Field" ) , this . C ( ) ) : this . a . advance ( 8 ) } ; J . prototype . skipFixed64Field = J . prototype . ib ; J . prototype . jb = function ( ) { var a = this . c ; do { if ( ! this . oa ( ) ) { p ( "Unmatched start-group tag: stream EOF" ) ; this . h = ! 0 ; break } if ( 4 == this . b ) { this . c != a && ( p ( "Unmatched end-group tag" ) , this . h = ! 0 ) ; break } this . C ( ) } while ( 1 ) } ;
J . prototype . skipGroup = J . prototype . jb ; J . prototype . C = function ( ) { switch ( this . b ) { case 0 : this . lb ( ) ; break ; case 1 : this . ib ( ) ; break ; case 2 : this . gb ( ) ; break ; case 5 : this . hb ( ) ; break ; case 3 : this . jb ( ) ; break ; default : p ( "Invalid wire encoding for field." ) } } ; J . prototype . skipField = J . prototype . C ; J . prototype . Hc = function ( a , b ) { null === this . v && ( this . v = { } ) ; n ( ! this . v [ a ] ) ; this . v [ a ] = b } ; J . prototype . registerReadCallback = J . prototype . Hc ; J . prototype . Ic = function ( a ) { n ( null !== this . v ) ; a = this . v [ a ] ; n ( a ) ; return a ( this ) } ;
J . prototype . runReadCallback = J . prototype . Ic ; J . prototype . Yb = function ( a , b ) { n ( 2 == this . b ) ; var c = this . a . c , d = this . a . o ( ) ; d = this . a . B ( ) + d ; this . a . setEnd ( d ) ; b ( a , this ) ; this . a . Ma ( d ) ; this . a . setEnd ( c ) } ; J . prototype . readMessage = J . prototype . Yb ; J . prototype . Ub = function ( a , b , c ) { n ( 3 == this . b ) ; n ( this . c == a ) ; c ( b , this ) ; this . h || 4 == this . b || ( p ( "Group submessage did not end with an END_GROUP tag" ) , this . h = ! 0 ) } ; J . prototype . readGroup = J . prototype . Ub ;
J . prototype . Gb = function ( ) { n ( 2 == this . b ) ; var a = this . a . o ( ) , b = this . a . B ( ) , c = b + a ; a = Wa ( this . a . Y ( ) , b , a ) ; this . a . Ma ( c ) ; return a } ; J . prototype . getFieldDecoder = J . prototype . Gb ; J . prototype . P = function ( ) { n ( 0 == this . b ) ; return this . a . da ( ) } ; J . prototype . readInt32 = J . prototype . P ; J . prototype . Wb = function ( ) { n ( 0 == this . b ) ; return this . a . Ea ( ) } ; J . prototype . readInt32String = J . prototype . Wb ; J . prototype . ba = function ( ) { n ( 0 == this . b ) ; return this . a . sa ( ) } ; J . prototype . readInt64 = J . prototype . ba ; J . prototype . ca = function ( ) { n ( 0 == this . b ) ; return this . a . Fa ( ) } ;
J . prototype . readInt64String = J . prototype . ca ; J . prototype . m = function ( ) { n ( 0 == this . b ) ; return this . a . o ( ) } ; J . prototype . readUint32 = J . prototype . m ; J . prototype . Fc = function ( ) { n ( 0 == this . b ) ; return this . a . O ( ) } ; J . prototype . readUint32String = J . prototype . Fc ; J . prototype . ga = function ( ) { n ( 0 == this . b ) ; return this . a . Ga ( ) } ; J . prototype . readUint64 = J . prototype . ga ; J . prototype . ha = function ( ) { n ( 0 == this . b ) ; return this . a . Ha ( ) } ; J . prototype . readUint64String = J . prototype . ha ; J . prototype . zc = function ( ) { n ( 0 == this . b ) ; return this . a . Ia ( ) } ;
J . prototype . readSint32 = J . prototype . zc ; J . prototype . Ac = function ( ) { n ( 0 == this . b ) ; return this . a . Ja ( ) } ; J . prototype . readSint64 = J . prototype . Ac ; J . prototype . Bc = function ( ) { n ( 0 == this . b ) ; return this . a . Ka ( ) } ; J . prototype . readSint64String = J . prototype . Bc ; J . prototype . Rb = function ( ) { n ( 5 == this . b ) ; return this . a . m ( ) } ; J . prototype . readFixed32 = J . prototype . Rb ; J . prototype . Sb = function ( ) { n ( 1 == this . b ) ; return this . a . ga ( ) } ; J . prototype . readFixed64 = J . prototype . Sb ; J . prototype . Tb = function ( ) { n ( 1 == this . b ) ; return this . a . ha ( ) } ;
J . prototype . readFixed64String = J . prototype . Tb ; J . prototype . vc = function ( ) { n ( 5 == this . b ) ; return this . a . P ( ) } ; J . prototype . readSfixed32 = J . prototype . vc ; J . prototype . wc = function ( ) { n ( 5 == this . b ) ; return this . a . P ( ) . toString ( ) } ; J . prototype . readSfixed32String = J . prototype . wc ; J . prototype . xc = function ( ) { n ( 1 == this . b ) ; return this . a . ba ( ) } ; J . prototype . readSfixed64 = J . prototype . xc ; J . prototype . yc = function ( ) { n ( 1 == this . b ) ; return this . a . ca ( ) } ; J . prototype . readSfixed64String = J . prototype . yc ;
J . prototype . aa = function ( ) { n ( 5 == this . b ) ; return this . a . aa ( ) } ; J . prototype . readFloat = J . prototype . aa ; J . prototype . Z = function ( ) { n ( 1 == this . b ) ; return this . a . Z ( ) } ; J . prototype . readDouble = J . prototype . Z ; J . prototype . pa = function ( ) { n ( 0 == this . b ) ; return ! ! this . a . o ( ) } ; J . prototype . readBool = J . prototype . pa ; J . prototype . ra = function ( ) { n ( 0 == this . b ) ; return this . a . sa ( ) } ; J . prototype . readEnum = J . prototype . ra ; J . prototype . fa = function ( ) { n ( 2 == this . b ) ; var a = this . a . o ( ) ; return this . a . fa ( a ) } ; J . prototype . readString = J . prototype . fa ;
J . prototype . qa = function ( ) { n ( 2 == this . b ) ; var a = this . a . o ( ) ; return this . a . qa ( a ) } ; J . prototype . readBytes = J . prototype . qa ; J . prototype . ia = function ( ) { n ( 0 == this . b ) ; return this . a . ia ( ) } ; J . prototype . readVarintHash64 = J . prototype . ia ; J . prototype . Cc = function ( ) { n ( 0 == this . b ) ; return this . a . fb ( ) } ; J . prototype . readSintHash64 = J . prototype . Cc ; J . prototype . w = function ( a ) { n ( 0 == this . b ) ; return this . a . w ( a ) } ; J . prototype . readSplitVarint64 = J . prototype . w ;
J . prototype . ea = function ( a ) { n ( 0 == this . b ) ; return this . a . w ( function ( b , c ) { return Ma ( b , c , a ) } ) } ; J . prototype . readSplitZigzagVarint64 = J . prototype . ea ; J . prototype . $ = function ( ) { n ( 1 == this . b ) ; return this . a . $ ( ) } ; J . prototype . readFixedHash64 = J . prototype . $ ; J . prototype . ta = function ( a ) { n ( 1 == this . b ) ; return this . a . ta ( a ) } ; J . prototype . readSplitFixed64 = J . prototype . ta ; function L ( a , b ) { n ( 2 == a . b ) ; var c = a . a . o ( ) ; c = a . a . B ( ) + c ; for ( var d = [ ] ; a . a . B ( ) < c ; ) d . push ( b . call ( a . a ) ) ; return d } J . prototype . gc = function ( ) { return L ( this , this . a . da ) } ;
J . prototype . readPackedInt32 = J . prototype . gc ; J . prototype . hc = function ( ) { return L ( this , this . a . Ea ) } ; J . prototype . readPackedInt32String = J . prototype . hc ; J . prototype . ic = function ( ) { return L ( this , this . a . sa ) } ; J . prototype . readPackedInt64 = J . prototype . ic ; J . prototype . jc = function ( ) { return L ( this , this . a . Fa ) } ; J . prototype . readPackedInt64String = J . prototype . jc ; J . prototype . qc = function ( ) { return L ( this , this . a . o ) } ; J . prototype . readPackedUint32 = J . prototype . qc ; J . prototype . rc = function ( ) { return L ( this , this . a . O ) } ;
J . prototype . readPackedUint32String = J . prototype . rc ; J . prototype . sc = function ( ) { return L ( this , this . a . Ga ) } ; J . prototype . readPackedUint64 = J . prototype . sc ; J . prototype . tc = function ( ) { return L ( this , this . a . Ha ) } ; J . prototype . readPackedUint64String = J . prototype . tc ; J . prototype . nc = function ( ) { return L ( this , this . a . Ia ) } ; J . prototype . readPackedSint32 = J . prototype . nc ; J . prototype . oc = function ( ) { return L ( this , this . a . Ja ) } ; J . prototype . readPackedSint64 = J . prototype . oc ; J . prototype . pc = function ( ) { return L ( this , this . a . Ka ) } ;
J . prototype . readPackedSint64String = J . prototype . pc ; J . prototype . bc = function ( ) { return L ( this , this . a . m ) } ; J . prototype . readPackedFixed32 = J . prototype . bc ; J . prototype . cc = function ( ) { return L ( this , this . a . ga ) } ; J . prototype . readPackedFixed64 = J . prototype . cc ; J . prototype . dc = function ( ) { return L ( this , this . a . ha ) } ; J . prototype . readPackedFixed64String = J . prototype . dc ; J . prototype . kc = function ( ) { return L ( this , this . a . P ) } ; J . prototype . readPackedSfixed32 = J . prototype . kc ; J . prototype . lc = function ( ) { return L ( this , this . a . ba ) } ;
J . prototype . readPackedSfixed64 = J . prototype . lc ; J . prototype . mc = function ( ) { return L ( this , this . a . ca ) } ; J . prototype . readPackedSfixed64String = J . prototype . mc ; J . prototype . fc = function ( ) { return L ( this , this . a . aa ) } ; J . prototype . readPackedFloat = J . prototype . fc ; J . prototype . $b = function ( ) { return L ( this , this . a . Z ) } ; J . prototype . readPackedDouble = J . prototype . $b ; J . prototype . Zb = function ( ) { return L ( this , this . a . pa ) } ; J . prototype . readPackedBool = J . prototype . Zb ; J . prototype . ac = function ( ) { return L ( this , this . a . ra ) } ;
J . prototype . readPackedEnum = J . prototype . ac ; J . prototype . uc = function ( ) { return L ( this , this . a . ia ) } ; J . prototype . readPackedVarintHash64 = J . prototype . uc ; J . prototype . ec = function ( ) { return L ( this , this . a . $ ) } ; J . prototype . readPackedFixedHash64 = J . prototype . ec ; function Ya ( a , b , c , d , f ) { this . ma = a ; this . Ba = b ; this . la = c ; this . Na = d ; this . na = f } g ( "jspb.ExtensionFieldInfo" , Ya , void 0 ) ; function Za ( a , b , c , d , f , h ) { this . Za = a ; this . za = b ; this . Aa = c ; this . Wa = d ; this . Ab = f ; this . Nb = h } g ( "jspb.ExtensionFieldBinaryInfo" , Za , void 0 ) ; Ya . prototype . F = function ( ) { return ! ! this . la } ; Ya . prototype . isMessageType = Ya . prototype . F ; function N ( ) { } g ( "jspb.Message" , N , void 0 ) ; N . GENERATE _TO _OBJECT = ! 0 ; N . GENERATE _FROM _OBJECT = ! 0 ; var $a = "function" == typeof Uint8Array ; N . prototype . Ib = function ( ) { return this . b } ;
N . prototype . getJsPbMessageId = N . prototype . Ib ;
N . initialize = function ( a , b , c , d , f , h ) { a . f = null ; b || ( b = c ? [ c ] : [ ] ) ; a . b = c ? String ( c ) : void 0 ; a . D = 0 === c ? - 1 : 0 ; a . u = b ; a : { c = a . u . length ; b = - 1 ; if ( c && ( b = c - 1 , c = a . u [ b ] , ! ( null === c || "object" != typeof c || Array . isArray ( c ) || $a && c instanceof Uint8Array ) ) ) { a . G = b - a . D ; a . i = c ; break a } - 1 < d ? ( a . G = Math . max ( d , b + 1 - a . D ) , a . i = null ) : a . G = Number . MAX _VALUE } a . a = { } ; if ( f ) for ( d = 0 ; d < f . length ; d ++ ) b = f [ d ] , b < a . G ? ( b += a . D , a . u [ b ] = a . u [ b ] || ab ) : ( bb ( a ) , a . i [ b ] = a . i [ b ] || ab ) ; if ( h && h . length ) for ( d = 0 ; d < h . length ; d ++ ) cb ( a , h [ d ] ) } ;
var ab = Object . freeze ? Object . freeze ( [ ] ) : [ ] ; function bb ( a ) { var b = a . G + a . D ; a . u [ b ] || ( a . i = a . u [ b ] = { } ) } function db ( a , b , c ) { for ( var d = [ ] , f = 0 ; f < a . length ; f ++ ) d [ f ] = b . call ( a [ f ] , c , a [ f ] ) ; return d } N . toObjectList = db ; N . toObjectExtension = function ( a , b , c , d , f ) { for ( var h in c ) { var m = c [ h ] , t = d . call ( a , m ) ; if ( null != t ) { for ( var B in m . Ba ) if ( m . Ba . hasOwnProperty ( B ) ) break ; b [ B ] = m . Na ? m . na ? db ( t , m . Na , f ) : m . Na ( f , t ) : t } } } ;
N . serializeBinaryExtensions = function ( a , b , c , d ) { for ( var f in c ) { var h = c [ f ] , m = h . Za ; if ( ! h . Aa ) throw Error ( "Message extension present that was generated without binary serialization support" ) ; var t = d . call ( a , m ) ; if ( null != t ) if ( m . F ( ) ) if ( h . Wa ) h . Aa . call ( b , m . ma , t , h . Wa ) ; else throw Error ( "Message extension present holding submessage without binary support enabled, and message is being serialized to binary format" ) ; else h . Aa . call ( b , m . ma , t ) } } ;
N . readBinaryExtension = function ( a , b , c , d , f ) { var h = c [ b . c ] ; if ( h ) { c = h . Za ; if ( ! h . za ) throw Error ( "Deserializing extension whose generated code does not support binary format" ) ; if ( c . F ( ) ) { var m = new c . la ; h . za . call ( b , m , h . Ab ) } else m = h . za . call ( b ) ; c . na && ! h . Nb ? ( b = d . call ( a , c ) ) ? b . push ( m ) : f . call ( a , c , [ m ] ) : f . call ( a , c , m ) } else b . C ( ) } ; function O ( a , b ) { if ( b < a . G ) { b += a . D ; var c = a . u [ b ] ; return c === ab ? a . u [ b ] = [ ] : c } if ( a . i ) return c = a . i [ b ] , c === ab ? a . i [ b ] = [ ] : c } N . getField = O ; N . getRepeatedField = function ( a , b ) { return O ( a , b ) } ;
function eb ( a , b ) { a = O ( a , b ) ; return null == a ? a : + a } N . getOptionalFloatingPointField = eb ; function fb ( a , b ) { a = O ( a , b ) ; return null == a ? a : ! ! a } N . getBooleanField = fb ; N . getRepeatedFloatingPointField = function ( a , b ) { var c = O ( a , b ) ; a . a || ( a . a = { } ) ; if ( ! a . a [ b ] ) { for ( var d = 0 ; d < c . length ; d ++ ) c [ d ] = + c [ d ] ; a . a [ b ] = ! 0 } return c } ; N . getRepeatedBooleanField = function ( a , b ) { var c = O ( a , b ) ; a . a || ( a . a = { } ) ; if ( ! a . a [ b ] ) { for ( var d = 0 ; d < c . length ; d ++ ) c [ d ] = ! ! c [ d ] ; a . a [ b ] = ! 0 } return c } ;
function gb ( a ) { if ( null == a || "string" === typeof a ) return a ; if ( $a && a instanceof Uint8Array ) return Ba ( a ) ; p ( "Cannot coerce to b64 string: " + k ( a ) ) ; return null } N . bytesAsB64 = gb ; function hb ( a ) { if ( null == a || a instanceof Uint8Array ) return a ; if ( "string" === typeof a ) return Da ( a ) ; p ( "Cannot coerce to Uint8Array: " + k ( a ) ) ; return null } N . bytesAsU8 = hb ; N . bytesListAsB64 = function ( a ) { ib ( a ) ; return a . length && "string" !== typeof a [ 0 ] ? l ( a , gb ) : a } ; N . bytesListAsU8 = function ( a ) { ib ( a ) ; return ! a . length || a [ 0 ] instanceof Uint8Array ? a : l ( a , hb ) } ;
function ib ( a ) { if ( a && 1 < a . length ) { var b = k ( a [ 0 ] ) ; qa ( a , function ( c ) { k ( c ) != b && p ( "Inconsistent type in JSPB repeated field array. Got " + k ( c ) + " expected " + b ) } ) } } function jb ( a , b , c ) { a = O ( a , b ) ; return null == a ? c : a } N . getFieldWithDefault = jb ; N . getBooleanFieldWithDefault = function ( a , b , c ) { a = fb ( a , b ) ; return null == a ? c : a } ; N . getFloatingPointFieldWithDefault = function ( a , b , c ) { a = eb ( a , b ) ; return null == a ? c : a } ; N . getFieldProto3 = jb ;
N . getMapField = function ( a , b , c , d ) { a . f || ( a . f = { } ) ; if ( b in a . f ) return a . f [ b ] ; var f = O ( a , b ) ; if ( ! f ) { if ( c ) return ; f = [ ] ; P ( a , b , f ) } return a . f [ b ] = new r ( f , d ) } ; function P ( a , b , c ) { q ( a , N ) ; b < a . G ? a . u [ b + a . D ] = c : ( bb ( a ) , a . i [ b ] = c ) ; return a } N . setField = P ; N . setProto3IntField = function ( a , b , c ) { return Q ( a , b , c , 0 ) } ; N . setProto3FloatField = function ( a , b , c ) { return Q ( a , b , c , 0 ) } ; N . setProto3BooleanField = function ( a , b , c ) { return Q ( a , b , c , ! 1 ) } ; N . setProto3StringField = function ( a , b , c ) { return Q ( a , b , c , "" ) } ;
N . setProto3BytesField = function ( a , b , c ) { return Q ( a , b , c , "" ) } ; N . setProto3EnumField = function ( a , b , c ) { return Q ( a , b , c , 0 ) } ; N . setProto3StringIntField = function ( a , b , c ) { return Q ( a , b , c , "0" ) } ; function Q ( a , b , c , d ) { q ( a , N ) ; c !== d ? P ( a , b , c ) : b < a . G ? a . u [ b + a . D ] = null : ( bb ( a ) , delete a . i [ b ] ) ; return a } N . addToRepeatedField = function ( a , b , c , d ) { q ( a , N ) ; b = O ( a , b ) ; void 0 != d ? b . splice ( d , 0 , c ) : b . push ( c ) ; return a } ; function kb ( a , b , c , d ) { q ( a , N ) ; ( c = cb ( a , c ) ) && c !== b && void 0 !== d && ( a . f && c in a . f && ( a . f [ c ] = void 0 ) , P ( a , c , void 0 ) ) ; return P ( a , b , d ) }
N . setOneofField = kb ; function cb ( a , b ) { for ( var c , d , f = 0 ; f < b . length ; f ++ ) { var h = b [ f ] , m = O ( a , h ) ; null != m && ( c = h , d = m , P ( a , h , void 0 ) ) } return c ? ( P ( a , c , d ) , c ) : 0 } N . computeOneofCase = cb ; N . getWrapperField = function ( a , b , c , d ) { a . f || ( a . f = { } ) ; if ( ! a . f [ c ] ) { var f = O ( a , c ) ; if ( d || f ) a . f [ c ] = new b ( f ) } return a . f [ c ] } ; N . getRepeatedWrapperField = function ( a , b , c ) { lb ( a , b , c ) ; b = a . f [ c ] ; b == ab && ( b = a . f [ c ] = [ ] ) ; return b } ; function lb ( a , b , c ) { a . f || ( a . f = { } ) ; if ( ! a . f [ c ] ) { for ( var d = O ( a , c ) , f = [ ] , h = 0 ; h < d . length ; h ++ ) f [ h ] = new b ( d [ h ] ) ; a . f [ c ] = f } }
N . setWrapperField = function ( a , b , c ) { q ( a , N ) ; a . f || ( a . f = { } ) ; var d = c ? c . g ( ) : c ; a . f [ b ] = c ; return P ( a , b , d ) } ; N . setOneofWrapperField = function ( a , b , c , d ) { q ( a , N ) ; a . f || ( a . f = { } ) ; var f = d ? d . g ( ) : d ; a . f [ b ] = d ; return kb ( a , b , c , f ) } ; N . setRepeatedWrapperField = function ( a , b , c ) { q ( a , N ) ; a . f || ( a . f = { } ) ; c = c || [ ] ; for ( var d = [ ] , f = 0 ; f < c . length ; f ++ ) d [ f ] = c [ f ] . g ( ) ; a . f [ b ] = c ; return P ( a , b , d ) } ;
N . addToRepeatedWrapperField = function ( a , b , c , d , f ) { lb ( a , d , b ) ; var h = a . f [ b ] ; h || ( h = a . f [ b ] = [ ] ) ; c = c ? c : new d ; a = O ( a , b ) ; void 0 != f ? ( h . splice ( f , 0 , c ) , a . splice ( f , 0 , c . g ( ) ) ) : ( h . push ( c ) , a . push ( c . g ( ) ) ) ; return c } ; N . toMap = function ( a , b , c , d ) { for ( var f = { } , h = 0 ; h < a . length ; h ++ ) f [ b . call ( a [ h ] ) ] = c ? c . call ( a [ h ] , d , a [ h ] ) : a [ h ] ; return f } ; function mb ( a ) { if ( a . f ) for ( var b in a . f ) { var c = a . f [ b ] ; if ( Array . isArray ( c ) ) for ( var d = 0 ; d < c . length ; d ++ ) c [ d ] && c [ d ] . g ( ) ; else c && c . g ( ) } } N . prototype . g = function ( ) { mb ( this ) ; return this . u } ;
N . prototype . toArray = N . prototype . g ; N . prototype . toString = function ( ) { mb ( this ) ; return this . u . toString ( ) } ; N . prototype . getExtension = function ( a ) { if ( this . i ) { this . f || ( this . f = { } ) ; var b = a . ma ; if ( a . na ) { if ( a . F ( ) ) return this . f [ b ] || ( this . f [ b ] = l ( this . i [ b ] || [ ] , function ( c ) { return new a . la ( c ) } ) ) , this . f [ b ] } else if ( a . F ( ) ) return ! this . f [ b ] && this . i [ b ] && ( this . f [ b ] = new a . la ( this . i [ b ] ) ) , this . f [ b ] ; return this . i [ b ] } } ; N . prototype . getExtension = N . prototype . getExtension ;
N . prototype . Kc = function ( a , b ) { this . f || ( this . f = { } ) ; bb ( this ) ; var c = a . ma ; a . na ? ( b = b || [ ] , a . F ( ) ? ( this . f [ c ] = b , this . i [ c ] = l ( b , function ( d ) { return d . g ( ) } ) ) : this . i [ c ] = b ) : a . F ( ) ? ( this . f [ c ] = b , this . i [ c ] = b ? b . g ( ) : b ) : this . i [ c ] = b ; return this } ; N . prototype . setExtension = N . prototype . Kc ; N . difference = function ( a , b ) { if ( ! ( a instanceof b . constructor ) ) throw Error ( "Messages have different types." ) ; var c = a . g ( ) ; b = b . g ( ) ; var d = [ ] , f = 0 , h = c . length > b . length ? c . length : b . length ; a . b && ( d [ 0 ] = a . b , f = 1 ) ; for ( ; f < h ; f ++ ) nb ( c [ f ] , b [ f ] ) || ( d [ f ] = b [ f ] ) ; return new a . constructor ( d ) } ;
N . equals = function ( a , b ) { return a == b || ! ( ! a || ! b ) && a instanceof b . constructor && nb ( a . g ( ) , b . g ( ) ) } ; function ob ( a , b ) { a = a || { } ; b = b || { } ; var c = { } , d ; for ( d in a ) c [ d ] = 0 ; for ( d in b ) c [ d ] = 0 ; for ( d in c ) if ( ! nb ( a [ d ] , b [ d ] ) ) return ! 1 ; return ! 0 } N . compareExtensions = ob ;
function nb ( a , b ) { if ( a == b ) return ! 0 ; if ( ! la ( a ) || ! la ( b ) ) return "number" === typeof a && isNaN ( a ) || "number" === typeof b && isNaN ( b ) ? String ( a ) == String ( b ) : ! 1 ; if ( a . constructor != b . constructor ) return ! 1 ; if ( $a && a . constructor === Uint8Array ) { if ( a . length != b . length ) return ! 1 ; for ( var c = 0 ; c < a . length ; c ++ ) if ( a [ c ] != b [ c ] ) return ! 1 ; return ! 0 } if ( a . constructor === Array ) { var d = void 0 , f = void 0 , h = Math . max ( a . length , b . length ) ; for ( c = 0 ; c < h ; c ++ ) { var m = a [ c ] , t = b [ c ] ; m && m . constructor == Object && ( n ( void 0 === d ) , n ( c === a . length - 1 ) , d = m , m = void 0 ) ; t && t . constructor ==
Object && ( n ( void 0 === f ) , n ( c === b . length - 1 ) , f = t , t = void 0 ) ; if ( ! nb ( m , t ) ) return ! 1 } return d || f ? ( d = d || { } , f = f || { } , ob ( d , f ) ) : ! 0 } if ( a . constructor === Object ) return ob ( a , b ) ; throw Error ( "Invalid type in JSPB array" ) ; } N . compareFields = nb ; N . prototype . Bb = function ( ) { return pb ( this ) } ; N . prototype . cloneMessage = N . prototype . Bb ; N . prototype . clone = function ( ) { return pb ( this ) } ; N . prototype . clone = N . prototype . clone ; N . clone = function ( a ) { return pb ( a ) } ; function pb ( a ) { return new a . constructor ( qb ( a . g ( ) ) ) }
N . copyInto = function ( a , b ) { q ( a , N ) ; q ( b , N ) ; n ( a . constructor == b . constructor , "Copy source and target message should have the same type." ) ; a = pb ( a ) ; for ( var c = b . g ( ) , d = a . g ( ) , f = c . length = 0 ; f < d . length ; f ++ ) c [ f ] = d [ f ] ; b . f = a . f ; b . i = a . i } ; function qb ( a ) { if ( Array . isArray ( a ) ) { for ( var b = Array ( a . length ) , c = 0 ; c < a . length ; c ++ ) { var d = a [ c ] ; null != d && ( b [ c ] = "object" == typeof d ? qb ( n ( d ) ) : d ) } return b } if ( $a && a instanceof Uint8Array ) return new Uint8Array ( a ) ; b = { } ; for ( c in a ) d = a [ c ] , null != d && ( b [ c ] = "object" == typeof d ? qb ( n ( d ) ) : d ) ; return b }
N . registerMessageType = function ( a , b ) { b . we = a } ; var R = { dump : function ( a ) { q ( a , N , "jspb.Message instance expected" ) ; n ( a . getExtension , "Only unobfuscated and unoptimized compilation modes supported." ) ; return R . X ( a ) } } ; g ( "jspb.debug.dump" , R . dump , void 0 ) ;
R . X = function ( a ) { var b = k ( a ) ; if ( "number" == b || "string" == b || "boolean" == b || "null" == b || "undefined" == b || "undefined" !== typeof Uint8Array && a instanceof Uint8Array ) return a ; if ( "array" == b ) return ua ( a ) , l ( a , R . X ) ; if ( a instanceof r ) { var c = { } ; a = a . entries ( ) ; for ( var d = a . next ( ) ; ! d . done ; d = a . next ( ) ) c [ d . value [ 0 ] ] = R . X ( d . value [ 1 ] ) ; return c } q ( a , N , "Only messages expected: " + a ) ; b = a . constructor ; var f = { $name : b . name || b . displayName } ; for ( t in b . prototype ) { var h = /^get([A-Z]\w*)/ . exec ( t ) ; if ( h && "getExtension" != t && "getJsPbMessageId" !=
t ) { var m = "has" + h [ 1 ] ; if ( ! a [ m ] || a [ m ] ( ) ) m = a [ t ] ( ) , f [ R . $a ( h [ 1 ] ) ] = R . X ( m ) } } if ( a . extensionObject _ ) return f . $extensions = "Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly" , f ; for ( d in b . extensions ) if ( /^\d+$/ . test ( d ) ) { m = b . extensions [ d ] ; var t = a . getExtension ( m ) ; h = void 0 ; m = m . Ba ; var B = [ ] , M = 0 ; for ( h in m ) B [ M ++ ] = h ; h = B [ 0 ] ; null != t && ( c || ( c = f . $extensions = { } ) , c [ R . $a ( h ) ] = R . X ( t ) ) } return f } ; R . $a = function ( a ) { return a . replace ( /^[A-Z]/ , function ( b ) { return b . toLowerCase ( ) } ) } ; function S ( ) { this . a = [ ] } g ( "jspb.BinaryEncoder" , S , void 0 ) ; S . prototype . length = function ( ) { return this . a . length } ; S . prototype . length = S . prototype . length ; S . prototype . end = function ( ) { var a = this . a ; this . a = [ ] ; return a } ; S . prototype . end = S . prototype . end ; S . prototype . l = function ( a , b ) { n ( a == Math . floor ( a ) ) ; n ( b == Math . floor ( b ) ) ; n ( 0 <= a && 4294967296 > a ) ; for ( n ( 0 <= b && 4294967296 > b ) ; 0 < b || 127 < a ; ) this . a . push ( a & 127 | 128 ) , a = ( a >>> 7 | b << 25 ) >>> 0 , b >>>= 7 ; this . a . push ( a ) } ; S . prototype . writeSplitVarint64 = S . prototype . l ;
S . prototype . A = function ( a , b ) { n ( a == Math . floor ( a ) ) ; n ( b == Math . floor ( b ) ) ; n ( 0 <= a && 4294967296 > a ) ; n ( 0 <= b && 4294967296 > b ) ; this . s ( a ) ; this . s ( b ) } ; S . prototype . writeSplitFixed64 = S . prototype . A ; S . prototype . j = function ( a ) { n ( a == Math . floor ( a ) ) ; for ( n ( 0 <= a && 4294967296 > a ) ; 127 < a ; ) this . a . push ( a & 127 | 128 ) , a >>>= 7 ; this . a . push ( a ) } ; S . prototype . writeUnsignedVarint32 = S . prototype . j ; S . prototype . M = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 2147483648 <= a && 2147483648 > a ) ; if ( 0 <= a ) this . j ( a ) ; else { for ( var b = 0 ; 9 > b ; b ++ ) this . a . push ( a & 127 | 128 ) , a >>= 7 ; this . a . push ( 1 ) } } ;
S . prototype . writeSignedVarint32 = S . prototype . M ; S . prototype . va = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( 0 <= a && 1.8446744073709552 E19 > a ) ; A ( a ) ; this . l ( y , z ) } ; S . prototype . writeUnsignedVarint64 = S . prototype . va ; S . prototype . ua = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 9223372036854775808 <= a && 0x7fffffffffffffff > a ) ; A ( a ) ; this . l ( y , z ) } ; S . prototype . writeSignedVarint64 = S . prototype . ua ; S . prototype . wa = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 2147483648 <= a && 2147483648 > a ) ; this . j ( ( a << 1 ^ a >> 31 ) >>> 0 ) } ; S . prototype . writeZigzagVarint32 = S . prototype . wa ;
S . prototype . xa = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 9223372036854775808 <= a && 0x7fffffffffffffff > a ) ; Ga ( a ) ; this . l ( y , z ) } ; S . prototype . writeZigzagVarint64 = S . prototype . xa ; S . prototype . Ta = function ( a ) { this . W ( H ( a ) ) } ; S . prototype . writeZigzagVarint64String = S . prototype . Ta ; S . prototype . W = function ( a ) { var b = this ; C ( a ) ; Ja ( y , z , function ( c , d ) { b . l ( c >>> 0 , d >>> 0 ) } ) } ; S . prototype . writeZigzagVarintHash64 = S . prototype . W ; S . prototype . be = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( 0 <= a && 256 > a ) ; this . a . push ( a >>> 0 & 255 ) } ; S . prototype . writeUint8 = S . prototype . be ;
S . prototype . ae = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( 0 <= a && 65536 > a ) ; this . a . push ( a >>> 0 & 255 ) ; this . a . push ( a >>> 8 & 255 ) } ; S . prototype . writeUint16 = S . prototype . ae ; S . prototype . s = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( 0 <= a && 4294967296 > a ) ; this . a . push ( a >>> 0 & 255 ) ; this . a . push ( a >>> 8 & 255 ) ; this . a . push ( a >>> 16 & 255 ) ; this . a . push ( a >>> 24 & 255 ) } ; S . prototype . writeUint32 = S . prototype . s ; S . prototype . V = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( 0 <= a && 1.8446744073709552 E19 > a ) ; Fa ( a ) ; this . s ( y ) ; this . s ( z ) } ; S . prototype . writeUint64 = S . prototype . V ;
S . prototype . Qc = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 128 <= a && 128 > a ) ; this . a . push ( a >>> 0 & 255 ) } ; S . prototype . writeInt8 = S . prototype . Qc ; S . prototype . Pc = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 32768 <= a && 32768 > a ) ; this . a . push ( a >>> 0 & 255 ) ; this . a . push ( a >>> 8 & 255 ) } ; S . prototype . writeInt16 = S . prototype . Pc ; S . prototype . S = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 2147483648 <= a && 2147483648 > a ) ; this . a . push ( a >>> 0 & 255 ) ; this . a . push ( a >>> 8 & 255 ) ; this . a . push ( a >>> 16 & 255 ) ; this . a . push ( a >>> 24 & 255 ) } ; S . prototype . writeInt32 = S . prototype . S ;
S . prototype . T = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 9223372036854775808 <= a && 0x7fffffffffffffff > a ) ; A ( a ) ; this . A ( y , z ) } ; S . prototype . writeInt64 = S . prototype . T ; S . prototype . ka = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 9223372036854775808 <= + a && 0x7fffffffffffffff > + a ) ; C ( H ( a ) ) ; this . A ( y , z ) } ; S . prototype . writeInt64String = S . prototype . ka ; S . prototype . L = function ( a ) { n ( Infinity === a || - Infinity === a || isNaN ( a ) || - 3.4028234663852886 E38 <= a && 3.4028234663852886 E38 >= a ) ; Ha ( a ) ; this . s ( y ) } ; S . prototype . writeFloat = S . prototype . L ;
S . prototype . J = function ( a ) { n ( Infinity === a || - Infinity === a || isNaN ( a ) || - 1.7976931348623157 E308 <= a && 1.7976931348623157 E308 >= a ) ; Ia ( a ) ; this . s ( y ) ; this . s ( z ) } ; S . prototype . writeDouble = S . prototype . J ; S . prototype . I = function ( a ) { n ( "boolean" === typeof a || "number" === typeof a ) ; this . a . push ( a ? 1 : 0 ) } ; S . prototype . writeBool = S . prototype . I ; S . prototype . R = function ( a ) { n ( a == Math . floor ( a ) ) ; n ( - 2147483648 <= a && 2147483648 > a ) ; this . M ( a ) } ; S . prototype . writeEnum = S . prototype . R ; S . prototype . ja = function ( a ) { this . a . push . apply ( this . a , a ) } ;
S . prototype . writeBytes = S . prototype . ja ; S . prototype . N = function ( a ) { C ( a ) ; this . l ( y , z ) } ; S . prototype . writeVarintHash64 = S . prototype . N ; S . prototype . K = function ( a ) { C ( a ) ; this . s ( y ) ; this . s ( z ) } ; S . prototype . writeFixedHash64 = S . prototype . K ;
S . prototype . U = function ( a ) { var b = this . a . length ; ta ( a ) ; for ( var c = 0 ; c < a . length ; c ++ ) { var d = a . charCodeAt ( c ) ; if ( 128 > d ) this . a . push ( d ) ; else if ( 2048 > d ) this . a . push ( d >> 6 | 192 ) , this . a . push ( d & 63 | 128 ) ; else if ( 65536 > d ) if ( 55296 <= d && 56319 >= d && c + 1 < a . length ) { var f = a . charCodeAt ( c + 1 ) ; 56320 <= f && 57343 >= f && ( d = 1024 * ( d - 55296 ) + f - 56320 + 65536 , this . a . push ( d >> 18 | 240 ) , this . a . push ( d >> 12 & 63 | 128 ) , this . a . push ( d >> 6 & 63 | 128 ) , this . a . push ( d & 63 | 128 ) , c ++ ) } else this . a . push ( d >> 12 | 224 ) , this . a . push ( d >> 6 & 63 | 128 ) , this . a . push ( d & 63 | 128 ) } return this . a . length -
b } ; S . prototype . writeString = S . prototype . U ; function T ( a , b ) { this . lo = a ; this . hi = b } g ( "jspb.arith.UInt64" , T , void 0 ) ; T . prototype . cmp = function ( a ) { return this . hi < a . hi || this . hi == a . hi && this . lo < a . lo ? - 1 : this . hi == a . hi && this . lo == a . lo ? 0 : 1 } ; T . prototype . cmp = T . prototype . cmp ; T . prototype . La = function ( ) { return new T ( ( this . lo >>> 1 | ( this . hi & 1 ) << 31 ) >>> 0 , this . hi >>> 1 >>> 0 ) } ; T . prototype . rightShift = T . prototype . La ; T . prototype . Da = function ( ) { return new T ( this . lo << 1 >>> 0 , ( this . hi << 1 | this . lo >>> 31 ) >>> 0 ) } ; T . prototype . leftShift = T . prototype . Da ;
T . prototype . cb = function ( ) { return ! ! ( this . hi & 2147483648 ) } ; T . prototype . msb = T . prototype . cb ; T . prototype . Ob = function ( ) { return ! ! ( this . lo & 1 ) } ; T . prototype . lsb = T . prototype . Ob ; T . prototype . Ua = function ( ) { return 0 == this . lo && 0 == this . hi } ; T . prototype . zero = T . prototype . Ua ; T . prototype . add = function ( a ) { return new T ( ( this . lo + a . lo & 4294967295 ) >>> 0 >>> 0 , ( ( this . hi + a . hi & 4294967295 ) >>> 0 ) + ( 4294967296 <= this . lo + a . lo ? 1 : 0 ) >>> 0 ) } ; T . prototype . add = T . prototype . add ;
T . prototype . sub = function ( a ) { return new T ( ( this . lo - a . lo & 4294967295 ) >>> 0 >>> 0 , ( ( this . hi - a . hi & 4294967295 ) >>> 0 ) - ( 0 > this . lo - a . lo ? 1 : 0 ) >>> 0 ) } ; T . prototype . sub = T . prototype . sub ; function rb ( a , b ) { var c = a & 65535 ; a >>>= 16 ; var d = b & 65535 , f = b >>> 16 ; b = c * d + 65536 * ( c * f & 65535 ) + 65536 * ( a * d & 65535 ) ; for ( c = a * f + ( c * f >>> 16 ) + ( a * d >>> 16 ) ; 4294967296 <= b ; ) b -= 4294967296 , c += 1 ; return new T ( b >>> 0 , c >>> 0 ) } T . mul32x32 = rb ; T . prototype . eb = function ( a ) { var b = rb ( this . lo , a ) ; a = rb ( this . hi , a ) ; a . hi = a . lo ; a . lo = 0 ; return b . add ( a ) } ; T . prototype . mul = T . prototype . eb ;
T . prototype . Xa = function ( a ) { if ( 0 == a ) return [ ] ; var b = new T ( 0 , 0 ) , c = new T ( this . lo , this . hi ) ; a = new T ( a , 0 ) ; for ( var d = new T ( 1 , 0 ) ; ! a . cb ( ) ; ) a = a . Da ( ) , d = d . Da ( ) ; for ( ; ! d . Ua ( ) ; ) 0 >= a . cmp ( c ) && ( b = b . add ( d ) , c = c . sub ( a ) ) , a = a . La ( ) , d = d . La ( ) ; return [ b , c ] } ; T . prototype . div = T . prototype . Xa ; T . prototype . toString = function ( ) { for ( var a = "" , b = this ; ! b . Ua ( ) ; ) { b = b . Xa ( 10 ) ; var c = b [ 0 ] ; a = b [ 1 ] . lo + a ; b = c } "" == a && ( a = "0" ) ; return a } ; T . prototype . toString = T . prototype . toString ;
function U ( a ) { for ( var b = new T ( 0 , 0 ) , c = new T ( 0 , 0 ) , d = 0 ; d < a . length ; d ++ ) { if ( "0" > a [ d ] || "9" < a [ d ] ) return null ; c . lo = parseInt ( a [ d ] , 10 ) ; b = b . eb ( 10 ) . add ( c ) } return b } T . fromString = U ; T . prototype . clone = function ( ) { return new T ( this . lo , this . hi ) } ; T . prototype . clone = T . prototype . clone ; function V ( a , b ) { this . lo = a ; this . hi = b } g ( "jspb.arith.Int64" , V , void 0 ) ; V . prototype . add = function ( a ) { return new V ( ( this . lo + a . lo & 4294967295 ) >>> 0 >>> 0 , ( ( this . hi + a . hi & 4294967295 ) >>> 0 ) + ( 4294967296 <= this . lo + a . lo ? 1 : 0 ) >>> 0 ) } ; V . prototype . add = V . prototype . add ;
V . prototype . sub = function ( a ) { return new V ( ( this . lo - a . lo & 4294967295 ) >>> 0 >>> 0 , ( ( this . hi - a . hi & 4294967295 ) >>> 0 ) - ( 0 > this . lo - a . lo ? 1 : 0 ) >>> 0 ) } ; V . prototype . sub = V . prototype . sub ; V . prototype . clone = function ( ) { return new V ( this . lo , this . hi ) } ; V . prototype . clone = V . prototype . clone ; V . prototype . toString = function ( ) { var a = 0 != ( this . hi & 2147483648 ) , b = new T ( this . lo , this . hi ) ; a && ( b = ( new T ( 0 , 0 ) ) . sub ( b ) ) ; return ( a ? "-" : "" ) + b . toString ( ) } ; V . prototype . toString = V . prototype . toString ;
function sb ( a ) { var b = 0 < a . length && "-" == a [ 0 ] ; b && ( a = a . substring ( 1 ) ) ; a = U ( a ) ; if ( null === a ) return null ; b && ( a = ( new T ( 0 , 0 ) ) . sub ( a ) ) ; return new V ( a . lo , a . hi ) } V . fromString = sb ; function W ( ) { this . c = [ ] ; this . b = 0 ; this . a = new S ; this . h = [ ] } g ( "jspb.BinaryWriter" , W , void 0 ) ; function tb ( a , b ) { var c = a . a . end ( ) ; a . c . push ( c ) ; a . c . push ( b ) ; a . b += c . length + b . length } function X ( a , b ) { Y ( a , b , 2 ) ; b = a . a . end ( ) ; a . c . push ( b ) ; a . b += b . length ; b . push ( a . b ) ; return b } function Z ( a , b ) { var c = b . pop ( ) ; c = a . b + a . a . length ( ) - c ; for ( n ( 0 <= c ) ; 127 < c ; ) b . push ( c & 127 | 128 ) , c >>>= 7 , a . b ++ ; b . push ( c ) ; a . b ++ } W . prototype . pb = function ( a , b , c ) { tb ( this , a . subarray ( b , c ) ) } ; W . prototype . writeSerializedMessage = W . prototype . pb ;
W . prototype . Pb = function ( a , b , c ) { null != a && null != b && null != c && this . pb ( a , b , c ) } ; W . prototype . maybeWriteSerializedMessage = W . prototype . Pb ; W . prototype . reset = function ( ) { this . c = [ ] ; this . a . end ( ) ; this . b = 0 ; this . h = [ ] } ; W . prototype . reset = W . prototype . reset ; W . prototype . ab = function ( ) { n ( 0 == this . h . length ) ; for ( var a = new Uint8Array ( this . b + this . a . length ( ) ) , b = this . c , c = b . length , d = 0 , f = 0 ; f < c ; f ++ ) { var h = b [ f ] ; a . set ( h , d ) ; d += h . length } b = this . a . end ( ) ; a . set ( b , d ) ; d += b . length ; n ( d == a . length ) ; this . c = [ a ] ; return a } ;
W . prototype . getResultBuffer = W . prototype . ab ; W . prototype . Kb = function ( a ) { return Ba ( this . ab ( ) , a ) } ; W . prototype . getResultBase64String = W . prototype . Kb ; W . prototype . Va = function ( a ) { this . h . push ( X ( this , a ) ) } ; W . prototype . beginSubMessage = W . prototype . Va ; W . prototype . Ya = function ( ) { n ( 0 <= this . h . length ) ; Z ( this , this . h . pop ( ) ) } ; W . prototype . endSubMessage = W . prototype . Ya ; function Y ( a , b , c ) { n ( 1 <= b && b == Math . floor ( b ) ) ; a . a . j ( 8 * b + c ) }
W . prototype . Nc = function ( a , b , c ) { switch ( a ) { case 1 : this . J ( b , c ) ; break ; case 2 : this . L ( b , c ) ; break ; case 3 : this . T ( b , c ) ; break ; case 4 : this . V ( b , c ) ; break ; case 5 : this . S ( b , c ) ; break ; case 6 : this . Qa ( b , c ) ; break ; case 7 : this . Pa ( b , c ) ; break ; case 8 : this . I ( b , c ) ; break ; case 9 : this . U ( b , c ) ; break ; case 10 : p ( "Group field type not supported in writeAny()" ) ; break ; case 11 : p ( "Message field type not supported in writeAny()" ) ; break ; case 12 : this . ja ( b , c ) ; break ; case 13 : this . s ( b , c ) ; break ; case 14 : this . R ( b , c ) ; break ; case 15 : this . Ra ( b , c ) ; break ;
case 16 : this . Sa ( b , c ) ; break ; case 17 : this . rb ( b , c ) ; break ; case 18 : this . sb ( b , c ) ; break ; case 30 : this . K ( b , c ) ; break ; case 31 : this . N ( b , c ) ; break ; default : p ( "Invalid field type in writeAny()" ) } } ; W . prototype . writeAny = W . prototype . Nc ; function ub ( a , b , c ) { null != c && ( Y ( a , b , 0 ) , a . a . j ( c ) ) } function vb ( a , b , c ) { null != c && ( Y ( a , b , 0 ) , a . a . M ( c ) ) } W . prototype . S = function ( a , b ) { null != b && ( n ( - 2147483648 <= b && 2147483648 > b ) , vb ( this , a , b ) ) } ; W . prototype . writeInt32 = W . prototype . S ;
W . prototype . ob = function ( a , b ) { null != b && ( b = parseInt ( b , 10 ) , n ( - 2147483648 <= b && 2147483648 > b ) , vb ( this , a , b ) ) } ; W . prototype . writeInt32String = W . prototype . ob ; W . prototype . T = function ( a , b ) { null != b && ( n ( - 9223372036854775808 <= b && 0x7fffffffffffffff > b ) , null != b && ( Y ( this , a , 0 ) , this . a . ua ( b ) ) ) } ; W . prototype . writeInt64 = W . prototype . T ; W . prototype . ka = function ( a , b ) { null != b && ( b = sb ( b ) , Y ( this , a , 0 ) , this . a . l ( b . lo , b . hi ) ) } ; W . prototype . writeInt64String = W . prototype . ka ;
W . prototype . s = function ( a , b ) { null != b && ( n ( 0 <= b && 4294967296 > b ) , ub ( this , a , b ) ) } ; W . prototype . writeUint32 = W . prototype . s ; W . prototype . ub = function ( a , b ) { null != b && ( b = parseInt ( b , 10 ) , n ( 0 <= b && 4294967296 > b ) , ub ( this , a , b ) ) } ; W . prototype . writeUint32String = W . prototype . ub ; W . prototype . V = function ( a , b ) { null != b && ( n ( 0 <= b && 1.8446744073709552 E19 > b ) , null != b && ( Y ( this , a , 0 ) , this . a . va ( b ) ) ) } ; W . prototype . writeUint64 = W . prototype . V ; W . prototype . vb = function ( a , b ) { null != b && ( b = U ( b ) , Y ( this , a , 0 ) , this . a . l ( b . lo , b . hi ) ) } ;
W . prototype . writeUint64String = W . prototype . vb ; W . prototype . rb = function ( a , b ) { null != b && ( n ( - 2147483648 <= b && 2147483648 > b ) , null != b && ( Y ( this , a , 0 ) , this . a . wa ( b ) ) ) } ; W . prototype . writeSint32 = W . prototype . rb ; W . prototype . sb = function ( a , b ) { null != b && ( n ( - 9223372036854775808 <= b && 0x7fffffffffffffff > b ) , null != b && ( Y ( this , a , 0 ) , this . a . xa ( b ) ) ) } ; W . prototype . writeSint64 = W . prototype . sb ; W . prototype . $d = function ( a , b ) { null != b && null != b && ( Y ( this , a , 0 ) , this . a . W ( b ) ) } ; W . prototype . writeSintHash64 = W . prototype . $d ;
W . prototype . Zd = function ( a , b ) { null != b && null != b && ( Y ( this , a , 0 ) , this . a . Ta ( b ) ) } ; W . prototype . writeSint64String = W . prototype . Zd ; W . prototype . Pa = function ( a , b ) { null != b && ( n ( 0 <= b && 4294967296 > b ) , Y ( this , a , 5 ) , this . a . s ( b ) ) } ; W . prototype . writeFixed32 = W . prototype . Pa ; W . prototype . Qa = function ( a , b ) { null != b && ( n ( 0 <= b && 1.8446744073709552 E19 > b ) , Y ( this , a , 1 ) , this . a . V ( b ) ) } ; W . prototype . writeFixed64 = W . prototype . Qa ; W . prototype . nb = function ( a , b ) { null != b && ( b = U ( b ) , Y ( this , a , 1 ) , this . a . A ( b . lo , b . hi ) ) } ; W . prototype . writeFixed64String = W . prototype . nb ;
W . prototype . Ra = function ( a , b ) { null != b && ( n ( - 2147483648 <= b && 2147483648 > b ) , Y ( this , a , 5 ) , this . a . S ( b ) ) } ; W . prototype . writeSfixed32 = W . prototype . Ra ; W . prototype . Sa = function ( a , b ) { null != b && ( n ( - 9223372036854775808 <= b && 0x7fffffffffffffff > b ) , Y ( this , a , 1 ) , this . a . T ( b ) ) } ; W . prototype . writeSfixed64 = W . prototype . Sa ; W . prototype . qb = function ( a , b ) { null != b && ( b = sb ( b ) , Y ( this , a , 1 ) , this . a . A ( b . lo , b . hi ) ) } ; W . prototype . writeSfixed64String = W . prototype . qb ; W . prototype . L = function ( a , b ) { null != b && ( Y ( this , a , 5 ) , this . a . L ( b ) ) } ;
W . prototype . writeFloat = W . prototype . L ; W . prototype . J = function ( a , b ) { null != b && ( Y ( this , a , 1 ) , this . a . J ( b ) ) } ; W . prototype . writeDouble = W . prototype . J ; W . prototype . I = function ( a , b ) { null != b && ( n ( "boolean" === typeof b || "number" === typeof b ) , Y ( this , a , 0 ) , this . a . I ( b ) ) } ; W . prototype . writeBool = W . prototype . I ; W . prototype . R = function ( a , b ) { null != b && ( n ( - 2147483648 <= b && 2147483648 > b ) , Y ( this , a , 0 ) , this . a . M ( b ) ) } ; W . prototype . writeEnum = W . prototype . R ; W . prototype . U = function ( a , b ) { null != b && ( a = X ( this , a ) , this . a . U ( b ) , Z ( this , a ) ) } ;
W . prototype . writeString = W . prototype . U ; W . prototype . ja = function ( a , b ) { null != b && ( b = Ua ( b ) , Y ( this , a , 2 ) , this . a . j ( b . length ) , tb ( this , b ) ) } ; W . prototype . writeBytes = W . prototype . ja ; W . prototype . Rc = function ( a , b , c ) { null != b && ( a = X ( this , a ) , c ( b , this ) , Z ( this , a ) ) } ; W . prototype . writeMessage = W . prototype . Rc ; W . prototype . Sc = function ( a , b , c ) { null != b && ( Y ( this , 1 , 3 ) , Y ( this , 2 , 0 ) , this . a . M ( a ) , a = X ( this , 3 ) , c ( b , this ) , Z ( this , a ) , Y ( this , 1 , 4 ) ) } ; W . prototype . writeMessageSet = W . prototype . Sc ;
W . prototype . Oc = function ( a , b , c ) { null != b && ( Y ( this , a , 3 ) , c ( b , this ) , Y ( this , a , 4 ) ) } ; W . prototype . writeGroup = W . prototype . Oc ; W . prototype . K = function ( a , b ) { null != b && ( n ( 8 == b . length ) , Y ( this , a , 1 ) , this . a . K ( b ) ) } ; W . prototype . writeFixedHash64 = W . prototype . K ; W . prototype . N = function ( a , b ) { null != b && ( n ( 8 == b . length ) , Y ( this , a , 0 ) , this . a . N ( b ) ) } ; W . prototype . writeVarintHash64 = W . prototype . N ; W . prototype . A = function ( a , b , c ) { Y ( this , a , 1 ) ; this . a . A ( b , c ) } ; W . prototype . writeSplitFixed64 = W . prototype . A ;
W . prototype . l = function ( a , b , c ) { Y ( this , a , 0 ) ; this . a . l ( b , c ) } ; W . prototype . writeSplitVarint64 = W . prototype . l ; W . prototype . tb = function ( a , b , c ) { Y ( this , a , 0 ) ; var d = this . a ; Ja ( b , c , function ( f , h ) { d . l ( f >>> 0 , h >>> 0 ) } ) } ; W . prototype . writeSplitZigzagVarint64 = W . prototype . tb ; W . prototype . Ed = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) vb ( this , a , b [ c ] ) } ; W . prototype . writeRepeatedInt32 = W . prototype . Ed ; W . prototype . Fd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . ob ( a , b [ c ] ) } ;
W . prototype . writeRepeatedInt32String = W . prototype . Fd ; W . prototype . Gd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; null != d && ( Y ( this , a , 0 ) , this . a . ua ( d ) ) } } ; W . prototype . writeRepeatedInt64 = W . prototype . Gd ; W . prototype . Qd = function ( a , b , c , d ) { if ( null != b ) for ( var f = 0 ; f < b . length ; f ++ ) this . A ( a , c ( b [ f ] ) , d ( b [ f ] ) ) } ; W . prototype . writeRepeatedSplitFixed64 = W . prototype . Qd ; W . prototype . Rd = function ( a , b , c , d ) { if ( null != b ) for ( var f = 0 ; f < b . length ; f ++ ) this . l ( a , c ( b [ f ] ) , d ( b [ f ] ) ) } ;
W . prototype . writeRepeatedSplitVarint64 = W . prototype . Rd ; W . prototype . Sd = function ( a , b , c , d ) { if ( null != b ) for ( var f = 0 ; f < b . length ; f ++ ) this . tb ( a , c ( b [ f ] ) , d ( b [ f ] ) ) } ; W . prototype . writeRepeatedSplitZigzagVarint64 = W . prototype . Sd ; W . prototype . Hd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . ka ( a , b [ c ] ) } ; W . prototype . writeRepeatedInt64String = W . prototype . Hd ; W . prototype . Ud = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) ub ( this , a , b [ c ] ) } ; W . prototype . writeRepeatedUint32 = W . prototype . Ud ;
W . prototype . Vd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . ub ( a , b [ c ] ) } ; W . prototype . writeRepeatedUint32String = W . prototype . Vd ; W . prototype . Wd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; null != d && ( Y ( this , a , 0 ) , this . a . va ( d ) ) } } ; W . prototype . writeRepeatedUint64 = W . prototype . Wd ; W . prototype . Xd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . vb ( a , b [ c ] ) } ; W . prototype . writeRepeatedUint64String = W . prototype . Xd ;
W . prototype . Md = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; null != d && ( Y ( this , a , 0 ) , this . a . wa ( d ) ) } } ; W . prototype . writeRepeatedSint32 = W . prototype . Md ; W . prototype . Nd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; null != d && ( Y ( this , a , 0 ) , this . a . xa ( d ) ) } } ; W . prototype . writeRepeatedSint64 = W . prototype . Nd ; W . prototype . Od = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; null != d && ( Y ( this , a , 0 ) , this . a . Ta ( d ) ) } } ; W . prototype . writeRepeatedSint64String = W . prototype . Od ;
W . prototype . Pd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; null != d && ( Y ( this , a , 0 ) , this . a . W ( d ) ) } } ; W . prototype . writeRepeatedSintHash64 = W . prototype . Pd ; W . prototype . yd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . Pa ( a , b [ c ] ) } ; W . prototype . writeRepeatedFixed32 = W . prototype . yd ; W . prototype . zd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . Qa ( a , b [ c ] ) } ; W . prototype . writeRepeatedFixed64 = W . prototype . zd ;
W . prototype . Ad = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . nb ( a , b [ c ] ) } ; W . prototype . writeRepeatedFixed64String = W . prototype . Ad ; W . prototype . Jd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . Ra ( a , b [ c ] ) } ; W . prototype . writeRepeatedSfixed32 = W . prototype . Jd ; W . prototype . Kd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . Sa ( a , b [ c ] ) } ; W . prototype . writeRepeatedSfixed64 = W . prototype . Kd ; W . prototype . Ld = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . qb ( a , b [ c ] ) } ;
W . prototype . writeRepeatedSfixed64String = W . prototype . Ld ; W . prototype . Cd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . L ( a , b [ c ] ) } ; W . prototype . writeRepeatedFloat = W . prototype . Cd ; W . prototype . wd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . J ( a , b [ c ] ) } ; W . prototype . writeRepeatedDouble = W . prototype . wd ; W . prototype . ud = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . I ( a , b [ c ] ) } ; W . prototype . writeRepeatedBool = W . prototype . ud ;
W . prototype . xd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . R ( a , b [ c ] ) } ; W . prototype . writeRepeatedEnum = W . prototype . xd ; W . prototype . Td = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . U ( a , b [ c ] ) } ; W . prototype . writeRepeatedString = W . prototype . Td ; W . prototype . vd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . ja ( a , b [ c ] ) } ; W . prototype . writeRepeatedBytes = W . prototype . vd ; W . prototype . Id = function ( a , b , c ) { if ( null != b ) for ( var d = 0 ; d < b . length ; d ++ ) { var f = X ( this , a ) ; c ( b [ d ] , this ) ; Z ( this , f ) } } ;
W . prototype . writeRepeatedMessage = W . prototype . Id ; W . prototype . Dd = function ( a , b , c ) { if ( null != b ) for ( var d = 0 ; d < b . length ; d ++ ) Y ( this , a , 3 ) , c ( b [ d ] , this ) , Y ( this , a , 4 ) } ; W . prototype . writeRepeatedGroup = W . prototype . Dd ; W . prototype . Bd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . K ( a , b [ c ] ) } ; W . prototype . writeRepeatedFixedHash64 = W . prototype . Bd ; W . prototype . Yd = function ( a , b ) { if ( null != b ) for ( var c = 0 ; c < b . length ; c ++ ) this . N ( a , b [ c ] ) } ; W . prototype . writeRepeatedVarintHash64 = W . prototype . Yd ;
W . prototype . ad = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . M ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedInt32 = W . prototype . ad ; W . prototype . bd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . M ( parseInt ( b [ c ] , 10 ) ) ; Z ( this , a ) } } ; W . prototype . writePackedInt32String = W . prototype . bd ; W . prototype . cd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . ua ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedInt64 = W . prototype . cd ;
W . prototype . md = function ( a , b , c , d ) { if ( null != b ) { a = X ( this , a ) ; for ( var f = 0 ; f < b . length ; f ++ ) this . a . A ( c ( b [ f ] ) , d ( b [ f ] ) ) ; Z ( this , a ) } } ; W . prototype . writePackedSplitFixed64 = W . prototype . md ; W . prototype . nd = function ( a , b , c , d ) { if ( null != b ) { a = X ( this , a ) ; for ( var f = 0 ; f < b . length ; f ++ ) this . a . l ( c ( b [ f ] ) , d ( b [ f ] ) ) ; Z ( this , a ) } } ; W . prototype . writePackedSplitVarint64 = W . prototype . nd ; W . prototype . od = function ( a , b , c , d ) { if ( null != b ) { a = X ( this , a ) ; for ( var f = this . a , h = 0 ; h < b . length ; h ++ ) Ja ( c ( b [ h ] ) , d ( b [ h ] ) , function ( m , t ) { f . l ( m >>> 0 , t >>> 0 ) } ) ; Z ( this , a ) } } ;
W . prototype . writePackedSplitZigzagVarint64 = W . prototype . od ; W . prototype . dd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) { var d = sb ( b [ c ] ) ; this . a . l ( d . lo , d . hi ) } Z ( this , a ) } } ; W . prototype . writePackedInt64String = W . prototype . dd ; W . prototype . pd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . j ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedUint32 = W . prototype . pd ;
W . prototype . qd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . j ( parseInt ( b [ c ] , 10 ) ) ; Z ( this , a ) } } ; W . prototype . writePackedUint32String = W . prototype . qd ; W . prototype . rd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . va ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedUint64 = W . prototype . rd ; W . prototype . sd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) { var d = U ( b [ c ] ) ; this . a . l ( d . lo , d . hi ) } Z ( this , a ) } } ;
W . prototype . writePackedUint64String = W . prototype . sd ; W . prototype . hd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . wa ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedSint32 = W . prototype . hd ; W . prototype . jd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . xa ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedSint64 = W . prototype . jd ; W . prototype . kd = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . W ( H ( b [ c ] ) ) ; Z ( this , a ) } } ;
W . prototype . writePackedSint64String = W . prototype . kd ; W . prototype . ld = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . W ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedSintHash64 = W . prototype . ld ; W . prototype . Wc = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 4 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . s ( b [ a ] ) } ; W . prototype . writePackedFixed32 = W . prototype . Wc ; W . prototype . Xc = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 8 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . V ( b [ a ] ) } ;
W . prototype . writePackedFixed64 = W . prototype . Xc ; W . prototype . Yc = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 8 * b . length ) , a = 0 ; a < b . length ; a ++ ) { var c = U ( b [ a ] ) ; this . a . A ( c . lo , c . hi ) } } ; W . prototype . writePackedFixed64String = W . prototype . Yc ; W . prototype . ed = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 4 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . S ( b [ a ] ) } ; W . prototype . writePackedSfixed32 = W . prototype . ed ;
W . prototype . fd = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 8 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . T ( b [ a ] ) } ; W . prototype . writePackedSfixed64 = W . prototype . fd ; W . prototype . gd = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 8 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . ka ( b [ a ] ) } ; W . prototype . writePackedSfixed64String = W . prototype . gd ; W . prototype . $c = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 4 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . L ( b [ a ] ) } ; W . prototype . writePackedFloat = W . prototype . $c ;
W . prototype . Uc = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 8 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . J ( b [ a ] ) } ; W . prototype . writePackedDouble = W . prototype . Uc ; W . prototype . Tc = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . I ( b [ a ] ) } ; W . prototype . writePackedBool = W . prototype . Tc ; W . prototype . Vc = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . R ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedEnum = W . prototype . Vc ;
W . prototype . Zc = function ( a , b ) { if ( null != b && b . length ) for ( Y ( this , a , 2 ) , this . a . j ( 8 * b . length ) , a = 0 ; a < b . length ; a ++ ) this . a . K ( b [ a ] ) } ; W . prototype . writePackedFixedHash64 = W . prototype . Zc ; W . prototype . td = function ( a , b ) { if ( null != b && b . length ) { a = X ( this , a ) ; for ( var c = 0 ; c < b . length ; c ++ ) this . a . N ( b [ c ] ) ; Z ( this , a ) } } ; W . prototype . writePackedVarintHash64 = W . prototype . td ; "object" === typeof exports && ( exports . debug = R , exports . Map = r , exports . Message = N , exports . BinaryReader = J , exports . BinaryWriter = W , exports . ExtensionFieldInfo = Ya , exports . ExtensionFieldBinaryInfo = Za , exports . exportSymbol = ma , exports . inherits = na , exports . object = { extend : pa } , exports . typeOf = k ) ;
} ) . call ( this ) } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
} , { } ] , 13 : [ function ( require , module , exports ) {
2024-09-26 23:16:20 +02:00
( function ( global ) { ( function ( ) {
/ *
Copyright The Closure Library Authors .
SPDX - License - Identifier : Apache - 2.0
* /
var n ; function aa ( a ) { var b = 0 ; return function ( ) { return b < a . length ? { done : ! 1 , value : a [ b ++ ] } : { done : ! 0 } } } var ba = "function" == typeof Object . defineProperties ? Object . defineProperty : function ( a , b , c ) { a != Array . prototype && a != Object . prototype && ( a [ b ] = c . value ) } ; function ca ( a ) { a = [ "object" == typeof window && window , "object" == typeof self && self , "object" == typeof global && global , a ] ; for ( var b = 0 ; b < a . length ; ++ b ) { var c = a [ b ] ; if ( c && c . Math == Math ) return c } throw Error ( "Cannot find global object" ) ; } var r = ca ( this ) ;
function t ( ) { t = function ( ) { } ; r . Symbol || ( r . Symbol = da ) } function ea ( a , b ) { this . a = a ; ba ( this , "description" , { configurable : ! 0 , writable : ! 0 , value : b } ) } ea . prototype . toString = function ( ) { return this . a } ; var da = function ( ) { function a ( c ) { if ( this instanceof a ) throw new TypeError ( "Symbol is not a constructor" ) ; return new ea ( "jscomp_symbol_" + ( c || "" ) + "_" + b ++ , c ) } var b = 0 ; return a } ( ) ;
function u ( ) { t ( ) ; var a = r . Symbol . iterator ; a || ( a = r . Symbol . iterator = r . Symbol ( "Symbol.iterator" ) ) ; "function" != typeof Array . prototype [ a ] && ba ( Array . prototype , a , { configurable : ! 0 , writable : ! 0 , value : function ( ) { return fa ( aa ( this ) ) } } ) ; u = function ( ) { } } function fa ( a ) { u ( ) ; a = { next : a } ; a [ r . Symbol . iterator ] = function ( ) { return this } ; return a } function ha ( a ) { var b = "undefined" != typeof Symbol && Symbol . iterator && a [ Symbol . iterator ] ; return b ? b . call ( a ) : { next : aa ( a ) } }
var ia = "function" == typeof Object . create ? Object . create : function ( a ) { function b ( ) { } b . prototype = a ; return new b } , ja ; if ( "function" == typeof Object . setPrototypeOf ) ja = Object . setPrototypeOf ; else { var ka ; a : { var la = { V : ! 0 } , ma = { } ; try { ma . _ _proto _ _ = la ; ka = ma . V ; break a } catch ( a ) { } ka = ! 1 } ja = ka ? function ( a , b ) { a . _ _proto _ _ = b ; if ( a . _ _proto _ _ !== b ) throw new TypeError ( a + " is not extensible" ) ; return a } : null } var na = ja ;
function oa ( a , b ) { a . prototype = ia ( b . prototype ) ; a . prototype . constructor = a ; if ( na ) na ( a , b ) ; else for ( var c in b ) if ( "prototype" != c ) if ( Object . defineProperties ) { var d = Object . getOwnPropertyDescriptor ( b , c ) ; d && Object . defineProperty ( a , c , d ) } else a [ c ] = b [ c ] ; a . O = b . prototype }
function pa ( a , b ) { u ( ) ; a instanceof String && ( a += "" ) ; var c = 0 , d = { next : function ( ) { if ( c < a . length ) { var f = c ++ ; return { value : b ( f , a [ f ] ) , done : ! 1 } } d . next = function ( ) { return { done : ! 0 , value : void 0 } } ; return d . next ( ) } } ; d [ Symbol . iterator ] = function ( ) { return d } ; return d } function v ( a , b ) { if ( b ) { var c = r ; a = a . split ( "." ) ; for ( var d = 0 ; d < a . length - 1 ; d ++ ) { var f = a [ d ] ; f in c || ( c [ f ] = { } ) ; c = c [ f ] } a = a [ a . length - 1 ] ; d = c [ a ] ; b = b ( d ) ; b != d && null != b && ba ( c , a , { configurable : ! 0 , writable : ! 0 , value : b } ) } }
v ( "Array.prototype.keys" , function ( a ) { return a ? a : function ( ) { return pa ( this , function ( b ) { return b } ) } } ) ; v ( "Array.prototype.find" , function ( a ) { return a ? a : function ( b , c ) { a : { var d = this ; d instanceof String && ( d = String ( d ) ) ; for ( var f = d . length , g = 0 ; g < f ; g ++ ) { var e = d [ g ] ; if ( b . call ( c , e , g , d ) ) { b = e ; break a } } b = void 0 } return b } } ) ; v ( "Object.is" , function ( a ) { return a ? a : function ( b , c ) { return b === c ? 0 !== b || 1 / b === 1 / c : b !== b && c !== c } } ) ;
v ( "Array.prototype.includes" , function ( a ) { return a ? a : function ( b , c ) { var d = this ; d instanceof String && ( d = String ( d ) ) ; var f = d . length ; c = c || 0 ; for ( 0 > c && ( c = Math . max ( c + f , 0 ) ) ; c < f ; c ++ ) { var g = d [ c ] ; if ( g === b || Object . is ( g , b ) ) return ! 0 } return ! 1 } } ) ;
v ( "Promise" , function ( a ) { function b ( e ) { this . b = 0 ; this . c = void 0 ; this . a = [ ] ; var h = this . f ( ) ; try { e ( h . resolve , h . reject ) } catch ( k ) { h . reject ( k ) } } function c ( ) { this . a = null } function d ( e ) { return e instanceof b ? e : new b ( function ( h ) { h ( e ) } ) } if ( a ) return a ; c . prototype . b = function ( e ) { if ( null == this . a ) { this . a = [ ] ; var h = this ; this . c ( function ( ) { h . g ( ) } ) } this . a . push ( e ) } ; var f = r . setTimeout ; c . prototype . c = function ( e ) { f ( e , 0 ) } ; c . prototype . g = function ( ) { for ( ; this . a && this . a . length ; ) { var e = this . a ; this . a = [ ] ; for ( var h = 0 ; h < e . length ; ++ h ) { var k =
e [ h ] ; e [ h ] = null ; try { k ( ) } catch ( l ) { this . f ( l ) } } } this . a = null } ; c . prototype . f = function ( e ) { this . c ( function ( ) { throw e ; } ) } ; b . prototype . f = function ( ) { function e ( l ) { return function ( m ) { k || ( k = ! 0 , l . call ( h , m ) ) } } var h = this , k = ! 1 ; return { resolve : e ( this . s ) , reject : e ( this . g ) } } ; b . prototype . s = function ( e ) { if ( e === this ) this . g ( new TypeError ( "A Promise cannot resolve to itself" ) ) ; else if ( e instanceof b ) this . v ( e ) ; else { a : switch ( typeof e ) { case "object" : var h = null != e ; break a ; case "function" : h = ! 0 ; break a ; default : h = ! 1 } h ? this . m ( e ) : this . h ( e ) } } ;
b . prototype . m = function ( e ) { var h = void 0 ; try { h = e . then } catch ( k ) { this . g ( k ) ; return } "function" == typeof h ? this . w ( h , e ) : this . h ( e ) } ; b . prototype . g = function ( e ) { this . i ( 2 , e ) } ; b . prototype . h = function ( e ) { this . i ( 1 , e ) } ; b . prototype . i = function ( e , h ) { if ( 0 != this . b ) throw Error ( "Cannot settle(" + e + ", " + h + "): Promise already settled in state" + this . b ) ; this . b = e ; this . c = h ; this . l ( ) } ; b . prototype . l = function ( ) { if ( null != this . a ) { for ( var e = 0 ; e < this . a . length ; ++ e ) g . b ( this . a [ e ] ) ; this . a = null } } ; var g = new c ; b . prototype . v = function ( e ) { var h = this . f ( ) ;
e . F ( h . resolve , h . reject ) } ; b . prototype . w = function ( e , h ) { var k = this . f ( ) ; try { e . call ( h , k . resolve , k . reject ) } catch ( l ) { k . reject ( l ) } } ; b . prototype . then = function ( e , h ) { function k ( q , w ) { return "function" == typeof q ? function ( A ) { try { l ( q ( A ) ) } catch ( L ) { m ( L ) } } : w } var l , m , p = new b ( function ( q , w ) { l = q ; m = w } ) ; this . F ( k ( e , l ) , k ( h , m ) ) ; return p } ; b . prototype . catch = function ( e ) { return this . then ( void 0 , e ) } ; b . prototype . F = function ( e , h ) { function k ( ) { switch ( l . b ) { case 1 : e ( l . c ) ; break ; case 2 : h ( l . c ) ; break ; default : throw Error ( "Unexpected state: " +
l . b ) ; } } var l = this ; null == this . a ? g . b ( k ) : this . a . push ( k ) } ; b . resolve = d ; b . reject = function ( e ) { return new b ( function ( h , k ) { k ( e ) } ) } ; b . race = function ( e ) { return new b ( function ( h , k ) { for ( var l = ha ( e ) , m = l . next ( ) ; ! m . done ; m = l . next ( ) ) d ( m . value ) . F ( h , k ) } ) } ; b . all = function ( e ) { var h = ha ( e ) , k = h . next ( ) ; return k . done ? d ( [ ] ) : new b ( function ( l , m ) { function p ( A ) { return function ( L ) { q [ A ] = L ; w -- ; 0 == w && l ( q ) } } var q = [ ] , w = 0 ; do q . push ( void 0 ) , w ++ , d ( k . value ) . F ( p ( q . length - 1 ) , m ) , k = h . next ( ) ; while ( ! k . done ) } ) } ; return b } ) ; var qa = qa || { } , x = this || self ;
function y ( a , b ) { a = a . split ( "." ) ; b = b || x ; for ( var c = 0 ; c < a . length ; c ++ ) if ( b = b [ a [ c ] ] , null == b ) return null ; return b } function ra ( ) { } function sa ( a ) { var b = typeof a ; return "object" == b && null != a || "function" == b } var ta = "closure_uid_" + ( 1E9 * Math . random ( ) >>> 0 ) , ua = 0 ; function va ( a , b , c ) { return a . call . apply ( a . bind , arguments ) }
function wa ( a , b , c ) { if ( ! a ) throw Error ( ) ; if ( 2 < arguments . length ) { var d = Array . prototype . slice . call ( arguments , 2 ) ; return function ( ) { var f = Array . prototype . slice . call ( arguments ) ; Array . prototype . unshift . apply ( f , d ) ; return a . apply ( b , f ) } } return function ( ) { return a . apply ( b , arguments ) } } function z ( a , b , c ) { Function . prototype . bind && - 1 != Function . prototype . bind . toString ( ) . indexOf ( "native code" ) ? z = va : z = wa ; return z . apply ( null , arguments ) }
function B ( a , b ) { function c ( ) { } c . prototype = b . prototype ; a . O = b . prototype ; a . prototype = new c ; a . prototype . constructor = a } ; function xa ( a ) { this . a = a || { } } xa . prototype . get = function ( a ) { return this . a [ a ] } ; xa . prototype . G = function ( ) { return Object . keys ( this . a ) } ; function C ( a , b , c , d ) { this . f = a ; this . c = b ; this . b = c ; this . a = d } C . prototype . getRequestMessage = function ( ) { return this . f } ; C . prototype . getMethodDescriptor = function ( ) { return this . c } ; C . prototype . getMetadata = function ( ) { return this . b } ; C . prototype . getCallOptions = function ( ) { return this . a } ; function D ( a , b , c , d ) { c = void 0 === c ? { } : c ; this . c = a ; this . a = c ; this . b = b ; this . f = void 0 === d ? null : d } D . prototype . getResponseMessage = function ( ) { return this . c } ; D . prototype . getMetadata = function ( ) { return this . a } ; D . prototype . getMethodDescriptor = function ( ) { return this . b } ; D . prototype . getStatus = function ( ) { return this . f } ; function ya ( a , b , c , d , f , g ) { this . name = a ; this . a = f ; this . b = g } function za ( a , b , c ) { c = void 0 === c ? { } : c ; var d = void 0 === d ? new xa : d ; return new C ( b , a , c , d ) } ya . prototype . getName = function ( ) { return this . name } ; ya . prototype . getName = ya . prototype . getName ; function Aa ( a ) { switch ( a ) { case 200 : return 0 ; case 400 : return 3 ; case 401 : return 16 ; case 403 : return 7 ; case 404 : return 5 ; case 409 : return 10 ; case 412 : return 9 ; case 429 : return 8 ; case 499 : return 1 ; case 500 : return 2 ; case 501 : return 12 ; case 503 : return 14 ; case 504 : return 4 ; default : return 2 } }
function Ba ( a ) { switch ( a ) { case 0 : return "OK" ; case 1 : return "CANCELLED" ; case 2 : return "UNKNOWN" ; case 3 : return "INVALID_ARGUMENT" ; case 4 : return "DEADLINE_EXCEEDED" ; case 5 : return "NOT_FOUND" ; case 6 : return "ALREADY_EXISTS" ; case 7 : return "PERMISSION_DENIED" ; case 16 : return "UNAUTHENTICATED" ; case 8 : return "RESOURCE_EXHAUSTED" ; case 9 : return "FAILED_PRECONDITION" ; case 10 : return "ABORTED" ; case 11 : return "OUT_OF_RANGE" ; case 12 : return "UNIMPLEMENTED" ; case 13 : return "INTERNAL" ; case 14 : return "UNAVAILABLE" ; case 15 : return "DATA_LOSS" ;
default : return "" } } ; function E ( a , b , c ) { c = void 0 === c ? { } : c ; b = Error . call ( this , b ) ; this . message = b . message ; "stack" in b && ( this . stack = b . stack ) ; this . code = a ; this . metadata = c } oa ( E , Error ) ; E . prototype . toString = function ( ) { var a = "RpcError(" + ( Ba ( this . code ) || String ( this . code ) ) + ")" ; this . message && ( a += ": " + this . message ) ; return a } ; E . prototype . name = "RpcError" ; function Ca ( a ) { this . a = a } Ca . prototype . on = function ( a , b ) { return "data" == a || "error" == a ? this : this . a . on ( a , b ) } ; Ca . prototype . removeListener = function ( a , b ) { return this . a . removeListener ( a , b ) } ; Ca . prototype . cancel = function ( ) { this . a . cancel ( ) } ; function Da ( a ) { switch ( a ) { case 0 : return "No Error" ; case 1 : return "Access denied to content document" ; case 2 : return "File not found" ; case 3 : return "Firefox silently errored" ; case 4 : return "Application custom error" ; case 5 : return "An exception occurred" ; case 6 : return "Http response at 400 or 500 level" ; case 7 : return "Request was aborted" ; case 8 : return "Request timed out" ; case 9 : return "The resource is not available offline" ; default : return "Unrecognized error code" } } ; function F ( a ) { if ( Error . captureStackTrace ) Error . captureStackTrace ( this , F ) ; else { var b = Error ( ) . stack ; b && ( this . stack = b ) } a && ( this . message = String ( a ) ) } B ( F , Error ) ; F . prototype . name = "CustomError" ; function Ea ( a , b ) { a = a . split ( "%s" ) ; for ( var c = "" , d = a . length - 1 , f = 0 ; f < d ; f ++ ) c += a [ f ] + ( f < b . length ? b [ f ] : "%s" ) ; F . call ( this , c + a [ d ] ) } B ( Ea , F ) ; Ea . prototype . name = "AssertionError" ; function Fa ( a , b ) { throw new Ea ( "Failure" + ( a ? ": " + a : "" ) , Array . prototype . slice . call ( arguments , 1 ) ) ; } ; function Ga ( ) { this . l = null ; this . i = [ ] ; this . m = 0 ; this . b = Ha ; this . f = this . a = this . h = 0 ; this . c = null ; this . g = 0 }
function Ia ( a , b ) { function c ( l ) { l == Ja ? e . h = l : l == G ? e . h = l : Ka ( e , h , k , "invalid frame byte" ) ; e . b = La ; e . a = 0 ; e . f = 0 } function d ( l ) { e . f ++ ; e . a = ( e . a << 8 ) + l ; 4 == e . f && ( e . b = Ma , e . g = 0 , "undefined" !== typeof Uint8Array ? e . c = new Uint8Array ( e . a ) : e . c = Array ( e . a ) , 0 == e . a && g ( ) ) } function f ( l ) { e . c [ e . g ++ ] = l ; e . g == e . a && g ( ) } function g ( ) { var l = { } ; l [ e . h ] = e . c ; e . i . push ( l ) ; e . b = Ha } var e = a , h , k = 0 ; for ( b instanceof Uint8Array || b instanceof Array ? h = b : h = new Uint8Array ( b ) ; k < h . length ; ) { switch ( e . b ) { case Na : Ka ( e , h , k , "stream already broken" ) ; break ; case Ha : c ( h [ k ] ) ;
break ; case La : d ( h [ k ] ) ; break ; case Ma : f ( h [ k ] ) ; break ; default : throw Error ( "unexpected parser state: " + e . b ) ; } e . m ++ ; k ++ } a = e . i ; e . i = [ ] ; return 0 < a . length ? a : null } var Ha = 0 , La = 1 , Ma = 2 , Na = 3 , Ja = 0 , G = 128 ; function Ka ( a , b , c , d ) { a . b = Na ; a . l = "The stream is broken @" + a . m + "/" + c + ". Error: " + d + ". With input:\n" + b ; throw Error ( a . l ) ; } ; var Oa = Array . prototype . indexOf ? function ( a , b ) { return Array . prototype . indexOf . call ( a , b , void 0 ) } : function ( a , b ) { if ( "string" === typeof a ) return "string" !== typeof b || 1 != b . length ? - 1 : a . indexOf ( b , 0 ) ; for ( var c = 0 ; c < a . length ; c ++ ) if ( c in a && a [ c ] === b ) return c ; return - 1 } ; var Pa = String . prototype . trim ? function ( a ) { return a . trim ( ) } : function ( a ) { return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/ . exec ( a ) [ 1 ] } ; function H ( a , b ) { return - 1 != a . indexOf ( b ) } function Qa ( a , b ) { return a < b ? - 1 : a > b ? 1 : 0 } ; var I ; a : { var Ra = x . navigator ; if ( Ra ) { var Sa = Ra . userAgent ; if ( Sa ) { I = Sa ; break a } } I = "" } ; function Ta ( a , b ) { for ( var c in a ) b . call ( void 0 , a [ c ] , c , a ) } function Ua ( a , b ) { var c = { } , d ; for ( d in a ) c [ d ] = b . call ( void 0 , a [ d ] , d , a ) ; return c } var Va = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf" . split ( " " ) ; function Wa ( a , b ) { for ( var c , d , f = 1 ; f < arguments . length ; f ++ ) { d = arguments [ f ] ; for ( c in d ) a [ c ] = d [ c ] ; for ( var g = 0 ; g < Va . length ; g ++ ) c = Va [ g ] , Object . prototype . hasOwnProperty . call ( d , c ) && ( a [ c ] = d [ c ] ) } } ; function Xa ( a ) { var b = 1 ; a = a . split ( ":" ) ; for ( var c = [ ] ; 0 < b && a . length ; ) c . push ( a . shift ( ) ) , b -- ; a . length && c . push ( a . join ( ":" ) ) ; return c } ; function Ya ( a ) { Ya [ " " ] ( a ) ; return a } Ya [ " " ] = ra ; function Za ( a ) { var b = $a ; return Object . prototype . hasOwnProperty . call ( b , 9 ) ? b [ 9 ] : b [ 9 ] = a ( 9 ) } ; var ab = H ( I , "Opera" ) , bb = H ( I , "Trident" ) || H ( I , "MSIE" ) , cb = H ( I , "Edge" ) , db = H ( I , "Gecko" ) && ! ( H ( I . toLowerCase ( ) , "webkit" ) && ! H ( I , "Edge" ) ) && ! ( H ( I , "Trident" ) || H ( I , "MSIE" ) ) && ! H ( I , "Edge" ) , eb = H ( I . toLowerCase ( ) , "webkit" ) && ! H ( I , "Edge" ) , fb ;
a : { var gb = "" , hb = function ( ) { var a = I ; if ( db ) return /rv:([^\);]+)(\)|;)/ . exec ( a ) ; if ( cb ) return /Edge\/([\d\.]+)/ . exec ( a ) ; if ( bb ) return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/ . exec ( a ) ; if ( eb ) return /WebKit\/(\S+)/ . exec ( a ) ; if ( ab ) return /(?:Version)[ \/]?(\S+)/ . exec ( a ) } ( ) ; hb && ( gb = hb ? hb [ 1 ] : "" ) ; if ( bb ) { var ib , jb = x . document ; ib = jb ? jb . documentMode : void 0 ; if ( null != ib && ib > parseFloat ( gb ) ) { fb = String ( ib ) ; break a } } fb = gb } var $a = { } ;
function kb ( ) { return Za ( function ( ) { for ( var a = 0 , b = Pa ( String ( fb ) ) . split ( "." ) , c = Pa ( "9" ) . split ( "." ) , d = Math . max ( b . length , c . length ) , f = 0 ; 0 == a && f < d ; f ++ ) { var g = b [ f ] || "" , e = c [ f ] || "" ; do { g = /(\d*)(\D*)(.*)/ . exec ( g ) || [ "" , "" , "" , "" ] ; e = /(\d*)(\D*)(.*)/ . exec ( e ) || [ "" , "" , "" , "" ] ; if ( 0 == g [ 0 ] . length && 0 == e [ 0 ] . length ) break ; a = Qa ( 0 == g [ 1 ] . length ? 0 : parseInt ( g [ 1 ] , 10 ) , 0 == e [ 1 ] . length ? 0 : parseInt ( e [ 1 ] , 10 ) ) || Qa ( 0 == g [ 2 ] . length , 0 == e [ 2 ] . length ) || Qa ( g [ 2 ] , e [ 2 ] ) ; g = g [ 3 ] ; e = e [ 3 ] } while ( 0 == a ) } return 0 <= a } ) } ; function lb ( ) { 0 != mb && ( Object . prototype . hasOwnProperty . call ( this , ta ) && this [ ta ] || ( this [ ta ] = ++ ua ) ) ; this . K = this . K } var mb = 0 ; lb . prototype . K = ! 1 ; var nb = Object . freeze || function ( a ) { return a } ; function J ( a , b ) { this . type = a ; this . a = this . target = b ; this . defaultPrevented = ! 1 } J . prototype . b = function ( ) { this . defaultPrevented = ! 0 } ; var ob = function ( ) { if ( ! x . addEventListener || ! Object . defineProperty ) return ! 1 ; var a = ! 1 , b = Object . defineProperty ( { } , "passive" , { get : function ( ) { a = ! 0 } } ) ; try { x . addEventListener ( "test" , ra , b ) , x . removeEventListener ( "test" , ra , b ) } catch ( c ) { } return a } ( ) ; function K ( a , b ) { J . call ( this , a ? a . type : "" ) ; this . relatedTarget = this . a = this . target = null ; this . button = this . screenY = this . screenX = this . clientY = this . clientX = 0 ; this . key = "" ; this . metaKey = this . shiftKey = this . altKey = this . ctrlKey = ! 1 ; this . pointerId = 0 ; this . pointerType = "" ; this . c = null ; if ( a ) { var c = this . type = a . type , d = a . changedTouches && a . changedTouches . length ? a . changedTouches [ 0 ] : null ; this . target = a . target || a . srcElement ; this . a = b ; if ( b = a . relatedTarget ) { if ( db ) { a : { try { Ya ( b . nodeName ) ; var f = ! 0 ; break a } catch ( g ) { } f = ! 1 } f || ( b = null ) } } else "mouseover" ==
c ? b = a . fromElement : "mouseout" == c && ( b = a . toElement ) ; this . relatedTarget = b ; d ? ( this . clientX = void 0 !== d . clientX ? d . clientX : d . pageX , this . clientY = void 0 !== d . clientY ? d . clientY : d . pageY , this . screenX = d . screenX || 0 , this . screenY = d . screenY || 0 ) : ( this . clientX = void 0 !== a . clientX ? a . clientX : a . pageX , this . clientY = void 0 !== a . clientY ? a . clientY : a . pageY , this . screenX = a . screenX || 0 , this . screenY = a . screenY || 0 ) ; this . button = a . button ; this . key = a . key || "" ; this . ctrlKey = a . ctrlKey ; this . altKey = a . altKey ; this . shiftKey = a . shiftKey ; this . metaKey =
a . metaKey ; this . pointerId = a . pointerId || 0 ; this . pointerType = "string" === typeof a . pointerType ? a . pointerType : pb [ a . pointerType ] || "" ; this . c = a ; a . defaultPrevented && K . O . b . call ( this ) } } B ( K , J ) ; var pb = nb ( { 2 : "touch" , 3 : "pen" , 4 : "mouse" } ) ; K . prototype . b = function ( ) { K . O . b . call ( this ) ; var a = this . c ; a . preventDefault ? a . preventDefault ( ) : a . returnValue = ! 1 } ; var M = "closure_listenable_" + ( 1E6 * Math . random ( ) | 0 ) ; var qb = 0 ; function rb ( a , b , c , d , f ) { this . listener = a ; this . proxy = null ; this . src = b ; this . type = c ; this . capture = ! ! d ; this . H = f ; this . key = ++ qb ; this . A = this . D = ! 1 } function sb ( a ) { a . A = ! 0 ; a . listener = null ; a . proxy = null ; a . src = null ; a . H = null } ; function tb ( a ) { this . src = a ; this . a = { } ; this . b = 0 } tb . prototype . add = function ( a , b , c , d , f ) { var g = a . toString ( ) ; a = this . a [ g ] ; a || ( a = this . a [ g ] = [ ] , this . b ++ ) ; var e = ub ( a , b , d , f ) ; - 1 < e ? ( b = a [ e ] , c || ( b . D = ! 1 ) ) : ( b = new rb ( b , this . src , g , ! ! d , f ) , b . D = c , a . push ( b ) ) ; return b } ; tb . prototype . remove = function ( a , b , c , d ) { a = a . toString ( ) ; if ( ! ( a in this . a ) ) return ! 1 ; var f = this . a [ a ] ; b = ub ( f , b , c , d ) ; return - 1 < b ? ( sb ( f [ b ] ) , Array . prototype . splice . call ( f , b , 1 ) , 0 == f . length && ( delete this . a [ a ] , this . b -- ) , ! 0 ) : ! 1 } ;
function vb ( a , b ) { var c = b . type ; if ( c in a . a ) { var d = a . a [ c ] , f = Oa ( d , b ) , g ; ( g = 0 <= f ) && Array . prototype . splice . call ( d , f , 1 ) ; g && ( sb ( b ) , 0 == a . a [ c ] . length && ( delete a . a [ c ] , a . b -- ) ) } } function ub ( a , b , c , d ) { for ( var f = 0 ; f < a . length ; ++ f ) { var g = a [ f ] ; if ( ! g . A && g . listener == b && g . capture == ! ! c && g . H == d ) return f } return - 1 } ; var wb = "closure_lm_" + ( 1E6 * Math . random ( ) | 0 ) , xb = { } , yb = 0 ; function zb ( a , b , c , d , f ) { if ( d && d . once ) Ab ( a , b , c , d , f ) ; else if ( Array . isArray ( b ) ) for ( var g = 0 ; g < b . length ; g ++ ) zb ( a , b [ g ] , c , d , f ) ; else c = Bb ( c ) , a && a [ M ] ? a . f . add ( String ( b ) , c , ! 1 , sa ( d ) ? ! ! d . capture : ! ! d , f ) : Cb ( a , b , c , ! 1 , d , f ) }
function Cb ( a , b , c , d , f , g ) { if ( ! b ) throw Error ( "Invalid event type" ) ; var e = sa ( f ) ? ! ! f . capture : ! ! f , h = Db ( a ) ; h || ( a [ wb ] = h = new tb ( a ) ) ; c = h . add ( b , c , d , e , g ) ; if ( ! c . proxy ) { d = Eb ( ) ; c . proxy = d ; d . src = a ; d . listener = c ; if ( a . addEventListener ) ob || ( f = e ) , void 0 === f && ( f = ! 1 ) , a . addEventListener ( b . toString ( ) , d , f ) ; else if ( a . attachEvent ) a . attachEvent ( Fb ( b . toString ( ) ) , d ) ; else if ( a . addListener && a . removeListener ) a . addListener ( d ) ; else throw Error ( "addEventListener and attachEvent are unavailable." ) ; yb ++ } }
function Eb ( ) { function a ( c ) { return b . call ( a . src , a . listener , c ) } var b = Gb ; return a } function Ab ( a , b , c , d , f ) { if ( Array . isArray ( b ) ) for ( var g = 0 ; g < b . length ; g ++ ) Ab ( a , b [ g ] , c , d , f ) ; else c = Bb ( c ) , a && a [ M ] ? a . f . add ( String ( b ) , c , ! 0 , sa ( d ) ? ! ! d . capture : ! ! d , f ) : Cb ( a , b , c , ! 0 , d , f ) } function Hb ( a , b , c , d , f ) { if ( Array . isArray ( b ) ) for ( var g = 0 ; g < b . length ; g ++ ) Hb ( a , b [ g ] , c , d , f ) ; else ( d = sa ( d ) ? ! ! d . capture : ! ! d , c = Bb ( c ) , a && a [ M ] ) ? a . f . remove ( String ( b ) , c , d , f ) : a && ( a = Db ( a ) ) && ( b = a . a [ b . toString ( ) ] , a = - 1 , b && ( a = ub ( b , c , d , f ) ) , ( c = - 1 < a ? b [ a ] : null ) && Ib ( c ) ) }
function Ib ( a ) { if ( "number" !== typeof a && a && ! a . A ) { var b = a . src ; if ( b && b [ M ] ) vb ( b . f , a ) ; else { var c = a . type , d = a . proxy ; b . removeEventListener ? b . removeEventListener ( c , d , a . capture ) : b . detachEvent ? b . detachEvent ( Fb ( c ) , d ) : b . addListener && b . removeListener && b . removeListener ( d ) ; yb -- ; ( c = Db ( b ) ) ? ( vb ( c , a ) , 0 == c . b && ( c . src = null , b [ wb ] = null ) ) : sb ( a ) } } } function Fb ( a ) { return a in xb ? xb [ a ] : xb [ a ] = "on" + a } function Gb ( a , b ) { if ( a . A ) a = ! 0 ; else { b = new K ( b , this ) ; var c = a . listener , d = a . H || a . src ; a . D && Ib ( a ) ; a = c . call ( d , b ) } return a }
function Db ( a ) { a = a [ wb ] ; return a instanceof tb ? a : null } var Jb = "__closure_events_fn_" + ( 1E9 * Math . random ( ) >>> 0 ) ; function Bb ( a ) { if ( "function" === typeof a ) return a ; a [ Jb ] || ( a [ Jb ] = function ( b ) { return a . handleEvent ( b ) } ) ; return a [ Jb ] } ; function N ( ) { lb . call ( this ) ; this . f = new tb ( this ) ; this . U = this } B ( N , lb ) ; N . prototype [ M ] = ! 0 ; N . prototype . addEventListener = function ( a , b , c , d ) { zb ( this , a , b , c , d ) } ; N . prototype . removeEventListener = function ( a , b , c , d ) { Hb ( this , a , b , c , d ) } ; function O ( a , b ) { a = a . U ; var c = b . type || b ; if ( "string" === typeof b ) b = new J ( b , a ) ; else if ( b instanceof J ) b . target = b . target || a ; else { var d = b ; b = new J ( c , a ) ; Wa ( b , d ) } a = b . a = a ; Kb ( a , c , ! 0 , b ) ; Kb ( a , c , ! 1 , b ) }
function Kb ( a , b , c , d ) { if ( b = a . f . a [ String ( b ) ] ) { b = b . concat ( ) ; for ( var f = ! 0 , g = 0 ; g < b . length ; ++ g ) { var e = b [ g ] ; if ( e && ! e . A && e . capture == c ) { var h = e . listener , k = e . H || e . src ; e . D && vb ( a . f , e ) ; f = ! 1 !== h . call ( k , d ) && f } } } } ; var Lb = x ; function Mb ( a , b , c ) { if ( "function" === typeof a ) c && ( a = z ( a , c ) ) ; else if ( a && "function" == typeof a . handleEvent ) a = z ( a . handleEvent , a ) ; else throw Error ( "Invalid listener argument" ) ; return 2147483647 < Number ( b ) ? - 1 : Lb . setTimeout ( a , b || 0 ) } ; function Nb ( a , b ) { this . name = a ; this . value = b } Nb . prototype . toString = function ( ) { return this . name } ; var Ob = new Nb ( "OFF" , Infinity ) , Pb = new Nb ( "SEVERE" , 1E3 ) , Qb = new Nb ( "CONFIG" , 700 ) , Rb = new Nb ( "FINE" , 500 ) ; function Tb ( ) { this . clear ( ) } var Ub ; Tb . prototype . clear = function ( ) { } ; function Vb ( a , b , c ) { this . reset ( a || Ob , b , c , void 0 , void 0 ) } Vb . prototype . reset = function ( ) { } ; function Wb ( a , b ) { this . a = null ; this . f = [ ] ; this . b = ( void 0 === b ? null : b ) || null ; this . c = [ ] ; this . g = { getName : function ( ) { return a } } }
function Xb ( a ) { if ( a . a ) return a . a ; if ( a . b ) return Xb ( a . b ) ; Fa ( "Root logger has no level set." ) ; return Ob } function Yb ( a , b ) { for ( ; a ; ) a . f . forEach ( function ( c ) { c ( b ) } ) , a = a . b } function Zb ( ) { this . entries = { } ; var a = new Wb ( "" ) ; a . a = Qb ; this . entries [ "" ] = a } var $b ; function ac ( a , b , c ) { var d = a . entries [ b ] ; if ( d ) return void 0 !== c && ( d . a = c ) , d ; d = ac ( a , b . substr ( 0 , b . lastIndexOf ( "." ) ) ) ; var f = new Wb ( b , d ) ; a . entries [ b ] = f ; d . c . push ( f ) ; void 0 !== c && ( f . a = c ) ; return f } function bc ( ) { $b || ( $b = new Zb ) ; return $b }
function cc ( a , b , c ) { var d ; if ( d = a ) if ( d = a && b ) { d = b . value ; var f = a ? Xb ( ac ( bc ( ) , a . getName ( ) ) ) : Ob ; d = d >= f . value } d && ( b = b || Ob , d = ac ( bc ( ) , a . getName ( ) ) , "function" === typeof c && ( c = c ( ) ) , Ub || ( Ub = new Tb ) , a = a . getName ( ) , a = new Vb ( b , c , a ) , Yb ( d , a ) ) } function P ( a , b ) { a && cc ( a , Rb , b ) } ; function dc ( ) { } dc . prototype . a = null ; function ec ( a ) { var b ; ( b = a . a ) || ( b = { } , fc ( a ) && ( b [ 0 ] = ! 0 , b [ 1 ] = ! 0 ) , b = a . a = b ) ; return b } ; var gc ; function hc ( ) { } B ( hc , dc ) ; function ic ( a ) { return ( a = fc ( a ) ) ? new ActiveXObject ( a ) : new XMLHttpRequest } function fc ( a ) { if ( ! a . b && "undefined" == typeof XMLHttpRequest && "undefined" != typeof ActiveXObject ) { for ( var b = [ "MSXML2.XMLHTTP.6.0" , "MSXML2.XMLHTTP.3.0" , "MSXML2.XMLHTTP" , "Microsoft.XMLHTTP" ] , c = 0 ; c < b . length ; c ++ ) { var d = b [ c ] ; try { return new ActiveXObject ( d ) , a . b = d } catch ( f ) { } } throw Error ( "Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed" ) ; } return a . b } gc = new hc ; t ( ) ; u ( ) ; function jc ( a , b ) { this . b = a [ x . Symbol . iterator ] ( ) ; this . c = b ; this . f = 0 } jc . prototype [ Symbol . iterator ] = function ( ) { return this } ; jc . prototype . next = function ( ) { var a = this . b . next ( ) ; return { value : a . done ? void 0 : this . c . call ( void 0 , a . value , this . f ++ ) , done : a . done } } ; function kc ( a , b ) { return new jc ( a , b ) } t ( ) ; u ( ) ; t ( ) ; u ( ) ; var lc = "StopIteration" in x ? x . StopIteration : { message : "StopIteration" , stack : "" } ; function Q ( ) { } Q . prototype . next = function ( ) { return Q . prototype . a . call ( this ) } ; Q . prototype . a = function ( ) { throw lc ; } ; Q . prototype . u = function ( ) { return this } ; function mc ( a ) { if ( a instanceof R || a instanceof S || a instanceof T ) return a ; if ( "function" == typeof a . next ) return new R ( function ( ) { return nc ( a ) } ) ; t ( ) ; u ( ) ; if ( "function" == typeof a [ Symbol . iterator ] ) return t ( ) , u ( ) , new R ( function ( ) { return a [ Symbol . iterator ] ( ) } ) ; if ( "function" == typeof a . u ) return new R ( function ( ) { return nc ( a . u ( ) ) } ) ; throw Error ( "Not an iterator or iterable." ) ; }
function nc ( a ) { if ( ! ( a instanceof Q ) ) return a ; var b = ! 1 ; return { next : function ( ) { for ( var c ; ! b ; ) try { c = a . a ( ) ; break } catch ( d ) { if ( d !== lc ) throw d ; b = ! 0 } return { value : c , done : b } } } } t ( ) ; u ( ) ; function R ( a ) { this . b = a } R . prototype . u = function ( ) { return new S ( this . b ( ) ) } ; R . prototype [ Symbol . iterator ] = function ( ) { return new T ( this . b ( ) ) } ; R . prototype . c = function ( ) { return new T ( this . b ( ) ) } ; t ( ) ; u ( ) ; function S ( a ) { this . b = a } oa ( S , Q ) ; S . prototype . a = function ( ) { var a = this . b . next ( ) ; if ( a . done ) throw lc ; return a . value } ; S . prototype . next = function ( ) { return S . prototype . a . call ( this ) } ;
S . prototype [ Symbol . iterator ] = function ( ) { return new T ( this . b ) } ; S . prototype . c = function ( ) { return new T ( this . b ) } ; function T ( a ) { R . call ( this , function ( ) { return a } ) ; this . f = a } oa ( T , R ) ; T . prototype . next = function ( ) { return this . f . next ( ) } ; function oc ( a , b ) { this . o = { } ; this . j = [ ] ; this . B = this . size = 0 ; var c = arguments . length ; if ( 1 < c ) { if ( c % 2 ) throw Error ( "Uneven number of arguments" ) ; for ( var d = 0 ; d < c ; d += 2 ) this . set ( arguments [ d ] , arguments [ d + 1 ] ) } else a && this . addAll ( a ) } n = oc . prototype ; n . G = function ( ) { pc ( this ) ; return this . j . concat ( ) } ; n . has = function ( a ) { return U ( this . o , a ) } ; n . clear = function ( ) { this . o = { } ; this . B = this . size = this . j . length = 0 } ; n . remove = function ( a ) { return this . delete ( a ) } ;
n . delete = function ( a ) { return U ( this . o , a ) ? ( delete this . o [ a ] , -- this . size , this . B ++ , this . j . length > 2 * this . size && pc ( this ) , ! 0 ) : ! 1 } ; function pc ( a ) { if ( a . size != a . j . length ) { for ( var b = 0 , c = 0 ; b < a . j . length ; ) { var d = a . j [ b ] ; U ( a . o , d ) && ( a . j [ c ++ ] = d ) ; b ++ } a . j . length = c } if ( a . size != a . j . length ) { var f = { } ; for ( c = b = 0 ; b < a . j . length ; ) d = a . j [ b ] , U ( f , d ) || ( a . j [ c ++ ] = d , f [ d ] = 1 ) , b ++ ; a . j . length = c } } n . get = function ( a , b ) { return U ( this . o , a ) ? this . o [ a ] : b } ; n . set = function ( a , b ) { U ( this . o , a ) || ( this . size += 1 , this . j . push ( a ) , this . B ++ ) ; this . o [ a ] = b } ;
n . addAll = function ( a ) { if ( a instanceof oc ) for ( var b = a . G ( ) , c = 0 ; c < b . length ; c ++ ) this . set ( b [ c ] , a . get ( b [ c ] ) ) ; else for ( b in a ) this . set ( b , a [ b ] ) } ; n . forEach = function ( a , b ) { for ( var c = this . G ( ) , d = 0 ; d < c . length ; d ++ ) { var f = c [ d ] , g = this . get ( f ) ; a . call ( b , g , f , this ) } } ; n . clone = function ( ) { return new oc ( this ) } ; n . keys = function ( ) { return mc ( this . u ( ! 0 ) ) . c ( ) } ; n . values = function ( ) { return mc ( this . u ( ! 1 ) ) . c ( ) } ; n . entries = function ( ) { var a = this ; return kc ( this . keys ( ) , function ( b ) { return [ b , a . get ( b ) ] } ) } ;
n . u = function ( a ) { pc ( this ) ; var b = 0 , c = this . B , d = this , f = new Q ; f . a = function ( ) { if ( c != d . B ) throw Error ( "The map has changed since the iterator was created" ) ; if ( b >= d . j . length ) throw lc ; var g = d . j [ b ++ ] ; return a ? g : d . o [ g ] } ; f . next = f . a . bind ( f ) ; return f } ; function U ( a , b ) { return Object . prototype . hasOwnProperty . call ( a , b ) } ; var qc = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/ ; function rc ( a ) { N . call ( this ) ; this . headers = new oc ; this . C = a || null ; this . c = ! 1 ; this . J = this . a = null ; this . P = this . v = "" ; this . g = 0 ; this . l = "" ; this . i = this . N = this . s = this . L = ! 1 ; this . h = 0 ; this . w = null ; this . m = sc ; this . I = this . M = ! 1 } B ( rc , N ) ; var sc = "" ; rc . prototype . b = ac ( bc ( ) , "goog.net.XhrIo" , void 0 ) . g ; var tc = /^https?$/i , uc = [ "POST" , "PUT" ] ;
function vc ( a , b , c ) { if ( a . a ) throw Error ( "[goog.net.XhrIo] Object is active with another request=" + a . v + "; newUri=" + b ) ; a . v = b ; a . l = "" ; a . g = 0 ; a . P = "POST" ; a . L = ! 1 ; a . c = ! 0 ; a . a = a . C ? ic ( a . C ) : ic ( gc ) ; a . J = a . C ? ec ( a . C ) : ec ( gc ) ; a . a . onreadystatechange = z ( a . R , a ) ; try { P ( a . b , V ( a , "Opening Xhr" ) ) , a . N = ! 0 , a . a . open ( "POST" , String ( b ) , ! 0 ) , a . N = ! 1 } catch ( g ) { P ( a . b , V ( a , "Error opening Xhr: " + g . message ) ) ; wc ( a , g ) ; return } b = c || "" ; c = a . headers . clone ( ) ; var d = c . G ( ) . find ( function ( g ) { return "content-type" == g . toLowerCase ( ) } ) , f = x . FormData && b instanceof
x . FormData ; ! ( 0 <= Oa ( uc , "POST" ) ) || d || f || c . set ( "Content-Type" , "application/x-www-form-urlencoded;charset=utf-8" ) ; c . forEach ( function ( g , e ) { this . a . setRequestHeader ( e , g ) } , a ) ; a . m && ( a . a . responseType = a . m ) ; "withCredentials" in a . a && a . a . withCredentials !== a . M && ( a . a . withCredentials = a . M ) ; try { xc ( a ) , 0 < a . h && ( a . I = yc ( a . a ) , P ( a . b , V ( a , "Will abort after " + a . h + "ms if incomplete, xhr2 " + a . I ) ) , a . I ? ( a . a . timeout = a . h , a . a . ontimeout = z ( a . T , a ) ) : a . w = Mb ( a . T , a . h , a ) ) , P ( a . b , V ( a , "Sending request" ) ) , a . s = ! 0 , a . a . send ( b ) , a . s = ! 1 } catch ( g ) { P ( a . b ,
V ( a , "Send error: " + g . message ) ) , wc ( a , g ) } } function yc ( a ) { return bb && kb ( ) && "number" === typeof a . timeout && void 0 !== a . ontimeout } n = rc . prototype ; n . T = function ( ) { "undefined" != typeof qa && this . a && ( this . l = "Timed out after " + this . h + "ms, aborting" , this . g = 8 , P ( this . b , V ( this , this . l ) ) , O ( this , "timeout" ) , this . abort ( 8 ) ) } ; function wc ( a , b ) { a . c = ! 1 ; a . a && ( a . i = ! 0 , a . a . abort ( ) , a . i = ! 1 ) ; a . l = b ; a . g = 5 ; zc ( a ) ; Ac ( a ) } function zc ( a ) { a . L || ( a . L = ! 0 , O ( a , "complete" ) , O ( a , "error" ) ) }
n . abort = function ( a ) { this . a && this . c && ( P ( this . b , V ( this , "Aborting" ) ) , this . c = ! 1 , this . i = ! 0 , this . a . abort ( ) , this . i = ! 1 , this . g = a || 7 , O ( this , "complete" ) , O ( this , "abort" ) , Ac ( this ) ) } ; n . R = function ( ) { this . K || ( this . N || this . s || this . i ? Bc ( this ) : this . W ( ) ) } ; n . W = function ( ) { Bc ( this ) } ;
function Bc ( a ) { if ( a . c && "undefined" != typeof qa ) if ( a . J [ 1 ] && 4 == W ( a ) && 2 == a . getStatus ( ) ) P ( a . b , V ( a , "Local request error detected and ignored" ) ) ; else if ( a . s && 4 == W ( a ) ) Mb ( a . R , 0 , a ) ; else if ( O ( a , "readystatechange" ) , 4 == W ( a ) ) { P ( a . b , V ( a , "Request complete" ) ) ; a . c = ! 1 ; try { var b = a . getStatus ( ) ; a : switch ( b ) { case 200 : case 201 : case 202 : case 204 : case 206 : case 304 : case 1223 : var c = ! 0 ; break a ; default : c = ! 1 } var d ; if ( ! ( d = c ) ) { var f ; if ( f = 0 === b ) { var g = String ( a . v ) . match ( qc ) [ 1 ] || null ; if ( ! g && x . self && x . self . location ) { var e = x . self . location . protocol ;
g = e . substr ( 0 , e . length - 1 ) } f = ! tc . test ( g ? g . toLowerCase ( ) : "" ) } d = f } if ( d ) O ( a , "complete" ) , O ( a , "success" ) ; else { a . g = 6 ; try { var h = 2 < W ( a ) ? a . a . statusText : "" } catch ( k ) { P ( a . b , "Can not get status: " + k . message ) , h = "" } a . l = h + " [" + a . getStatus ( ) + "]" ; zc ( a ) } } finally { Ac ( a ) } } } function Ac ( a ) { if ( a . a ) { xc ( a ) ; var b = a . a , c = a . J [ 0 ] ? ra : null ; a . a = null ; a . J = null ; O ( a , "ready" ) ; try { b . onreadystatechange = c } catch ( d ) { ( a = a . b ) && cc ( a , Pb , "Problem encountered resetting onreadystatechange: " + d . message ) } } }
function xc ( a ) { a . a && a . I && ( a . a . ontimeout = null ) ; a . w && ( Lb . clearTimeout ( a . w ) , a . w = null ) } function W ( a ) { return a . a ? a . a . readyState : 0 } n . getStatus = function ( ) { try { return 2 < W ( this ) ? this . a . status : - 1 } catch ( a ) { return - 1 } } ;
function Cc ( a ) { try { if ( ! a . a ) return null ; if ( "response" in a . a ) return a . a . response ; switch ( a . m ) { case sc : case "text" : return a . a . responseText ; case "arraybuffer" : if ( "mozResponseArrayBuffer" in a . a ) return a . a . mozResponseArrayBuffer } var b = a . b ; b && cc ( b , Pb , "Response type " + a . m + " is not supported on this browser" ) ; return null } catch ( c ) { return P ( a . b , "Can not get response: " + c . message ) , null } }
function Dc ( a ) { var b = { } ; a = ( a . a && 4 == W ( a ) ? a . a . getAllResponseHeaders ( ) || "" : "" ) . split ( "\r\n" ) ; for ( var c = 0 ; c < a . length ; c ++ ) if ( ! /^[\s\xa0]*$/ . test ( a [ c ] ) ) { var d = Xa ( a [ c ] ) , f = d [ 0 ] ; d = d [ 1 ] ; if ( "string" === typeof d ) { d = d . trim ( ) ; var g = b [ f ] || [ ] ; b [ f ] = g ; g . push ( d ) } } return Ua ( b , function ( e ) { return e . join ( ", " ) } ) } function V ( a , b ) { return b + " [" + a . P + " " + a . v + " " + a . getStatus ( ) + "]" } ; var Ec = { } , Fc = null ; function Gc ( a ) { var b = a . length , c = 3 * b / 4 ; c % 3 ? c = Math . floor ( c ) : H ( "=." , a [ b - 1 ] ) && ( c = H ( "=." , a [ b - 2 ] ) ? c - 2 : c - 1 ) ; var d = new Uint8Array ( c ) , f = 0 ; Hc ( a , function ( g ) { d [ f ++ ] = g } ) ; return d . subarray ( 0 , f ) }
function Hc ( a , b ) { function c ( k ) { for ( ; d < a . length ; ) { var l = a . charAt ( d ++ ) , m = Fc [ l ] ; if ( null != m ) return m ; if ( ! /^[\s\xa0]*$/ . test ( l ) ) throw Error ( "Unknown base64 encoding at char: " + l ) ; } return k } Ic ( ) ; for ( var d = 0 ; ; ) { var f = c ( - 1 ) , g = c ( 0 ) , e = c ( 64 ) , h = c ( 64 ) ; if ( 64 === h && - 1 === f ) break ; b ( f << 2 | g >> 4 ) ; 64 != e && ( b ( g << 4 & 240 | e >> 2 ) , 64 != h && b ( e << 6 & 192 | h ) ) } }
function Ic ( ) { if ( ! Fc ) { Fc = { } ; for ( var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" . split ( "" ) , b = [ "+/=" , "+/" , "-_=" , "-_." , "-_" ] , c = 0 ; 5 > c ; c ++ ) { var d = a . concat ( b [ c ] . split ( "" ) ) ; Ec [ c ] = d ; for ( var f = 0 ; f < d . length ; f ++ ) { var g = d [ f ] ; void 0 === Fc [ g ] && ( Fc [ g ] = f ) } } } } ; var Jc = [ "content-type" , "grpc-status" , "grpc-message" ] ;
function X ( a ) { this . a = a . Z ; this . m = null ; this . b = [ ] ; this . h = [ ] ; this . g = [ ] ; this . f = [ ] ; this . c = [ ] ; this . l = ! 1 ; this . i = 0 ; this . s = new Ga ; var b = this ; zb ( this . a , "readystatechange" , function ( ) { var c = b . a ; if ( c = c . a ? c . a . getResponseHeader ( "Content-Type" ) : null ) { c = c . toLowerCase ( ) ; if ( 0 == c . lastIndexOf ( "application/grpc-web-text" , 0 ) ) { c = b . a ; try { var d = c . a ? c . a . responseText : "" } catch ( k ) { P ( c . b , "Can not get responseText: " + k . message ) , d = "" } c = d || "" ; d = c . length - c . length % 4 ; c = c . substr ( b . i , d - b . i ) ; if ( 0 == c . length ) return ; b . i = d ; c = Gc ( c ) } else if ( 0 ==
c . lastIndexOf ( "application/grpc" , 0 ) ) c = new Uint8Array ( Cc ( b . a ) ) ; else { Y ( b , new E ( 2 , "Unknown Content-type received." ) ) ; return } d = null ; try { d = Ia ( b . s , c ) } catch ( k ) { Y ( b , new E ( 2 , "Error in parsing response body" ) ) } if ( d ) for ( c = 0 ; c < d . length ; c ++ ) { if ( Ja in d [ c ] ) { var f = d [ c ] [ Ja ] ; if ( f ) { var g = ! 1 , e = void 0 ; try { e = b . m ( f ) , g = ! 0 } catch ( k ) { Y ( b , new E ( 13 , "Error when deserializing response data; error: " + k + ( ", response: " + e ) ) ) } if ( g ) for ( f = e , g = 0 ; g < b . b . length ; g ++ ) b . b [ g ] ( f ) } } if ( G in d [ c ] && 0 < d [ c ] [ G ] . length ) { f = "" ; for ( g = 0 ; g < d [ c ] [ G ] . length ; g ++ ) f +=
String . fromCharCode ( d [ c ] [ G ] [ g ] ) ; f = f . trim ( ) . split ( "\r\n" ) ; g = { } ; for ( e = 0 ; e < f . length ; e ++ ) { var h = f [ e ] . indexOf ( ":" ) ; g [ f [ e ] . substring ( 0 , h ) . trim ( ) ] = f [ e ] . substring ( h + 1 ) . trim ( ) } f = g ; g = 0 ; e = "" ; "grpc-status" in f && ( g = Number ( f [ "grpc-status" ] ) , delete f [ "grpc-status" ] ) ; "grpc-message" in f && ( e = f [ "grpc-message" ] , delete f [ "grpc-message" ] ) ; Y ( b , new E ( g , e , f ) ) } } } } ) ; zb ( this . a , "complete" , function ( ) { var c = b . a . g , d = 2 , f = "" , g = { } ; d = Dc ( b . a ) ; var e = { } ; for ( h in d ) d . hasOwnProperty ( h ) && ( e [ h . toLowerCase ( ) ] = d [ h ] ) ; Object . keys ( e ) . forEach ( function ( k ) { Jc . includes ( k ) ||
( g [ k ] = e [ k ] ) } ) ; Kc ( b , g ) ; var h = - 1 ; if ( 0 != c ) { switch ( c ) { case 7 : d = 10 ; break ; case 8 : d = 4 ; break ; case 6 : h = b . a . getStatus ( ) ; d = Aa ( h ) ; break ; default : d = 14 } 10 == d && b . l || ( f = Da ( c ) , - 1 != h && ( f += ", http status code: " + h ) , Y ( b , new E ( d , f ) ) ) } else c = ! 1 , "grpc-status" in e && ( d = Number ( e [ "grpc-status" ] ) , "grpc-message" in e && ( f = e [ "grpc-message" ] ) , 0 != d && ( Y ( b , new E ( d , f || "" , e ) ) , c = ! 0 ) ) , c || Lc ( b ) } ) }
X . prototype . on = function ( a , b ) { "data" == a ? this . b . push ( b ) : "status" == a ? this . h . push ( b ) : "metadata" == a ? this . g . push ( b ) : "end" == a ? this . c . push ( b ) : "error" == a && this . f . push ( b ) ; return this } ; function Mc ( a , b ) { b = a . indexOf ( b ) ; - 1 < b && a . splice ( b , 1 ) } X . prototype . removeListener = function ( a , b ) { "data" == a ? Mc ( this . b , b ) : "status" == a ? Mc ( this . h , b ) : "metadata" == a ? Mc ( this . g , b ) : "end" == a ? Mc ( this . c , b ) : "error" == a && Mc ( this . f , b ) ; return this } ; X . prototype . cancel = function ( ) { this . l = ! 0 ; this . a . abort ( ) } ;
function Y ( a , b ) { if ( 0 != b . code ) for ( var c = new E ( b . code , decodeURIComponent ( b . message || "" ) , b . metadata ) , d = 0 ; d < a . f . length ; d ++ ) a . f [ d ] ( c ) ; b = { code : b . code , details : decodeURIComponent ( b . message || "" ) , metadata : b . metadata } ; for ( c = 0 ; c < a . h . length ; c ++ ) a . h [ c ] ( b ) } function Kc ( a , b ) { for ( var c = 0 ; c < a . g . length ; c ++ ) a . g [ c ] ( b ) } function Lc ( a ) { for ( var b = 0 ; b < a . c . length ; b ++ ) a . c [ b ] ( ) } X . prototype . cancel = X . prototype . cancel ; X . prototype . removeListener = X . prototype . removeListener ; X . prototype . on = X . prototype . on ; function Nc ( a ) { var b = "" ; Ta ( a , function ( c , d ) { b += d ; b += ":" ; b += c ; b += "\r\n" } ) ; return b } ; function Z ( a , b ) { a = void 0 === a ? { } : a ; this . a = a . format || y ( "format" , a ) || "text" ; this . g = a . aa || y ( "suppressCorsPreflight" , a ) || ! 1 ; this . f = a . withCredentials || y ( "withCredentials" , a ) || ! 1 ; this . b = a . $ || y ( "streamInterceptors" , a ) || [ ] ; this . h = a . ba || y ( "unaryInterceptors" , a ) || [ ] ; this . c = b || null } Z . prototype . X = function ( a , b , c , d , f ) { var g = this , e = a . substr ( 0 , a . length - d . name . length ) ; a = Oc ( function ( h ) { return Pc ( g , h , e ) } , this . b ) . call ( this , za ( d , b , c ) ) ; Qc ( a , f , ! 1 ) ; return new Ca ( a ) } ;
Z . prototype . S = function ( a , b , c , d ) { var f = this , g = a . substr ( 0 , a . length - d . name . length ) ; return Oc ( function ( e ) { return new Promise ( function ( h , k ) { var l = Pc ( f , e , g ) , m , p , q ; Qc ( l , function ( w , A , L , Sb , Rc ) { w ? k ( w ) : Rc ? q = A : L ? p = L : Sb ? m = Sb : ( w = e . getMethodDescriptor ( ) , A = m , A = void 0 === A ? { } : A , h ( new D ( q , w , A , void 0 === p ? null : p ) ) ) } , ! 0 ) } ) } , this . h ) . call ( this , za ( d , b , c ) ) . then ( function ( e ) { return e . getResponseMessage ( ) } ) } ; Z . prototype . unaryCall = function ( a , b , c , d ) { return this . S ( a , b , c , d ) } ;
Z . prototype . Y = function ( a , b , c , d ) { var f = this , g = a . substr ( 0 , a . length - d . name . length ) ; return Oc ( function ( e ) { return Pc ( f , e , g ) } , this . b ) . call ( this , za ( d , b , c ) ) } ;
function Pc ( a , b , c ) { var d = b . getMethodDescriptor ( ) , f = c + d . getName ( ) ; c = a . c ? a . c : new rc ; c . M = a . f ; var g = new X ( { Z : c } ) ; g . m = d . b ; var e = b . getMetadata ( ) ; for ( h in e ) c . headers . set ( h , e [ h ] ) ; "text" == a . a ? ( c . headers . set ( "Content-Type" , "application/grpc-web-text" ) , c . headers . set ( "Accept" , "application/grpc-web-text" ) ) : c . headers . set ( "Content-Type" , "application/grpc-web+proto" ) ; c . headers . set ( "X-User-Agent" , "grpc-web-javascript/0.1" ) ; c . headers . set ( "X-Grpc-Web" , "1" ) ; if ( c . headers . has ( "deadline" ) ) { var h = Number ( c . headers . get ( "deadline" ) ) ;
h = Math . ceil ( h - ( new Date ) . getTime ( ) ) ; c . headers . delete ( "deadline" ) ; Infinity === h && ( h = 0 ) ; 0 < h && ( c . headers . set ( "grpc-timeout" , h + "m" ) , c . h = Math . max ( 0 , Math . max ( 1E3 , Math . ceil ( 1.1 * h ) ) ) ) } if ( a . g ) { e = c . headers ; h = { } ; for ( var k = ha ( e . keys ( ) ) , l = k . next ( ) ; ! l . done ; l = k . next ( ) ) l = l . value , h [ l ] = e . get ( l ) ; c . headers . clear ( ) ; b : { for ( m in h ) { var m = ! 1 ; break b } m = ! 0 } if ( ! m ) if ( h = Nc ( h ) , "string" === typeof f ) { if ( m = encodeURIComponent ( "$httpHeaders" ) , h = null != h ? "=" + encodeURIComponent ( String ( h ) ) : "" , m += h ) h = f . indexOf ( "#" ) , 0 > h && ( h = f . length ) , e = f . indexOf ( "?" ) ,
0 > e || e > h ? ( e = h , k = "" ) : k = f . substring ( e + 1 , h ) , f = [ f . substr ( 0 , e ) , k , f . substr ( h ) ] , h = f [ 1 ] , f [ 1 ] = m ? h ? h + "&" + m : m : h , f = f [ 0 ] + ( f [ 1 ] ? "?" + f [ 1 ] : "" ) + f [ 2 ] } else f . a ( "$httpHeaders" , h ) } b = ( 0 , d . a ) ( b . getRequestMessage ( ) ) ; d = b . length ; m = [ 0 , 0 , 0 , 0 ] ; h = new Uint8Array ( 5 + d ) ; for ( e = 3 ; 0 <= e ; e -- ) m [ e ] = d % 256 , d >>>= 8 ; h . set ( new Uint8Array ( m ) , 1 ) ; h . set ( b , 5 ) ; b = h ; if ( "text" == a . a ) { a = b ; var p ; void 0 === p && ( p = 0 ) ; Ic ( ) ; p = Ec [ p ] ; b = Array ( Math . floor ( a . length / 3 ) ) ; d = p [ 64 ] || "" ; for ( m = h = 0 ; h < a . length - 2 ; h += 3 ) { l = a [ h ] ; var q = a [ h + 1 ] ; k = a [ h + 2 ] ; e = p [ l >> 2 ] ; l = p [ ( l & 3 ) << 4 | q >> 4 ] ;
q = p [ ( q & 15 ) << 2 | k >> 6 ] ; k = p [ k & 63 ] ; b [ m ++ ] = e + l + q + k } e = 0 ; k = d ; switch ( a . length - h ) { case 2 : e = a [ h + 1 ] , k = p [ ( e & 15 ) << 2 ] || d ; case 1 : a = a [ h ] , b [ m ] = p [ a >> 2 ] + p [ ( a & 3 ) << 4 | e >> 4 ] + k + d } b = b . join ( "" ) } else "binary" == a . a && ( c . m = "arraybuffer" ) ; vc ( c , f , b ) ; return g }
function Qc ( a , b , c ) { var d = ! 1 , f = null , g = ! 1 ; a . on ( "data" , function ( e ) { d = ! 0 ; f = e } ) ; a . on ( "error" , function ( e ) { 0 == e . code || g || ( g = ! 0 , b ( e , null ) ) } ) ; a . on ( "status" , function ( e ) { 0 == e . code || g ? c && b ( null , null , e ) : ( g = ! 0 , b ( { code : e . code , message : e . details , metadata : e . metadata } , null ) ) } ) ; if ( c ) a . on ( "metadata" , function ( e ) { b ( null , null , null , e ) } ) ; a . on ( "end" , function ( ) { g || ( d ? c ? b ( null , f , null , null , ! 0 ) : b ( null , f ) : b ( { code : 2 , message : "Incomplete response" } ) ) ; c && b ( null , null ) } ) }
function Oc ( a , b ) { var c = a ; b . forEach ( function ( d ) { var f = c ; c = function ( g ) { return d . intercept ( g , f ) } } ) ; return c } Z . prototype . serverStreaming = Z . prototype . Y ; Z . prototype . unaryCall = Z . prototype . unaryCall ; Z . prototype . thenableCall = Z . prototype . S ; Z . prototype . rpcCall = Z . prototype . X ; module . exports . CallOptions = xa ; module . exports . MethodDescriptor = ya ; module . exports . GrpcWebClientBase = Z ; module . exports . RpcError = E ; module . exports . StatusCode = { OK : 0 , CANCELLED : 1 , UNKNOWN : 2 , INVALID _ARGUMENT : 3 , DEADLINE _EXCEEDED : 4 , NOT _FOUND : 5 , ALREADY _EXISTS : 6 , PERMISSION _DENIED : 7 , UNAUTHENTICATED : 16 , RESOURCE _EXHAUSTED : 8 , FAILED _PRECONDITION : 9 , ABORTED : 10 , OUT _OF _RANGE : 11 , UNIMPLEMENTED : 12 , INTERNAL : 13 , UNAVAILABLE : 14 , DATA _LOSS : 15 } ; module . exports . MethodType = { UNARY : "unary" , SERVER _STREAMING : "server_streaming" , BIDI _STREAMING : "bidi_streaming" } ;
Lb = "undefined" !== typeof globalThis && globalThis || self ;
} ) . call ( this ) } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
2024-09-28 20:31:38 +02:00
} , { } ] } , { } , [ 4 ] ) ;