@lansweeper/install-api-grpc 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"file":[{"name":"google/protobuf/timestamp.proto","package":"google.protobuf","messageType":[{"name":"Timestamp","field":[{"name":"seconds","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"seconds"},{"name":"nanos","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"nanos"}]}],"options":{"javaPackage":"com.google.protobuf","javaOuterClassname":"TimestampProto","javaMultipleFiles":true,"goPackage":"google.golang.org/protobuf/types/known/timestamppb","ccEnableArenas":true,"objcClassPrefix":"GPB","csharpNamespace":"Google.Protobuf.WellKnownTypes"},"sourceCodeInfo":{"location":[{"span":[30,0,146,1]},{"path":[12],"span":[30,0,18],"leadingDetachedComments":[" Protocol Buffers - Google's data interchange format\n Copyright 2008 Google Inc. All rights reserved.\n https://developers.google.com/protocol-buffers/\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following disclaimer\n in the documentation and/or other materials provided with the\n distribution.\n * Neither the name of Google Inc. nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"]},{"path":[2],"span":[32,0,24]},{"path":[8],"span":[34,0,59]},{"path":[8,37],"span":[34,0,59]},{"path":[8],"span":[35,0,31]},{"path":[8,31],"span":[35,0,31]},{"path":[8],"span":[36,0,73]},{"path":[8,11],"span":[36,0,73]},{"path":[8],"span":[37,0,44]},{"path":[8,1],"span":[37,0,44]},{"path":[8],"span":[38,0,47]},{"path":[8,8],"span":[38,0,47]},{"path":[8],"span":[39,0,34]},{"path":[8,10],"span":[39,0,34]},{"path":[8],"span":[40,0,33]},{"path":[8,36],"span":[40,0,33]},{"path":[4,0],"span":[135,0,146,1],"leadingComments":" A Timestamp represents a point in time independent of any time zone or local\n calendar, encoded as a count of seconds and fractions of seconds at\n nanosecond resolution. The count is relative to an epoch at UTC midnight on\n January 1, 1970, in the proleptic Gregorian calendar which extends the\n Gregorian calendar backwards to year one.\n\n All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap\n second table is needed for interpretation, using a [24-hour linear\n smear](https://developers.google.com/time/smear).\n\n The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By\n restricting to that range, we ensure that we can convert to and from [RFC\n 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.\n\n # Examples\n\n Example 1: Compute Timestamp from POSIX `time()`.\n\n Timestamp timestamp;\n timestamp.set_seconds(time(NULL));\n timestamp.set_nanos(0);\n\n Example 2: Compute Timestamp from POSIX `gettimeofday()`.\n\n struct timeval tv;\n gettimeofday(&tv, NULL);\n\n Timestamp timestamp;\n timestamp.set_seconds(tv.tv_sec);\n timestamp.set_nanos(tv.tv_usec * 1000);\n\n Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.\n\n FILETIME ft;\n GetSystemTimeAsFileTime(&ft);\n UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;\n\n // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z\n // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.\n Timestamp timestamp;\n timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));\n timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));\n\n Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.\n\n long millis = System.currentTimeMillis();\n\n Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)\n .setNanos((int) ((millis % 1000) * 1000000)).build();\n\n\n Example 5: Compute Timestamp from Java `Instant.now()`.\n\n Instant now = Instant.now();\n\n Timestamp timestamp =\n Timestamp.newBuilder().setSeconds(now.getEpochSecond())\n .setNanos(now.getNano()).build();\n\n\n Example 6: Compute Timestamp from current time in Python.\n\n timestamp = Timestamp()\n timestamp.GetCurrentTime()\n\n # JSON Mapping\n\n In JSON format, the Timestamp type is encoded as a string in the\n [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the\n format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\"\n where {year} is always expressed using four digits while {month}, {day},\n {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional\n seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),\n are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone\n is required. A proto3 JSON serializer should always use UTC (as indicated by\n \"Z\") when printing the Timestamp type and a proto3 JSON parser should be\n able to accept both UTC and other timezones (as indicated by an offset).\n\n For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past\n 01:30 UTC on January 15, 2017.\n\n In JavaScript, one can convert a Date object to this format using the\n standard\n [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)\n method. In Python, a standard `datetime.datetime` object can be converted\n to this format using\n [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with\n the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use\n the Joda Time's [`ISODateTimeFormat.dateTime()`](\n http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D\n ) to obtain a formatter capable of generating timestamps in this format.\n\n\n"},{"path":[4,0,1],"span":[135,8,17]},{"path":[4,0,2,0],"span":[139,2,20],"leadingComments":" Represents seconds of UTC time since Unix epoch\n 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\n 9999-12-31T23:59:59Z inclusive.\n"},{"path":[4,0,2,0,5],"span":[139,2,7]},{"path":[4,0,2,0,1],"span":[139,8,15]},{"path":[4,0,2,0,3],"span":[139,18,19]},{"path":[4,0,2,1],"span":[145,2,18],"leadingComments":" Non-negative fractions of a second at nanosecond resolution. Negative\n second values with fractions must still have non-negative nanos values\n that count forward in time. Must be from 0 to 999,999,999\n inclusive.\n"},{"path":[4,0,2,1,5],"span":[145,2,7]},{"path":[4,0,2,1,1],"span":[145,8,13]},{"path":[4,0,2,1,3],"span":[145,16,17]}]},"syntax":"proto3","bufExtension":{"isImport":true,"isSyntaxUnspecified":false}},{"name":"proto/install.proto","package":"lansweeper.install.v1","dependency":["google/protobuf/timestamp.proto"],"messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"Installation","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"type","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"state","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallStateValue","jsonName":"state"},{"name":"last_connection","number":6,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","jsonName":"lastConnection"}]},{"name":"GetInstallationsBySiteRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"filter","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.GetInstallationsBySiteRequest.Filter","oneofIndex":0,"jsonName":"filter","proto3Optional":true}],"nestedType":[{"name":"Filter","field":[{"name":"type","number":1,"label":"LABEL_REPEATED","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"last_connection","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","oneofIndex":0,"jsonName":"lastConnection","proto3Optional":true}],"oneofDecl":[{"name":"_last_connection"}]}],"oneofDecl":[{"name":"_filter"}]},{"name":"GetInstallationsBySiteResponse","field":[{"name":"installations","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.Installation","jsonName":"installations"}]}],"enumType":[{"name":"InstallType","value":[{"name":"IT","number":0},{"name":"OT","number":1},{"name":"IT_AGENT","number":2},{"name":"CLOUD","number":3},{"name":"NETWORK_DISCOVERY","number":4}]},{"name":"InstallStateValue","value":[{"name":"UNESPECIFIED","number":0},{"name":"LINKED","number":1},{"name":"UNLINKED","number":2}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}},{"name":"GetInstallationsBySite","inputType":".lansweeper.install.v1.GetInstallationsBySiteRequest","outputType":".lansweeper.install.v1.GetInstallationsBySiteResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,90,1]},{"path":[12],"span":[0,0,18]},{"path":[3,0],"span":[2,0,41]},{"path":[2],"span":[4,0,30]},{"path":[8],"span":[6,0,37]},{"path":[8,11],"span":[6,0,37]},{"path":[4,0],"span":[8,0,13,1]},{"path":[4,0,1],"span":[8,8,27]},{"path":[4,0,2,0],"span":[9,2,21]},{"path":[4,0,2,0,5],"span":[9,2,8]},{"path":[4,0,2,0,1],"span":[9,9,16]},{"path":[4,0,2,0,3],"span":[9,19,20]},{"path":[4,0,2,1],"span":[10,2,25]},{"path":[4,0,2,1,5],"span":[10,2,8]},{"path":[4,0,2,1,1],"span":[10,9,20]},{"path":[4,0,2,1,3],"span":[10,23,24]},{"path":[4,0,2,2],"span":[11,2,24]},{"path":[4,0,2,2,5],"span":[11,2,8]},{"path":[4,0,2,2,1],"span":[11,9,19]},{"path":[4,0,2,2,3],"span":[11,22,23]},{"path":[4,0,2,3],"span":[12,2,29]},{"path":[4,0,2,3,5],"span":[12,2,8]},{"path":[4,0,2,3,1],"span":[12,9,24]},{"path":[4,0,2,3,3],"span":[12,27,28]},{"path":[4,1],"span":[15,0,16,1]},{"path":[4,1,1],"span":[15,8,28]},{"path":[4,2],"span":[18,0,22,1]},{"path":[4,2,1],"span":[18,8,32]},{"path":[4,2,2,0],"span":[19,2,21]},{"path":[4,2,2,0,5],"span":[19,2,8]},{"path":[4,2,2,0,1],"span":[19,9,16]},{"path":[4,2,2,0,3],"span":[19,19,20]},{"path":[4,2,2,1],"span":[20,2,25]},{"path":[4,2,2,1,5],"span":[20,2,8]},{"path":[4,2,2,1,1],"span":[20,9,20]},{"path":[4,2,2,1,3],"span":[20,23,24]},{"path":[4,2,2,2],"span":[21,2,29]},{"path":[4,2,2,2,5],"span":[21,2,8]},{"path":[4,2,2,2,1],"span":[21,9,24]},{"path":[4,2,2,2,3],"span":[21,27,28]},{"path":[4,3],"span":[24,0,25,1]},{"path":[4,3,1],"span":[24,8,33]},{"path":[4,4],"span":[27,0,30,1]},{"path":[4,4,1],"span":[27,8,35]},{"path":[4,4,2,0],"span":[28,2,21]},{"path":[4,4,2,0,5],"span":[28,2,8]},{"path":[4,4,2,0,1],"span":[28,9,16]},{"path":[4,4,2,0,3],"span":[28,19,20]},{"path":[4,4,2,1],"span":[29,2,25]},{"path":[4,4,2,1,5],"span":[29,2,8]},{"path":[4,4,2,1,1],"span":[29,9,20]},{"path":[4,4,2,1,3],"span":[29,23,24]},{"path":[4,5],"span":[32,0,33,1]},{"path":[4,5,1],"span":[32,8,36]},{"path":[4,6],"span":[35,0,38,1]},{"path":[4,6,1],"span":[35,8,33]},{"path":[4,6,2,0],"span":[36,2,21]},{"path":[4,6,2,0,5],"span":[36,2,8]},{"path":[4,6,2,0,1],"span":[36,9,16]},{"path":[4,6,2,0,3],"span":[36,19,20]},{"path":[4,6,2,1],"span":[37,2,35]},{"path":[4,6,2,1,4],"span":[37,2,10]},{"path":[4,6,2,1,5],"span":[37,11,17]},{"path":[4,6,2,1,1],"span":[37,18,30]},{"path":[4,6,2,1,3],"span":[37,33,34]},{"path":[4,7],"span":[40,0,42,1]},{"path":[4,7,1],"span":[40,8,34]},{"path":[4,7,2,0],"span":[41,2,59]},{"path":[4,7,2,0,4],"span":[41,2,10]},{"path":[4,7,2,0,6],"span":[41,11,37]},{"path":[4,7,2,0,1],"span":[41,38,54]},{"path":[4,7,2,0,3],"span":[41,57,58]},{"path":[4,8],"span":[44,0,47,1]},{"path":[4,8,1],"span":[44,8,34]},{"path":[4,8,2,0],"span":[45,2,25]},{"path":[4,8,2,0,5],"span":[45,2,8]},{"path":[4,8,2,0,1],"span":[45,9,20]},{"path":[4,8,2,0,3],"span":[45,23,24]},{"path":[4,8,2,1],"span":[46,2,29]},{"path":[4,8,2,1,5],"span":[46,2,8]},{"path":[4,8,2,1,1],"span":[46,9,24]},{"path":[4,8,2,1,3],"span":[46,27,28]},{"path":[5,0],"span":[49,0,55,1]},{"path":[5,0,1],"span":[49,5,16]},{"path":[5,0,2,0],"span":[50,2,7]},{"path":[5,0,2,0,1],"span":[50,2,4]},{"path":[5,0,2,0,2],"span":[50,5,6]},{"path":[5,0,2,1],"span":[51,2,7]},{"path":[5,0,2,1,1],"span":[51,2,4]},{"path":[5,0,2,1,2],"span":[51,5,6]},{"path":[5,0,2,2],"span":[52,2,13]},{"path":[5,0,2,2,1],"span":[52,2,10]},{"path":[5,0,2,2,2],"span":[52,11,12]},{"path":[5,0,2,3],"span":[53,2,10]},{"path":[5,0,2,3,1],"span":[53,2,7]},{"path":[5,0,2,3,2],"span":[53,8,9]},{"path":[5,0,2,4],"span":[54,2,22]},{"path":[5,0,2,4,1],"span":[54,2,19]},{"path":[5,0,2,4,2],"span":[54,20,21]},{"path":[5,1],"span":[57,0,61,1]},{"path":[5,1,1],"span":[57,5,22]},{"path":[5,1,2,0],"span":[58,2,19]},{"path":[5,1,2,0,1],"span":[58,2,14]},{"path":[5,1,2,0,2],"span":[58,17,18]},{"path":[5,1,2,1],"span":[59,2,13]},{"path":[5,1,2,1,1],"span":[59,2,8]},{"path":[5,1,2,1,2],"span":[59,11,12]},{"path":[5,1,2,2],"span":[60,2,15]},{"path":[5,1,2,2,1],"span":[60,2,10]},{"path":[5,1,2,2,2],"span":[60,13,14]},{"path":[4,9],"span":[63,0,69,1]},{"path":[4,9,1],"span":[63,8,20]},{"path":[4,9,2,0],"span":[64,2,16]},{"path":[4,9,2,0,5],"span":[64,2,8]},{"path":[4,9,2,0,1],"span":[64,9,11]},{"path":[4,9,2,0,3],"span":[64,14,15]},{"path":[4,9,2,1],"span":[65,2,21]},{"path":[4,9,2,1,5],"span":[65,2,8]},{"path":[4,9,2,1,1],"span":[65,9,16]},{"path":[4,9,2,1,3],"span":[65,19,20]},{"path":[4,9,2,2],"span":[66,2,23]},{"path":[4,9,2,2,6],"span":[66,2,13]},{"path":[4,9,2,2,1],"span":[66,14,18]},{"path":[4,9,2,2,3],"span":[66,21,22]},{"path":[4,9,2,3],"span":[67,2,30]},{"path":[4,9,2,3,6],"span":[67,2,19]},{"path":[4,9,2,3,1],"span":[67,20,25]},{"path":[4,9,2,3,3],"span":[67,28,29]},{"path":[4,9,2,4],"span":[68,2,48]},{"path":[4,9,2,4,6],"span":[68,2,27]},{"path":[4,9,2,4,1],"span":[68,28,43]},{"path":[4,9,2,4,3],"span":[68,46,47]},{"path":[4,10],"span":[71,0,78,1]},{"path":[4,10,1],"span":[71,8,37]},{"path":[4,10,2,0],"span":[72,2,21]},{"path":[4,10,2,0,5],"span":[72,2,8]},{"path":[4,10,2,0,1],"span":[72,9,16]},{"path":[4,10,2,0,3],"span":[72,19,20]},{"path":[4,10,3,0],"span":[73,2,76,3]},{"path":[4,10,3,0,1],"span":[73,10,16]},{"path":[4,10,3,0,2,0],"span":[74,4,32]},{"path":[4,10,3,0,2,0,4],"span":[74,4,12]},{"path":[4,10,3,0,2,0,6],"span":[74,13,24]},{"path":[4,10,3,0,2,0,1],"span":[74,25,29]},{"path":[4,10,3,0,2,0,3],"span":[74,30,31]},{"path":[4,10,3,0,2,1],"span":[75,4,59]},{"path":[4,10,3,0,2,1,4],"span":[75,4,12]},{"path":[4,10,3,0,2,1,6],"span":[75,13,38]},{"path":[4,10,3,0,2,1,1],"span":[75,39,54]},{"path":[4,10,3,0,2,1,3],"span":[75,57,58]},{"path":[4,10,2,1],"span":[77,2,29]},{"path":[4,10,2,1,4],"span":[77,2,10]},{"path":[4,10,2,1,6],"span":[77,11,17]},{"path":[4,10,2,1,1],"span":[77,18,24]},{"path":[4,10,2,1,3],"span":[77,27,28]},{"path":[4,11],"span":[80,0,82,1]},{"path":[4,11,1],"span":[80,8,38]},{"path":[4,11,2,0],"span":[81,2,42]},{"path":[4,11,2,0,4],"span":[81,2,10]},{"path":[4,11,2,0,6],"span":[81,11,23]},{"path":[4,11,2,0,1],"span":[81,24,37]},{"path":[4,11,2,0,3],"span":[81,40,41]},{"path":[6,0],"span":[84,0,90,1]},{"path":[6,0,1],"span":[84,8,22]},{"path":[6,0,2,0],"span":[85,2,91]},{"path":[6,0,2,0,1],"span":[85,6,24]},{"path":[6,0,2,0,2],"span":[85,25,50]},{"path":[6,0,2,0,3],"span":[85,61,87]},{"path":[6,0,2,1],"span":[86,2,73]},{"path":[6,0,2,1,1],"span":[86,6,18]},{"path":[6,0,2,1,2],"span":[86,19,38]},{"path":[6,0,2,1,3],"span":[86,49,69]},{"path":[6,0,2,2],"span":[87,2,88]},{"path":[6,0,2,2,1],"span":[87,6,23]},{"path":[6,0,2,2,2],"span":[87,24,48]},{"path":[6,0,2,2,3],"span":[87,59,84]},{"path":[6,0,2,3],"span":[88,2,97]},{"path":[6,0,2,3,1],"span":[88,6,26]},{"path":[6,0,2,3,2],"span":[88,27,54]},{"path":[6,0,2,3,3],"span":[88,65,93]},{"path":[6,0,2,4],"span":[89,2,103]},{"path":[6,0,2,4,1],"span":[89,6,28]},{"path":[6,0,2,4,2],"span":[89,29,58]},{"path":[6,0,2,4,3],"span":[89,69,99]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
1
+ {"file":[{"name":"google/protobuf/timestamp.proto","package":"google.protobuf","messageType":[{"name":"Timestamp","field":[{"name":"seconds","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"seconds"},{"name":"nanos","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"nanos"}]}],"options":{"javaPackage":"com.google.protobuf","javaOuterClassname":"TimestampProto","javaMultipleFiles":true,"goPackage":"google.golang.org/protobuf/types/known/timestamppb","ccEnableArenas":true,"objcClassPrefix":"GPB","csharpNamespace":"Google.Protobuf.WellKnownTypes"},"sourceCodeInfo":{"location":[{"span":[30,0,146,1]},{"path":[12],"span":[30,0,18],"leadingDetachedComments":[" Protocol Buffers - Google's data interchange format\n Copyright 2008 Google Inc. All rights reserved.\n https://developers.google.com/protocol-buffers/\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following disclaimer\n in the documentation and/or other materials provided with the\n distribution.\n * Neither the name of Google Inc. nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"]},{"path":[2],"span":[32,0,24]},{"path":[8],"span":[34,0,59]},{"path":[8,37],"span":[34,0,59]},{"path":[8],"span":[35,0,31]},{"path":[8,31],"span":[35,0,31]},{"path":[8],"span":[36,0,73]},{"path":[8,11],"span":[36,0,73]},{"path":[8],"span":[37,0,44]},{"path":[8,1],"span":[37,0,44]},{"path":[8],"span":[38,0,47]},{"path":[8,8],"span":[38,0,47]},{"path":[8],"span":[39,0,34]},{"path":[8,10],"span":[39,0,34]},{"path":[8],"span":[40,0,33]},{"path":[8,36],"span":[40,0,33]},{"path":[4,0],"span":[135,0,146,1],"leadingComments":" A Timestamp represents a point in time independent of any time zone or local\n calendar, encoded as a count of seconds and fractions of seconds at\n nanosecond resolution. The count is relative to an epoch at UTC midnight on\n January 1, 1970, in the proleptic Gregorian calendar which extends the\n Gregorian calendar backwards to year one.\n\n All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap\n second table is needed for interpretation, using a [24-hour linear\n smear](https://developers.google.com/time/smear).\n\n The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By\n restricting to that range, we ensure that we can convert to and from [RFC\n 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.\n\n # Examples\n\n Example 1: Compute Timestamp from POSIX `time()`.\n\n Timestamp timestamp;\n timestamp.set_seconds(time(NULL));\n timestamp.set_nanos(0);\n\n Example 2: Compute Timestamp from POSIX `gettimeofday()`.\n\n struct timeval tv;\n gettimeofday(&tv, NULL);\n\n Timestamp timestamp;\n timestamp.set_seconds(tv.tv_sec);\n timestamp.set_nanos(tv.tv_usec * 1000);\n\n Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.\n\n FILETIME ft;\n GetSystemTimeAsFileTime(&ft);\n UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;\n\n // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z\n // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.\n Timestamp timestamp;\n timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));\n timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));\n\n Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.\n\n long millis = System.currentTimeMillis();\n\n Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)\n .setNanos((int) ((millis % 1000) * 1000000)).build();\n\n\n Example 5: Compute Timestamp from Java `Instant.now()`.\n\n Instant now = Instant.now();\n\n Timestamp timestamp =\n Timestamp.newBuilder().setSeconds(now.getEpochSecond())\n .setNanos(now.getNano()).build();\n\n\n Example 6: Compute Timestamp from current time in Python.\n\n timestamp = Timestamp()\n timestamp.GetCurrentTime()\n\n # JSON Mapping\n\n In JSON format, the Timestamp type is encoded as a string in the\n [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the\n format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\"\n where {year} is always expressed using four digits while {month}, {day},\n {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional\n seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),\n are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone\n is required. A proto3 JSON serializer should always use UTC (as indicated by\n \"Z\") when printing the Timestamp type and a proto3 JSON parser should be\n able to accept both UTC and other timezones (as indicated by an offset).\n\n For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past\n 01:30 UTC on January 15, 2017.\n\n In JavaScript, one can convert a Date object to this format using the\n standard\n [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)\n method. In Python, a standard `datetime.datetime` object can be converted\n to this format using\n [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with\n the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use\n the Joda Time's [`ISODateTimeFormat.dateTime()`](\n http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D\n ) to obtain a formatter capable of generating timestamps in this format.\n\n\n"},{"path":[4,0,1],"span":[135,8,17]},{"path":[4,0,2,0],"span":[139,2,20],"leadingComments":" Represents seconds of UTC time since Unix epoch\n 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\n 9999-12-31T23:59:59Z inclusive.\n"},{"path":[4,0,2,0,5],"span":[139,2,7]},{"path":[4,0,2,0,1],"span":[139,8,15]},{"path":[4,0,2,0,3],"span":[139,18,19]},{"path":[4,0,2,1],"span":[145,2,18],"leadingComments":" Non-negative fractions of a second at nanosecond resolution. Negative\n second values with fractions must still have non-negative nanos values\n that count forward in time. Must be from 0 to 999,999,999\n inclusive.\n"},{"path":[4,0,2,1,5],"span":[145,2,7]},{"path":[4,0,2,1,1],"span":[145,8,13]},{"path":[4,0,2,1,3],"span":[145,16,17]}]},"syntax":"proto3","bufExtension":{"isImport":true,"isSyntaxUnspecified":false}},{"name":"proto/install.proto","package":"lansweeper.install.v1","dependency":["google/protobuf/timestamp.proto"],"messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"Installation","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"type","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"state","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallStateValue","jsonName":"state"},{"name":"last_connection","number":6,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","jsonName":"lastConnection"}]},{"name":"GetInstallationsBySiteRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"filter","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.GetInstallationsBySiteRequest.Filter","oneofIndex":0,"jsonName":"filter","proto3Optional":true}],"nestedType":[{"name":"Filter","field":[{"name":"type","number":1,"label":"LABEL_REPEATED","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"last_connection","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","oneofIndex":0,"jsonName":"lastConnection","proto3Optional":true}],"oneofDecl":[{"name":"_last_connection"}]}],"oneofDecl":[{"name":"_filter"}]},{"name":"GetInstallationsBySiteResponse","field":[{"name":"installations","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.Installation","jsonName":"installations"}]},{"name":"GetInstallationsByTypePaginatedRequest","field":[{"name":"type","number":1,"label":"LABEL_REPEATED","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"last_connection","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","oneofIndex":0,"jsonName":"lastConnection","proto3Optional":true},{"name":"offset","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"offset"},{"name":"limit","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"limit"}],"oneofDecl":[{"name":"_last_connection"}]},{"name":"GetInstallationsByTypePaginatedResponse","field":[{"name":"installations","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.Installation","jsonName":"installations"},{"name":"total","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"total"},{"name":"offset","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"offset"},{"name":"limit","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"limit"},{"name":"has_next_page","number":5,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"hasNextPage"}]}],"enumType":[{"name":"InstallType","value":[{"name":"IT","number":0},{"name":"OT","number":1},{"name":"IT_AGENT","number":2},{"name":"CLOUD","number":3},{"name":"NETWORK_DISCOVERY","number":4}]},{"name":"InstallStateValue","value":[{"name":"UNESPECIFIED","number":0},{"name":"LINKED","number":1},{"name":"UNLINKED","number":2}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}},{"name":"GetInstallationsBySite","inputType":".lansweeper.install.v1.GetInstallationsBySiteRequest","outputType":".lansweeper.install.v1.GetInstallationsBySiteResponse","options":{}},{"name":"GetInstallationsByTypePaginated","inputType":".lansweeper.install.v1.GetInstallationsByTypePaginatedRequest","outputType":".lansweeper.install.v1.GetInstallationsByTypePaginatedResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,106,1]},{"path":[12],"span":[0,0,18]},{"path":[3,0],"span":[2,0,41]},{"path":[2],"span":[4,0,30]},{"path":[8],"span":[6,0,37]},{"path":[8,11],"span":[6,0,37]},{"path":[4,0],"span":[8,0,13,1]},{"path":[4,0,1],"span":[8,8,27]},{"path":[4,0,2,0],"span":[9,2,21]},{"path":[4,0,2,0,5],"span":[9,2,8]},{"path":[4,0,2,0,1],"span":[9,9,16]},{"path":[4,0,2,0,3],"span":[9,19,20]},{"path":[4,0,2,1],"span":[10,2,25]},{"path":[4,0,2,1,5],"span":[10,2,8]},{"path":[4,0,2,1,1],"span":[10,9,20]},{"path":[4,0,2,1,3],"span":[10,23,24]},{"path":[4,0,2,2],"span":[11,2,24]},{"path":[4,0,2,2,5],"span":[11,2,8]},{"path":[4,0,2,2,1],"span":[11,9,19]},{"path":[4,0,2,2,3],"span":[11,22,23]},{"path":[4,0,2,3],"span":[12,2,29]},{"path":[4,0,2,3,5],"span":[12,2,8]},{"path":[4,0,2,3,1],"span":[12,9,24]},{"path":[4,0,2,3,3],"span":[12,27,28]},{"path":[4,1],"span":[15,0,16,1]},{"path":[4,1,1],"span":[15,8,28]},{"path":[4,2],"span":[18,0,22,1]},{"path":[4,2,1],"span":[18,8,32]},{"path":[4,2,2,0],"span":[19,2,21]},{"path":[4,2,2,0,5],"span":[19,2,8]},{"path":[4,2,2,0,1],"span":[19,9,16]},{"path":[4,2,2,0,3],"span":[19,19,20]},{"path":[4,2,2,1],"span":[20,2,25]},{"path":[4,2,2,1,5],"span":[20,2,8]},{"path":[4,2,2,1,1],"span":[20,9,20]},{"path":[4,2,2,1,3],"span":[20,23,24]},{"path":[4,2,2,2],"span":[21,2,29]},{"path":[4,2,2,2,5],"span":[21,2,8]},{"path":[4,2,2,2,1],"span":[21,9,24]},{"path":[4,2,2,2,3],"span":[21,27,28]},{"path":[4,3],"span":[24,0,25,1]},{"path":[4,3,1],"span":[24,8,33]},{"path":[4,4],"span":[27,0,30,1]},{"path":[4,4,1],"span":[27,8,35]},{"path":[4,4,2,0],"span":[28,2,21]},{"path":[4,4,2,0,5],"span":[28,2,8]},{"path":[4,4,2,0,1],"span":[28,9,16]},{"path":[4,4,2,0,3],"span":[28,19,20]},{"path":[4,4,2,1],"span":[29,2,25]},{"path":[4,4,2,1,5],"span":[29,2,8]},{"path":[4,4,2,1,1],"span":[29,9,20]},{"path":[4,4,2,1,3],"span":[29,23,24]},{"path":[4,5],"span":[32,0,33,1]},{"path":[4,5,1],"span":[32,8,36]},{"path":[4,6],"span":[35,0,38,1]},{"path":[4,6,1],"span":[35,8,33]},{"path":[4,6,2,0],"span":[36,2,21]},{"path":[4,6,2,0,5],"span":[36,2,8]},{"path":[4,6,2,0,1],"span":[36,9,16]},{"path":[4,6,2,0,3],"span":[36,19,20]},{"path":[4,6,2,1],"span":[37,2,35]},{"path":[4,6,2,1,4],"span":[37,2,10]},{"path":[4,6,2,1,5],"span":[37,11,17]},{"path":[4,6,2,1,1],"span":[37,18,30]},{"path":[4,6,2,1,3],"span":[37,33,34]},{"path":[4,7],"span":[40,0,42,1]},{"path":[4,7,1],"span":[40,8,34]},{"path":[4,7,2,0],"span":[41,2,59]},{"path":[4,7,2,0,4],"span":[41,2,10]},{"path":[4,7,2,0,6],"span":[41,11,37]},{"path":[4,7,2,0,1],"span":[41,38,54]},{"path":[4,7,2,0,3],"span":[41,57,58]},{"path":[4,8],"span":[44,0,47,1]},{"path":[4,8,1],"span":[44,8,34]},{"path":[4,8,2,0],"span":[45,2,25]},{"path":[4,8,2,0,5],"span":[45,2,8]},{"path":[4,8,2,0,1],"span":[45,9,20]},{"path":[4,8,2,0,3],"span":[45,23,24]},{"path":[4,8,2,1],"span":[46,2,29]},{"path":[4,8,2,1,5],"span":[46,2,8]},{"path":[4,8,2,1,1],"span":[46,9,24]},{"path":[4,8,2,1,3],"span":[46,27,28]},{"path":[5,0],"span":[49,0,55,1]},{"path":[5,0,1],"span":[49,5,16]},{"path":[5,0,2,0],"span":[50,2,7]},{"path":[5,0,2,0,1],"span":[50,2,4]},{"path":[5,0,2,0,2],"span":[50,5,6]},{"path":[5,0,2,1],"span":[51,2,7]},{"path":[5,0,2,1,1],"span":[51,2,4]},{"path":[5,0,2,1,2],"span":[51,5,6]},{"path":[5,0,2,2],"span":[52,2,13]},{"path":[5,0,2,2,1],"span":[52,2,10]},{"path":[5,0,2,2,2],"span":[52,11,12]},{"path":[5,0,2,3],"span":[53,2,10]},{"path":[5,0,2,3,1],"span":[53,2,7]},{"path":[5,0,2,3,2],"span":[53,8,9]},{"path":[5,0,2,4],"span":[54,2,22]},{"path":[5,0,2,4,1],"span":[54,2,19]},{"path":[5,0,2,4,2],"span":[54,20,21]},{"path":[5,1],"span":[57,0,61,1]},{"path":[5,1,1],"span":[57,5,22]},{"path":[5,1,2,0],"span":[58,2,19]},{"path":[5,1,2,0,1],"span":[58,2,14]},{"path":[5,1,2,0,2],"span":[58,17,18]},{"path":[5,1,2,1],"span":[59,2,13]},{"path":[5,1,2,1,1],"span":[59,2,8]},{"path":[5,1,2,1,2],"span":[59,11,12]},{"path":[5,1,2,2],"span":[60,2,15]},{"path":[5,1,2,2,1],"span":[60,2,10]},{"path":[5,1,2,2,2],"span":[60,13,14]},{"path":[4,9],"span":[63,0,69,1]},{"path":[4,9,1],"span":[63,8,20]},{"path":[4,9,2,0],"span":[64,2,16]},{"path":[4,9,2,0,5],"span":[64,2,8]},{"path":[4,9,2,0,1],"span":[64,9,11]},{"path":[4,9,2,0,3],"span":[64,14,15]},{"path":[4,9,2,1],"span":[65,2,21]},{"path":[4,9,2,1,5],"span":[65,2,8]},{"path":[4,9,2,1,1],"span":[65,9,16]},{"path":[4,9,2,1,3],"span":[65,19,20]},{"path":[4,9,2,2],"span":[66,2,23]},{"path":[4,9,2,2,6],"span":[66,2,13]},{"path":[4,9,2,2,1],"span":[66,14,18]},{"path":[4,9,2,2,3],"span":[66,21,22]},{"path":[4,9,2,3],"span":[67,2,30]},{"path":[4,9,2,3,6],"span":[67,2,19]},{"path":[4,9,2,3,1],"span":[67,20,25]},{"path":[4,9,2,3,3],"span":[67,28,29]},{"path":[4,9,2,4],"span":[68,2,48]},{"path":[4,9,2,4,6],"span":[68,2,27]},{"path":[4,9,2,4,1],"span":[68,28,43]},{"path":[4,9,2,4,3],"span":[68,46,47]},{"path":[4,10],"span":[71,0,78,1]},{"path":[4,10,1],"span":[71,8,37]},{"path":[4,10,2,0],"span":[72,2,21]},{"path":[4,10,2,0,5],"span":[72,2,8]},{"path":[4,10,2,0,1],"span":[72,9,16]},{"path":[4,10,2,0,3],"span":[72,19,20]},{"path":[4,10,3,0],"span":[73,2,76,3]},{"path":[4,10,3,0,1],"span":[73,10,16]},{"path":[4,10,3,0,2,0],"span":[74,4,32]},{"path":[4,10,3,0,2,0,4],"span":[74,4,12]},{"path":[4,10,3,0,2,0,6],"span":[74,13,24]},{"path":[4,10,3,0,2,0,1],"span":[74,25,29]},{"path":[4,10,3,0,2,0,3],"span":[74,30,31]},{"path":[4,10,3,0,2,1],"span":[75,4,59]},{"path":[4,10,3,0,2,1,4],"span":[75,4,12]},{"path":[4,10,3,0,2,1,6],"span":[75,13,38]},{"path":[4,10,3,0,2,1,1],"span":[75,39,54]},{"path":[4,10,3,0,2,1,3],"span":[75,57,58]},{"path":[4,10,2,1],"span":[77,2,29]},{"path":[4,10,2,1,4],"span":[77,2,10]},{"path":[4,10,2,1,6],"span":[77,11,17]},{"path":[4,10,2,1,1],"span":[77,18,24]},{"path":[4,10,2,1,3],"span":[77,27,28]},{"path":[4,11],"span":[80,0,82,1]},{"path":[4,11,1],"span":[80,8,38]},{"path":[4,11,2,0],"span":[81,2,42]},{"path":[4,11,2,0,4],"span":[81,2,10]},{"path":[4,11,2,0,6],"span":[81,11,23]},{"path":[4,11,2,0,1],"span":[81,24,37]},{"path":[4,11,2,0,3],"span":[81,40,41]},{"path":[4,12],"span":[84,0,89,1]},{"path":[4,12,1],"span":[84,8,46]},{"path":[4,12,2,0],"span":[85,4,34]},{"path":[4,12,2,0,4],"span":[85,4,12]},{"path":[4,12,2,0,6],"span":[85,13,24]},{"path":[4,12,2,0,1],"span":[85,25,29]},{"path":[4,12,2,0,3],"span":[85,32,33]},{"path":[4,12,2,1],"span":[86,4,59]},{"path":[4,12,2,1,4],"span":[86,4,12]},{"path":[4,12,2,1,6],"span":[86,13,38]},{"path":[4,12,2,1,1],"span":[86,39,54]},{"path":[4,12,2,1,3],"span":[86,57,58]},{"path":[4,12,2,2],"span":[87,4,21]},{"path":[4,12,2,2,5],"span":[87,4,9]},{"path":[4,12,2,2,1],"span":[87,10,16]},{"path":[4,12,2,2,3],"span":[87,19,20]},{"path":[4,12,2,3],"span":[88,4,20]},{"path":[4,12,2,3,5],"span":[88,4,9]},{"path":[4,12,2,3,1],"span":[88,10,15]},{"path":[4,12,2,3,3],"span":[88,18,19]},{"path":[4,13],"span":[91,0,97,1]},{"path":[4,13,1],"span":[91,8,47]},{"path":[4,13,2,0],"span":[92,2,42]},{"path":[4,13,2,0,4],"span":[92,2,10]},{"path":[4,13,2,0,6],"span":[92,11,23]},{"path":[4,13,2,0,1],"span":[92,24,37]},{"path":[4,13,2,0,3],"span":[92,40,41]},{"path":[4,13,2,1],"span":[93,2,18]},{"path":[4,13,2,1,5],"span":[93,2,7]},{"path":[4,13,2,1,1],"span":[93,8,13]},{"path":[4,13,2,1,3],"span":[93,16,17]},{"path":[4,13,2,2],"span":[94,2,19]},{"path":[4,13,2,2,5],"span":[94,2,7]},{"path":[4,13,2,2,1],"span":[94,8,14]},{"path":[4,13,2,2,3],"span":[94,17,18]},{"path":[4,13,2,3],"span":[95,2,18]},{"path":[4,13,2,3,5],"span":[95,2,7]},{"path":[4,13,2,3,1],"span":[95,8,13]},{"path":[4,13,2,3,3],"span":[95,16,17]},{"path":[4,13,2,4],"span":[96,2,25]},{"path":[4,13,2,4,5],"span":[96,2,6]},{"path":[4,13,2,4,1],"span":[96,7,20]},{"path":[4,13,2,4,3],"span":[96,23,24]},{"path":[6,0],"span":[99,0,106,1]},{"path":[6,0,1],"span":[99,8,22]},{"path":[6,0,2,0],"span":[100,2,91]},{"path":[6,0,2,0,1],"span":[100,6,24]},{"path":[6,0,2,0,2],"span":[100,25,50]},{"path":[6,0,2,0,3],"span":[100,61,87]},{"path":[6,0,2,1],"span":[101,2,73]},{"path":[6,0,2,1,1],"span":[101,6,18]},{"path":[6,0,2,1,2],"span":[101,19,38]},{"path":[6,0,2,1,3],"span":[101,49,69]},{"path":[6,0,2,2],"span":[102,2,88]},{"path":[6,0,2,2,1],"span":[102,6,23]},{"path":[6,0,2,2,2],"span":[102,24,48]},{"path":[6,0,2,2,3],"span":[102,59,84]},{"path":[6,0,2,3],"span":[103,2,97]},{"path":[6,0,2,3,1],"span":[103,6,26]},{"path":[6,0,2,3,2],"span":[103,27,54]},{"path":[6,0,2,3,3],"span":[103,65,93]},{"path":[6,0,2,4],"span":[104,2,103]},{"path":[6,0,2,4,1],"span":[104,6,28]},{"path":[6,0,2,4,2],"span":[104,29,58]},{"path":[6,0,2,4,3],"span":[104,69,99]},{"path":[6,0,2,5],"span":[105,2,130]},{"path":[6,0,2,5,1],"span":[105,6,37]},{"path":[6,0,2,5,2],"span":[105,38,76]},{"path":[6,0,2,5,3],"span":[105,87,126]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -14,6 +14,7 @@ interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServ
14
14
  setHubCertificate: IInstallServiceService_ISetHubCertificate;
15
15
  removeHubCertificate: IInstallServiceService_IRemoveHubCertificate;
16
16
  getInstallationsBySite: IInstallServiceService_IGetInstallationsBySite;
17
+ getInstallationsByTypePaginated: IInstallServiceService_IGetInstallationsByTypePaginated;
17
18
  }
18
19
 
19
20
  interface IInstallServiceService_IGetHubCertificates extends grpc.MethodDefinition<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse> {
@@ -61,6 +62,15 @@ interface IInstallServiceService_IGetInstallationsBySite extends grpc.MethodDefi
61
62
  responseSerialize: grpc.serialize<install_pb.GetInstallationsBySiteResponse>;
62
63
  responseDeserialize: grpc.deserialize<install_pb.GetInstallationsBySiteResponse>;
63
64
  }
65
+ interface IInstallServiceService_IGetInstallationsByTypePaginated extends grpc.MethodDefinition<install_pb.GetInstallationsByTypePaginatedRequest, install_pb.GetInstallationsByTypePaginatedResponse> {
66
+ path: "/lansweeper.install.v1.InstallService/GetInstallationsByTypePaginated";
67
+ requestStream: false;
68
+ responseStream: false;
69
+ requestSerialize: grpc.serialize<install_pb.GetInstallationsByTypePaginatedRequest>;
70
+ requestDeserialize: grpc.deserialize<install_pb.GetInstallationsByTypePaginatedRequest>;
71
+ responseSerialize: grpc.serialize<install_pb.GetInstallationsByTypePaginatedResponse>;
72
+ responseDeserialize: grpc.deserialize<install_pb.GetInstallationsByTypePaginatedResponse>;
73
+ }
64
74
 
65
75
  export const InstallServiceService: IInstallServiceService;
66
76
 
@@ -70,6 +80,7 @@ export interface IInstallServiceServer extends grpc.UntypedServiceImplementation
70
80
  setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
71
81
  removeHubCertificate: grpc.handleUnaryCall<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse>;
72
82
  getInstallationsBySite: grpc.handleUnaryCall<install_pb.GetInstallationsBySiteRequest, install_pb.GetInstallationsBySiteResponse>;
83
+ getInstallationsByTypePaginated: grpc.handleUnaryCall<install_pb.GetInstallationsByTypePaginatedRequest, install_pb.GetInstallationsByTypePaginatedResponse>;
73
84
  }
74
85
 
75
86
  export interface IInstallServiceClient {
@@ -88,6 +99,9 @@ export interface IInstallServiceClient {
88
99
  getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
89
100
  getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
90
101
  getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
102
+ getInstallationsByTypePaginated(request: install_pb.GetInstallationsByTypePaginatedRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsByTypePaginatedResponse) => void): grpc.ClientUnaryCall;
103
+ getInstallationsByTypePaginated(request: install_pb.GetInstallationsByTypePaginatedRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsByTypePaginatedResponse) => void): grpc.ClientUnaryCall;
104
+ getInstallationsByTypePaginated(request: install_pb.GetInstallationsByTypePaginatedRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsByTypePaginatedResponse) => void): grpc.ClientUnaryCall;
91
105
  }
92
106
 
93
107
  export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
@@ -107,4 +121,7 @@ export class InstallServiceClient extends grpc.Client implements IInstallService
107
121
  public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
108
122
  public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
109
123
  public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
124
+ public getInstallationsByTypePaginated(request: install_pb.GetInstallationsByTypePaginatedRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsByTypePaginatedResponse) => void): grpc.ClientUnaryCall;
125
+ public getInstallationsByTypePaginated(request: install_pb.GetInstallationsByTypePaginatedRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsByTypePaginatedResponse) => void): grpc.ClientUnaryCall;
126
+ public getInstallationsByTypePaginated(request: install_pb.GetInstallationsByTypePaginatedRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsByTypePaginatedResponse) => void): grpc.ClientUnaryCall;
110
127
  }
@@ -49,6 +49,28 @@ function deserialize_lansweeper_install_v1_GetInstallationsBySiteResponse(buffer
49
49
  return install_pb.GetInstallationsBySiteResponse.deserializeBinary(new Uint8Array(buffer_arg));
50
50
  }
51
51
 
52
+ function serialize_lansweeper_install_v1_GetInstallationsByTypePaginatedRequest(arg) {
53
+ if (!(arg instanceof install_pb.GetInstallationsByTypePaginatedRequest)) {
54
+ throw new Error('Expected argument of type lansweeper.install.v1.GetInstallationsByTypePaginatedRequest');
55
+ }
56
+ return Buffer.from(arg.serializeBinary());
57
+ }
58
+
59
+ function deserialize_lansweeper_install_v1_GetInstallationsByTypePaginatedRequest(buffer_arg) {
60
+ return install_pb.GetInstallationsByTypePaginatedRequest.deserializeBinary(new Uint8Array(buffer_arg));
61
+ }
62
+
63
+ function serialize_lansweeper_install_v1_GetInstallationsByTypePaginatedResponse(arg) {
64
+ if (!(arg instanceof install_pb.GetInstallationsByTypePaginatedResponse)) {
65
+ throw new Error('Expected argument of type lansweeper.install.v1.GetInstallationsByTypePaginatedResponse');
66
+ }
67
+ return Buffer.from(arg.serializeBinary());
68
+ }
69
+
70
+ function deserialize_lansweeper_install_v1_GetInstallationsByTypePaginatedResponse(buffer_arg) {
71
+ return install_pb.GetInstallationsByTypePaginatedResponse.deserializeBinary(new Uint8Array(buffer_arg));
72
+ }
73
+
52
74
  function serialize_lansweeper_install_v1_RemoveHubCertificateRequest(arg) {
53
75
  if (!(arg instanceof install_pb.RemoveHubCertificateRequest)) {
54
76
  throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateRequest');
@@ -172,6 +194,17 @@ var InstallServiceService = exports.InstallServiceService = {
172
194
  responseSerialize: serialize_lansweeper_install_v1_GetInstallationsBySiteResponse,
173
195
  responseDeserialize: deserialize_lansweeper_install_v1_GetInstallationsBySiteResponse,
174
196
  },
197
+ getInstallationsByTypePaginated: {
198
+ path: '/lansweeper.install.v1.InstallService/GetInstallationsByTypePaginated',
199
+ requestStream: false,
200
+ responseStream: false,
201
+ requestType: install_pb.GetInstallationsByTypePaginatedRequest,
202
+ responseType: install_pb.GetInstallationsByTypePaginatedResponse,
203
+ requestSerialize: serialize_lansweeper_install_v1_GetInstallationsByTypePaginatedRequest,
204
+ requestDeserialize: deserialize_lansweeper_install_v1_GetInstallationsByTypePaginatedRequest,
205
+ responseSerialize: serialize_lansweeper_install_v1_GetInstallationsByTypePaginatedResponse,
206
+ responseDeserialize: deserialize_lansweeper_install_v1_GetInstallationsByTypePaginatedResponse,
207
+ },
175
208
  };
176
209
 
177
210
  exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
@@ -319,6 +319,74 @@ export namespace GetInstallationsBySiteResponse {
319
319
  }
320
320
  }
321
321
 
322
+ export class GetInstallationsByTypePaginatedRequest extends jspb.Message {
323
+ clearTypeList(): void;
324
+ getTypeList(): Array<InstallType>;
325
+ setTypeList(value: Array<InstallType>): GetInstallationsByTypePaginatedRequest;
326
+ addType(value: InstallType, index?: number): InstallType;
327
+
328
+ hasLastConnection(): boolean;
329
+ clearLastConnection(): void;
330
+ getLastConnection(): google_protobuf_timestamp_pb.Timestamp | undefined;
331
+ setLastConnection(value?: google_protobuf_timestamp_pb.Timestamp): GetInstallationsByTypePaginatedRequest;
332
+ getOffset(): number;
333
+ setOffset(value: number): GetInstallationsByTypePaginatedRequest;
334
+ getLimit(): number;
335
+ setLimit(value: number): GetInstallationsByTypePaginatedRequest;
336
+
337
+ serializeBinary(): Uint8Array;
338
+ toObject(includeInstance?: boolean): GetInstallationsByTypePaginatedRequest.AsObject;
339
+ static toObject(includeInstance: boolean, msg: GetInstallationsByTypePaginatedRequest): GetInstallationsByTypePaginatedRequest.AsObject;
340
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
341
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
342
+ static serializeBinaryToWriter(message: GetInstallationsByTypePaginatedRequest, writer: jspb.BinaryWriter): void;
343
+ static deserializeBinary(bytes: Uint8Array): GetInstallationsByTypePaginatedRequest;
344
+ static deserializeBinaryFromReader(message: GetInstallationsByTypePaginatedRequest, reader: jspb.BinaryReader): GetInstallationsByTypePaginatedRequest;
345
+ }
346
+
347
+ export namespace GetInstallationsByTypePaginatedRequest {
348
+ export type AsObject = {
349
+ typeList: Array<InstallType>,
350
+ lastConnection?: google_protobuf_timestamp_pb.Timestamp.AsObject,
351
+ offset: number,
352
+ limit: number,
353
+ }
354
+ }
355
+
356
+ export class GetInstallationsByTypePaginatedResponse extends jspb.Message {
357
+ clearInstallationsList(): void;
358
+ getInstallationsList(): Array<Installation>;
359
+ setInstallationsList(value: Array<Installation>): GetInstallationsByTypePaginatedResponse;
360
+ addInstallations(value?: Installation, index?: number): Installation;
361
+ getTotal(): number;
362
+ setTotal(value: number): GetInstallationsByTypePaginatedResponse;
363
+ getOffset(): number;
364
+ setOffset(value: number): GetInstallationsByTypePaginatedResponse;
365
+ getLimit(): number;
366
+ setLimit(value: number): GetInstallationsByTypePaginatedResponse;
367
+ getHasNextPage(): boolean;
368
+ setHasNextPage(value: boolean): GetInstallationsByTypePaginatedResponse;
369
+
370
+ serializeBinary(): Uint8Array;
371
+ toObject(includeInstance?: boolean): GetInstallationsByTypePaginatedResponse.AsObject;
372
+ static toObject(includeInstance: boolean, msg: GetInstallationsByTypePaginatedResponse): GetInstallationsByTypePaginatedResponse.AsObject;
373
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
374
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
375
+ static serializeBinaryToWriter(message: GetInstallationsByTypePaginatedResponse, writer: jspb.BinaryWriter): void;
376
+ static deserializeBinary(bytes: Uint8Array): GetInstallationsByTypePaginatedResponse;
377
+ static deserializeBinaryFromReader(message: GetInstallationsByTypePaginatedResponse, reader: jspb.BinaryReader): GetInstallationsByTypePaginatedResponse;
378
+ }
379
+
380
+ export namespace GetInstallationsByTypePaginatedResponse {
381
+ export type AsObject = {
382
+ installationsList: Array<Installation.AsObject>,
383
+ total: number,
384
+ offset: number,
385
+ limit: number,
386
+ hasNextPage: boolean,
387
+ }
388
+ }
389
+
322
390
  export enum InstallType {
323
391
  IT = 0,
324
392
  OT = 1,
@@ -28,6 +28,8 @@ goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null
28
28
  goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest', null, global);
29
29
  goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter', null, global);
30
30
  goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteResponse', null, global);
31
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest', null, global);
32
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse', null, global);
31
33
  goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
32
34
  goog.exportSymbol('proto.lansweeper.install.v1.InstallStateValue', null, global);
33
35
  goog.exportSymbol('proto.lansweeper.install.v1.InstallType', null, global);
@@ -311,6 +313,48 @@ if (goog.DEBUG && !COMPILED) {
311
313
  */
312
314
  proto.lansweeper.install.v1.GetInstallationsBySiteResponse.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteResponse';
313
315
  }
316
+ /**
317
+ * Generated by JsPbCodeGenerator.
318
+ * @param {Array=} opt_data Optional initial data array, typically from a
319
+ * server response, or constructed directly in Javascript. The array is used
320
+ * in place and becomes part of the constructed object. It is not cloned.
321
+ * If no data is provided, the constructed object will be empty, but still
322
+ * valid.
323
+ * @extends {jspb.Message}
324
+ * @constructor
325
+ */
326
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest = function(opt_data) {
327
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.repeatedFields_, null);
328
+ };
329
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest, jspb.Message);
330
+ if (goog.DEBUG && !COMPILED) {
331
+ /**
332
+ * @public
333
+ * @override
334
+ */
335
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.displayName = 'proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest';
336
+ }
337
+ /**
338
+ * Generated by JsPbCodeGenerator.
339
+ * @param {Array=} opt_data Optional initial data array, typically from a
340
+ * server response, or constructed directly in Javascript. The array is used
341
+ * in place and becomes part of the constructed object. It is not cloned.
342
+ * If no data is provided, the constructed object will be empty, but still
343
+ * valid.
344
+ * @extends {jspb.Message}
345
+ * @constructor
346
+ */
347
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse = function(opt_data) {
348
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.repeatedFields_, null);
349
+ };
350
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse, jspb.Message);
351
+ if (goog.DEBUG && !COMPILED) {
352
+ /**
353
+ * @public
354
+ * @override
355
+ */
356
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.displayName = 'proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse';
357
+ }
314
358
 
315
359
 
316
360
 
@@ -2511,6 +2555,555 @@ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.clearInstal
2511
2555
  };
2512
2556
 
2513
2557
 
2558
+
2559
+ /**
2560
+ * List of repeated fields within this message type.
2561
+ * @private {!Array<number>}
2562
+ * @const
2563
+ */
2564
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.repeatedFields_ = [1];
2565
+
2566
+
2567
+
2568
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2569
+ /**
2570
+ * Creates an object representation of this proto.
2571
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2572
+ * Optional fields that are not set will be set to undefined.
2573
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2574
+ * For the list of reserved names please see:
2575
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2576
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2577
+ * JSPB instance for transitional soy proto support:
2578
+ * http://goto/soy-param-migration
2579
+ * @return {!Object}
2580
+ */
2581
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.toObject = function(opt_includeInstance) {
2582
+ return proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.toObject(opt_includeInstance, this);
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * Static version of the {@see toObject} method.
2588
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2589
+ * the JSPB instance for transitional soy proto support:
2590
+ * http://goto/soy-param-migration
2591
+ * @param {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} msg The msg instance to transform.
2592
+ * @return {!Object}
2593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2594
+ */
2595
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.toObject = function(includeInstance, msg) {
2596
+ var f, obj = {
2597
+ typeList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2598
+ lastConnection: (f = msg.getLastConnection()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2599
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0),
2600
+ limit: jspb.Message.getFieldWithDefault(msg, 4, 0)
2601
+ };
2602
+
2603
+ if (includeInstance) {
2604
+ obj.$jspbMessageInstance = msg;
2605
+ }
2606
+ return obj;
2607
+ };
2608
+ }
2609
+
2610
+
2611
+ /**
2612
+ * Deserializes binary data (in protobuf wire format).
2613
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2614
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest}
2615
+ */
2616
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.deserializeBinary = function(bytes) {
2617
+ var reader = new jspb.BinaryReader(bytes);
2618
+ var msg = new proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest;
2619
+ return proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.deserializeBinaryFromReader(msg, reader);
2620
+ };
2621
+
2622
+
2623
+ /**
2624
+ * Deserializes binary data (in protobuf wire format) from the
2625
+ * given reader into the given message object.
2626
+ * @param {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} msg The message object to deserialize into.
2627
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2628
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest}
2629
+ */
2630
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.deserializeBinaryFromReader = function(msg, reader) {
2631
+ while (reader.nextField()) {
2632
+ if (reader.isEndGroup()) {
2633
+ break;
2634
+ }
2635
+ var field = reader.getFieldNumber();
2636
+ switch (field) {
2637
+ case 1:
2638
+ var values = /** @type {!Array<!proto.lansweeper.install.v1.InstallType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
2639
+ for (var i = 0; i < values.length; i++) {
2640
+ msg.addType(values[i]);
2641
+ }
2642
+ break;
2643
+ case 2:
2644
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2645
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2646
+ msg.setLastConnection(value);
2647
+ break;
2648
+ case 3:
2649
+ var value = /** @type {number} */ (reader.readInt32());
2650
+ msg.setOffset(value);
2651
+ break;
2652
+ case 4:
2653
+ var value = /** @type {number} */ (reader.readInt32());
2654
+ msg.setLimit(value);
2655
+ break;
2656
+ default:
2657
+ reader.skipField();
2658
+ break;
2659
+ }
2660
+ }
2661
+ return msg;
2662
+ };
2663
+
2664
+
2665
+ /**
2666
+ * Serializes the message to binary data (in protobuf wire format).
2667
+ * @return {!Uint8Array}
2668
+ */
2669
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.serializeBinary = function() {
2670
+ var writer = new jspb.BinaryWriter();
2671
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.serializeBinaryToWriter(this, writer);
2672
+ return writer.getResultBuffer();
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * Serializes the given message to binary data (in protobuf wire
2678
+ * format), writing to the given BinaryWriter.
2679
+ * @param {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} message
2680
+ * @param {!jspb.BinaryWriter} writer
2681
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2682
+ */
2683
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.serializeBinaryToWriter = function(message, writer) {
2684
+ var f = undefined;
2685
+ f = message.getTypeList();
2686
+ if (f.length > 0) {
2687
+ writer.writePackedEnum(
2688
+ 1,
2689
+ f
2690
+ );
2691
+ }
2692
+ f = message.getLastConnection();
2693
+ if (f != null) {
2694
+ writer.writeMessage(
2695
+ 2,
2696
+ f,
2697
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2698
+ );
2699
+ }
2700
+ f = message.getOffset();
2701
+ if (f !== 0) {
2702
+ writer.writeInt32(
2703
+ 3,
2704
+ f
2705
+ );
2706
+ }
2707
+ f = message.getLimit();
2708
+ if (f !== 0) {
2709
+ writer.writeInt32(
2710
+ 4,
2711
+ f
2712
+ );
2713
+ }
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * repeated InstallType type = 1;
2719
+ * @return {!Array<!proto.lansweeper.install.v1.InstallType>}
2720
+ */
2721
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.getTypeList = function() {
2722
+ return /** @type {!Array<!proto.lansweeper.install.v1.InstallType>} */ (jspb.Message.getRepeatedField(this, 1));
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * @param {!Array<!proto.lansweeper.install.v1.InstallType>} value
2728
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2729
+ */
2730
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.setTypeList = function(value) {
2731
+ return jspb.Message.setField(this, 1, value || []);
2732
+ };
2733
+
2734
+
2735
+ /**
2736
+ * @param {!proto.lansweeper.install.v1.InstallType} value
2737
+ * @param {number=} opt_index
2738
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2739
+ */
2740
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.addType = function(value, opt_index) {
2741
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * Clears the list making it empty but non-null.
2747
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2748
+ */
2749
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.clearTypeList = function() {
2750
+ return this.setTypeList([]);
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * optional google.protobuf.Timestamp last_connection = 2;
2756
+ * @return {?proto.google.protobuf.Timestamp}
2757
+ */
2758
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.getLastConnection = function() {
2759
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2760
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2761
+ };
2762
+
2763
+
2764
+ /**
2765
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2766
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2767
+ */
2768
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.setLastConnection = function(value) {
2769
+ return jspb.Message.setWrapperField(this, 2, value);
2770
+ };
2771
+
2772
+
2773
+ /**
2774
+ * Clears the message field making it undefined.
2775
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2776
+ */
2777
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.clearLastConnection = function() {
2778
+ return this.setLastConnection(undefined);
2779
+ };
2780
+
2781
+
2782
+ /**
2783
+ * Returns whether this field is set.
2784
+ * @return {boolean}
2785
+ */
2786
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.hasLastConnection = function() {
2787
+ return jspb.Message.getField(this, 2) != null;
2788
+ };
2789
+
2790
+
2791
+ /**
2792
+ * optional int32 offset = 3;
2793
+ * @return {number}
2794
+ */
2795
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.getOffset = function() {
2796
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * @param {number} value
2802
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2803
+ */
2804
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.setOffset = function(value) {
2805
+ return jspb.Message.setProto3IntField(this, 3, value);
2806
+ };
2807
+
2808
+
2809
+ /**
2810
+ * optional int32 limit = 4;
2811
+ * @return {number}
2812
+ */
2813
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.getLimit = function() {
2814
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2815
+ };
2816
+
2817
+
2818
+ /**
2819
+ * @param {number} value
2820
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest} returns this
2821
+ */
2822
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedRequest.prototype.setLimit = function(value) {
2823
+ return jspb.Message.setProto3IntField(this, 4, value);
2824
+ };
2825
+
2826
+
2827
+
2828
+ /**
2829
+ * List of repeated fields within this message type.
2830
+ * @private {!Array<number>}
2831
+ * @const
2832
+ */
2833
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.repeatedFields_ = [1];
2834
+
2835
+
2836
+
2837
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2838
+ /**
2839
+ * Creates an object representation of this proto.
2840
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2841
+ * Optional fields that are not set will be set to undefined.
2842
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2843
+ * For the list of reserved names please see:
2844
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2845
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2846
+ * JSPB instance for transitional soy proto support:
2847
+ * http://goto/soy-param-migration
2848
+ * @return {!Object}
2849
+ */
2850
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.toObject = function(opt_includeInstance) {
2851
+ return proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.toObject(opt_includeInstance, this);
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * Static version of the {@see toObject} method.
2857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2858
+ * the JSPB instance for transitional soy proto support:
2859
+ * http://goto/soy-param-migration
2860
+ * @param {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} msg The msg instance to transform.
2861
+ * @return {!Object}
2862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2863
+ */
2864
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.toObject = function(includeInstance, msg) {
2865
+ var f, obj = {
2866
+ installationsList: jspb.Message.toObjectList(msg.getInstallationsList(),
2867
+ proto.lansweeper.install.v1.Installation.toObject, includeInstance),
2868
+ total: jspb.Message.getFieldWithDefault(msg, 2, 0),
2869
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0),
2870
+ limit: jspb.Message.getFieldWithDefault(msg, 4, 0),
2871
+ hasNextPage: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
2872
+ };
2873
+
2874
+ if (includeInstance) {
2875
+ obj.$jspbMessageInstance = msg;
2876
+ }
2877
+ return obj;
2878
+ };
2879
+ }
2880
+
2881
+
2882
+ /**
2883
+ * Deserializes binary data (in protobuf wire format).
2884
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2885
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse}
2886
+ */
2887
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.deserializeBinary = function(bytes) {
2888
+ var reader = new jspb.BinaryReader(bytes);
2889
+ var msg = new proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse;
2890
+ return proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.deserializeBinaryFromReader(msg, reader);
2891
+ };
2892
+
2893
+
2894
+ /**
2895
+ * Deserializes binary data (in protobuf wire format) from the
2896
+ * given reader into the given message object.
2897
+ * @param {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} msg The message object to deserialize into.
2898
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2899
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse}
2900
+ */
2901
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.deserializeBinaryFromReader = function(msg, reader) {
2902
+ while (reader.nextField()) {
2903
+ if (reader.isEndGroup()) {
2904
+ break;
2905
+ }
2906
+ var field = reader.getFieldNumber();
2907
+ switch (field) {
2908
+ case 1:
2909
+ var value = new proto.lansweeper.install.v1.Installation;
2910
+ reader.readMessage(value,proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader);
2911
+ msg.addInstallations(value);
2912
+ break;
2913
+ case 2:
2914
+ var value = /** @type {number} */ (reader.readInt32());
2915
+ msg.setTotal(value);
2916
+ break;
2917
+ case 3:
2918
+ var value = /** @type {number} */ (reader.readInt32());
2919
+ msg.setOffset(value);
2920
+ break;
2921
+ case 4:
2922
+ var value = /** @type {number} */ (reader.readInt32());
2923
+ msg.setLimit(value);
2924
+ break;
2925
+ case 5:
2926
+ var value = /** @type {boolean} */ (reader.readBool());
2927
+ msg.setHasNextPage(value);
2928
+ break;
2929
+ default:
2930
+ reader.skipField();
2931
+ break;
2932
+ }
2933
+ }
2934
+ return msg;
2935
+ };
2936
+
2937
+
2938
+ /**
2939
+ * Serializes the message to binary data (in protobuf wire format).
2940
+ * @return {!Uint8Array}
2941
+ */
2942
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.serializeBinary = function() {
2943
+ var writer = new jspb.BinaryWriter();
2944
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.serializeBinaryToWriter(this, writer);
2945
+ return writer.getResultBuffer();
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Serializes the given message to binary data (in protobuf wire
2951
+ * format), writing to the given BinaryWriter.
2952
+ * @param {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} message
2953
+ * @param {!jspb.BinaryWriter} writer
2954
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2955
+ */
2956
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.serializeBinaryToWriter = function(message, writer) {
2957
+ var f = undefined;
2958
+ f = message.getInstallationsList();
2959
+ if (f.length > 0) {
2960
+ writer.writeRepeatedMessage(
2961
+ 1,
2962
+ f,
2963
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter
2964
+ );
2965
+ }
2966
+ f = message.getTotal();
2967
+ if (f !== 0) {
2968
+ writer.writeInt32(
2969
+ 2,
2970
+ f
2971
+ );
2972
+ }
2973
+ f = message.getOffset();
2974
+ if (f !== 0) {
2975
+ writer.writeInt32(
2976
+ 3,
2977
+ f
2978
+ );
2979
+ }
2980
+ f = message.getLimit();
2981
+ if (f !== 0) {
2982
+ writer.writeInt32(
2983
+ 4,
2984
+ f
2985
+ );
2986
+ }
2987
+ f = message.getHasNextPage();
2988
+ if (f) {
2989
+ writer.writeBool(
2990
+ 5,
2991
+ f
2992
+ );
2993
+ }
2994
+ };
2995
+
2996
+
2997
+ /**
2998
+ * repeated Installation installations = 1;
2999
+ * @return {!Array<!proto.lansweeper.install.v1.Installation>}
3000
+ */
3001
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.getInstallationsList = function() {
3002
+ return /** @type{!Array<!proto.lansweeper.install.v1.Installation>} */ (
3003
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.Installation, 1));
3004
+ };
3005
+
3006
+
3007
+ /**
3008
+ * @param {!Array<!proto.lansweeper.install.v1.Installation>} value
3009
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} returns this
3010
+ */
3011
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.setInstallationsList = function(value) {
3012
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3013
+ };
3014
+
3015
+
3016
+ /**
3017
+ * @param {!proto.lansweeper.install.v1.Installation=} opt_value
3018
+ * @param {number=} opt_index
3019
+ * @return {!proto.lansweeper.install.v1.Installation}
3020
+ */
3021
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.addInstallations = function(opt_value, opt_index) {
3022
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.Installation, opt_index);
3023
+ };
3024
+
3025
+
3026
+ /**
3027
+ * Clears the list making it empty but non-null.
3028
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} returns this
3029
+ */
3030
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.clearInstallationsList = function() {
3031
+ return this.setInstallationsList([]);
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * optional int32 total = 2;
3037
+ * @return {number}
3038
+ */
3039
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.getTotal = function() {
3040
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3041
+ };
3042
+
3043
+
3044
+ /**
3045
+ * @param {number} value
3046
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} returns this
3047
+ */
3048
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.setTotal = function(value) {
3049
+ return jspb.Message.setProto3IntField(this, 2, value);
3050
+ };
3051
+
3052
+
3053
+ /**
3054
+ * optional int32 offset = 3;
3055
+ * @return {number}
3056
+ */
3057
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.getOffset = function() {
3058
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3059
+ };
3060
+
3061
+
3062
+ /**
3063
+ * @param {number} value
3064
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} returns this
3065
+ */
3066
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.setOffset = function(value) {
3067
+ return jspb.Message.setProto3IntField(this, 3, value);
3068
+ };
3069
+
3070
+
3071
+ /**
3072
+ * optional int32 limit = 4;
3073
+ * @return {number}
3074
+ */
3075
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.getLimit = function() {
3076
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3077
+ };
3078
+
3079
+
3080
+ /**
3081
+ * @param {number} value
3082
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} returns this
3083
+ */
3084
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.setLimit = function(value) {
3085
+ return jspb.Message.setProto3IntField(this, 4, value);
3086
+ };
3087
+
3088
+
3089
+ /**
3090
+ * optional bool has_next_page = 5;
3091
+ * @return {boolean}
3092
+ */
3093
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.getHasNextPage = function() {
3094
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
3095
+ };
3096
+
3097
+
3098
+ /**
3099
+ * @param {boolean} value
3100
+ * @return {!proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse} returns this
3101
+ */
3102
+ proto.lansweeper.install.v1.GetInstallationsByTypePaginatedResponse.prototype.setHasNextPage = function(value) {
3103
+ return jspb.Message.setProto3BooleanField(this, 5, value);
3104
+ };
3105
+
3106
+
2514
3107
  /**
2515
3108
  * @enum {number}
2516
3109
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/install-api-grpc",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "install api grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "9cb119706b8780fce3b4c0a89ef7f778139a5a82"
19
+ "gitHead": "507935cbcbb29248ff509f8430a6276e89ba97a3"
20
20
  }
@@ -82,10 +82,26 @@ message GetInstallationsBySiteResponse {
82
82
  repeated Installation installations = 1;
83
83
  }
84
84
 
85
+ message GetInstallationsByTypePaginatedRequest {
86
+ repeated InstallType type = 1;
87
+ optional google.protobuf.Timestamp last_connection = 2;
88
+ int32 offset = 3;
89
+ int32 limit = 4;
90
+ }
91
+
92
+ message GetInstallationsByTypePaginatedResponse {
93
+ repeated Installation installations = 1;
94
+ int32 total = 2;
95
+ int32 offset = 3;
96
+ int32 limit = 4;
97
+ bool has_next_page = 5;
98
+ }
99
+
85
100
  service InstallService {
86
101
  rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
87
102
  rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
88
103
  rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
89
104
  rpc RemoveHubCertificate(RemoveHubCertificateRequest) returns (RemoveHubCertificateResponse) {}
90
105
  rpc GetInstallationsBySite(GetInstallationsBySiteRequest) returns (GetInstallationsBySiteResponse) {}
106
+ rpc GetInstallationsByTypePaginated(GetInstallationsByTypePaginatedRequest) returns (GetInstallationsByTypePaginatedResponse) {}
91
107
  }