diff --git a/VALD_CLIENT_NODE_VERSION b/VALD_CLIENT_NODE_VERSION index de28578..91c74a5 100644 --- a/VALD_CLIENT_NODE_VERSION +++ b/VALD_CLIENT_NODE_VERSION @@ -1 +1 @@ -1.7.6 +1.7.7 diff --git a/VALD_SHA b/VALD_SHA index f2e31ad..642f640 100644 --- a/VALD_SHA +++ b/VALD_SHA @@ -1 +1 @@ -8efecb2b3dfe862e65fad0e392efabc02db1b91b +8e9e9e371ebfaf50be8045b010b3e3bdd06419f5 diff --git a/index.d.ts b/index.d.ts index a972b18..886bb7f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,9 @@ -import v1_vald = require("./src/vald/v1/vald"); import v1_agent_core = require("./src/vald/v1/agent/core"); +import v1_vald = require("./src/vald/v1/vald"); import v1_payload = require("./src/vald/v1/payload"); declare const _default: { - v1_vald: typeof v1_vald, v1_agent_core: typeof v1_agent_core, + v1_vald: typeof v1_vald, v1_payload: typeof v1_payload, }; export = _default; diff --git a/index.js b/index.js index aee5097..19afa58 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ -module.exports.v1_vald = require("./src/vald/v1/vald"); module.exports.v1_agent_core = require("./src/vald/v1/agent/core"); +module.exports.v1_vald = require("./src/vald/v1/vald"); module.exports.v1_payload = require("./src/vald/v1/payload"); diff --git a/package-lock.json b/package-lock.json index 59bf7ca..ac22e41 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vald-client-node", - "version": "1.7.6", + "version": "1.7.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vald-client-node", - "version": "1.7.6", + "version": "1.7.7", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.9.3", diff --git a/package.json b/package.json index 0ebbfc8..1099a5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vald-client-node", - "version": "1.7.6", + "version": "1.7.7", "description": "A gRPC client library for Vald", "main": "index.js", "types": "index.d.ts", diff --git a/src/vald/v1/agent/core/agent_grpc_pb.js b/src/vald/v1/agent/core/agent_grpc_pb.js index a3036f3..e113142 100644 --- a/src/vald/v1/agent/core/agent_grpc_pb.js +++ b/src/vald/v1/agent/core/agent_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/vald/v1/payload/payload_pb.d.ts b/src/vald/v1/payload/payload_pb.d.ts index 3bd3c5c..cce84f8 100644 --- a/src/vald/v1/payload/payload_pb.d.ts +++ b/src/vald/v1/payload/payload_pb.d.ts @@ -4,6 +4,7 @@ import * as jspb from "google-protobuf"; import * as validate_validate_pb from "../../../validate/validate_pb"; import * as google_rpc_status_pb from "../../../google/rpc/status_pb"; +import * as vtproto_ext_pb from "../../../vtproto/ext_pb"; export class Search extends jspb.Message { serializeBinary(): Uint8Array; @@ -915,6 +916,63 @@ export namespace Remove { } } + export class TimestampRequest extends jspb.Message { + clearTimestampsList(): void; + getTimestampsList(): Array; + setTimestampsList(value: Array): void; + addTimestamps(value?: Remove.Timestamp, index?: number): Remove.Timestamp; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TimestampRequest.AsObject; + static toObject(includeInstance: boolean, msg: TimestampRequest): TimestampRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TimestampRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TimestampRequest; + static deserializeBinaryFromReader(message: TimestampRequest, reader: jspb.BinaryReader): TimestampRequest; + } + + export namespace TimestampRequest { + export type AsObject = { + timestampsList: Array, + } + } + + export class Timestamp extends jspb.Message { + getTimestamp(): number; + setTimestamp(value: number): void; + + getOperator(): Remove.Timestamp.OperatorMap[keyof Remove.Timestamp.OperatorMap]; + setOperator(value: Remove.Timestamp.OperatorMap[keyof Remove.Timestamp.OperatorMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Timestamp.AsObject; + static toObject(includeInstance: boolean, msg: Timestamp): Timestamp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Timestamp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Timestamp; + static deserializeBinaryFromReader(message: Timestamp, reader: jspb.BinaryReader): Timestamp; + } + + export namespace Timestamp { + export type AsObject = { + timestamp: number, + operator: Remove.Timestamp.OperatorMap[keyof Remove.Timestamp.OperatorMap], + } + + export interface OperatorMap { + EQ: 0; + NE: 1; + GE: 2; + GT: 3; + LE: 4; + LT: 5; + } + + export const Operator: OperatorMap; + } + export class Config extends jspb.Message { getSkipStrictExistCheck(): boolean; setSkipStrictExistCheck(value: boolean): void; @@ -1093,6 +1151,9 @@ export namespace Object { setVectorList(value: Array): void; addVector(value: number, index?: number): number; + getTimestamp(): number; + setTimestamp(value: number): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Vector.AsObject; static toObject(includeInstance: boolean, msg: Vector): Vector.AsObject; @@ -1107,6 +1168,7 @@ export namespace Object { export type AsObject = { id: string, vectorList: Array, + timestamp: number, } } @@ -1342,6 +1404,73 @@ export namespace Object { locationsList: Array, } } + + export class List extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): List.AsObject; + static toObject(includeInstance: boolean, msg: List): List.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: List, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): List; + static deserializeBinaryFromReader(message: List, reader: jspb.BinaryReader): List; + } + + export namespace List { + export type AsObject = { + } + + export class Request extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + } + } + + export class Response extends jspb.Message { + hasVector(): boolean; + clearVector(): void; + getVector(): Object.Vector | undefined; + setVector(value?: Object.Vector): void; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): google_rpc_status_pb.Status | undefined; + setStatus(value?: google_rpc_status_pb.Status): void; + + getPayloadCase(): Response.PayloadCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + vector?: Object.Vector.AsObject, + status?: google_rpc_status_pb.Status.AsObject, + } + + export enum PayloadCase { + PAYLOAD_NOT_SET = 0, + VECTOR = 1, + STATUS = 2, + } + } + } } export class Control extends jspb.Message { diff --git a/src/vald/v1/payload/payload_pb.js b/src/vald/v1/payload/payload_pb.js index 313a078..ac753bd 100644 --- a/src/vald/v1/payload/payload_pb.js +++ b/src/vald/v1/payload/payload_pb.js @@ -25,6 +25,8 @@ var validate_validate_pb = require('../../../validate/validate_pb.js'); goog.object.extend(proto, validate_validate_pb); var google_rpc_status_pb = require('../../../google/rpc/status_pb.js'); goog.object.extend(proto, google_rpc_status_pb); +var vtproto_ext_pb = require('../../../vtproto/ext_pb.js'); +goog.object.extend(proto, vtproto_ext_pb); goog.exportSymbol('proto.payload.v1.Control', null, global); goog.exportSymbol('proto.payload.v1.Control.CreateIndexRequest', null, global); goog.exportSymbol('proto.payload.v1.Discoverer', null, global); @@ -57,6 +59,10 @@ goog.exportSymbol('proto.payload.v1.Object.Blob', null, global); goog.exportSymbol('proto.payload.v1.Object.Distance', null, global); goog.exportSymbol('proto.payload.v1.Object.ID', null, global); goog.exportSymbol('proto.payload.v1.Object.IDs', null, global); +goog.exportSymbol('proto.payload.v1.Object.List', null, global); +goog.exportSymbol('proto.payload.v1.Object.List.Request', null, global); +goog.exportSymbol('proto.payload.v1.Object.List.Response', null, global); +goog.exportSymbol('proto.payload.v1.Object.List.Response.PayloadCase', null, global); goog.exportSymbol('proto.payload.v1.Object.Location', null, global); goog.exportSymbol('proto.payload.v1.Object.Locations', null, global); goog.exportSymbol('proto.payload.v1.Object.ReshapeVector', null, global); @@ -75,6 +81,9 @@ goog.exportSymbol('proto.payload.v1.Remove', null, global); goog.exportSymbol('proto.payload.v1.Remove.Config', null, global); goog.exportSymbol('proto.payload.v1.Remove.MultiRequest', null, global); goog.exportSymbol('proto.payload.v1.Remove.Request', null, global); +goog.exportSymbol('proto.payload.v1.Remove.Timestamp', null, global); +goog.exportSymbol('proto.payload.v1.Remove.Timestamp.Operator', null, global); +goog.exportSymbol('proto.payload.v1.Remove.TimestampRequest', null, global); goog.exportSymbol('proto.payload.v1.Search', null, global); goog.exportSymbol('proto.payload.v1.Search.AggregationAlgorithm', null, global); goog.exportSymbol('proto.payload.v1.Search.Config', null, global); @@ -835,6 +844,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.payload.v1.Remove.MultiRequest.displayName = 'proto.payload.v1.Remove.MultiRequest'; } +/** + * 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.payload.v1.Remove.TimestampRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.v1.Remove.TimestampRequest.repeatedFields_, null); +}; +goog.inherits(proto.payload.v1.Remove.TimestampRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.payload.v1.Remove.TimestampRequest.displayName = 'proto.payload.v1.Remove.TimestampRequest'; +} +/** + * 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.payload.v1.Remove.Timestamp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.payload.v1.Remove.Timestamp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.payload.v1.Remove.Timestamp.displayName = 'proto.payload.v1.Remove.Timestamp'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1171,6 +1222,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.payload.v1.Object.Locations.displayName = 'proto.payload.v1.Object.Locations'; } +/** + * 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.payload.v1.Object.List = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.payload.v1.Object.List, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.payload.v1.Object.List.displayName = 'proto.payload.v1.Object.List'; +} +/** + * 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.payload.v1.Object.List.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.payload.v1.Object.List.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.payload.v1.Object.List.Request.displayName = 'proto.payload.v1.Object.List.Request'; +} +/** + * 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.payload.v1.Object.List.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.payload.v1.Object.List.Response.oneofGroups_); +}; +goog.inherits(proto.payload.v1.Object.List.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.payload.v1.Object.List.Response.displayName = 'proto.payload.v1.Object.List.Response'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -7983,6 +8097,13 @@ proto.payload.v1.Remove.MultiRequest.prototype.clearRequestsList = function() { +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.payload.v1.Remove.TimestampRequest.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7998,8 +8119,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Remove.Config.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Remove.Config.toObject(opt_includeInstance, this); +proto.payload.v1.Remove.TimestampRequest.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Remove.TimestampRequest.toObject(opt_includeInstance, this); }; @@ -8008,14 +8129,14 @@ proto.payload.v1.Remove.Config.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Remove.Config} msg The msg instance to transform. + * @param {!proto.payload.v1.Remove.TimestampRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Remove.Config.toObject = function(includeInstance, msg) { +proto.payload.v1.Remove.TimestampRequest.toObject = function(includeInstance, msg) { var f, obj = { - skipStrictExistCheck: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0) + timestampsList: jspb.Message.toObjectList(msg.getTimestampsList(), + proto.payload.v1.Remove.Timestamp.toObject, includeInstance) }; if (includeInstance) { @@ -8029,23 +8150,23 @@ proto.payload.v1.Remove.Config.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Remove.Config} + * @return {!proto.payload.v1.Remove.TimestampRequest} */ -proto.payload.v1.Remove.Config.deserializeBinary = function(bytes) { +proto.payload.v1.Remove.TimestampRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Remove.Config; - return proto.payload.v1.Remove.Config.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Remove.TimestampRequest; + return proto.payload.v1.Remove.TimestampRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Remove.Config} msg The message object to deserialize into. + * @param {!proto.payload.v1.Remove.TimestampRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Remove.Config} + * @return {!proto.payload.v1.Remove.TimestampRequest} */ -proto.payload.v1.Remove.Config.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Remove.TimestampRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8053,12 +8174,9 @@ proto.payload.v1.Remove.Config.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSkipStrictExistCheck(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimestamp(value); + var value = new proto.payload.v1.Remove.Timestamp; + reader.readMessage(value,proto.payload.v1.Remove.Timestamp.deserializeBinaryFromReader); + msg.addTimestamps(value); break; default: reader.skipField(); @@ -8073,9 +8191,9 @@ proto.payload.v1.Remove.Config.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Remove.Config.prototype.serializeBinary = function() { +proto.payload.v1.Remove.TimestampRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Remove.Config.serializeBinaryToWriter(this, writer); + proto.payload.v1.Remove.TimestampRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8083,62 +8201,58 @@ proto.payload.v1.Remove.Config.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Remove.Config} message + * @param {!proto.payload.v1.Remove.TimestampRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Remove.Config.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Remove.TimestampRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSkipStrictExistCheck(); - if (f) { - writer.writeBool( + f = message.getTimestampsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, - f - ); - } - f = message.getTimestamp(); - if (f !== 0) { - writer.writeInt64( - 3, - f + f, + proto.payload.v1.Remove.Timestamp.serializeBinaryToWriter ); } }; /** - * optional bool skip_strict_exist_check = 1; - * @return {boolean} + * repeated Timestamp timestamps = 1; + * @return {!Array} */ -proto.payload.v1.Remove.Config.prototype.getSkipStrictExistCheck = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.payload.v1.Remove.TimestampRequest.prototype.getTimestampsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.payload.v1.Remove.Timestamp, 1)); }; /** - * @param {boolean} value - * @return {!proto.payload.v1.Remove.Config} returns this - */ -proto.payload.v1.Remove.Config.prototype.setSkipStrictExistCheck = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + * @param {!Array} value + * @return {!proto.payload.v1.Remove.TimestampRequest} returns this +*/ +proto.payload.v1.Remove.TimestampRequest.prototype.setTimestampsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional int64 timestamp = 3; - * @return {number} + * @param {!proto.payload.v1.Remove.Timestamp=} opt_value + * @param {number=} opt_index + * @return {!proto.payload.v1.Remove.Timestamp} */ -proto.payload.v1.Remove.Config.prototype.getTimestamp = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.payload.v1.Remove.TimestampRequest.prototype.addTimestamps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payload.v1.Remove.Timestamp, opt_index); }; /** - * @param {number} value - * @return {!proto.payload.v1.Remove.Config} returns this + * Clears the list making it empty but non-null. + * @return {!proto.payload.v1.Remove.TimestampRequest} returns this */ -proto.payload.v1.Remove.Config.prototype.setTimestamp = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.payload.v1.Remove.TimestampRequest.prototype.clearTimestampsList = function() { + return this.setTimestampsList([]); }; @@ -8158,8 +8272,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.toObject(opt_includeInstance, this); +proto.payload.v1.Remove.Timestamp.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Remove.Timestamp.toObject(opt_includeInstance, this); }; @@ -8168,13 +8282,14 @@ proto.payload.v1.Object.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object} msg The msg instance to transform. + * @param {!proto.payload.v1.Remove.Timestamp} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.toObject = function(includeInstance, msg) { +proto.payload.v1.Remove.Timestamp.toObject = function(includeInstance, msg) { var f, obj = { - + timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), + operator: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -8188,29 +8303,37 @@ proto.payload.v1.Object.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object} + * @return {!proto.payload.v1.Remove.Timestamp} */ -proto.payload.v1.Object.deserializeBinary = function(bytes) { +proto.payload.v1.Remove.Timestamp.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object; - return proto.payload.v1.Object.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Remove.Timestamp; + return proto.payload.v1.Remove.Timestamp.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object} msg The message object to deserialize into. + * @param {!proto.payload.v1.Remove.Timestamp} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object} + * @return {!proto.payload.v1.Remove.Timestamp} */ -proto.payload.v1.Object.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Remove.Timestamp.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.setTimestamp(value); + break; + case 2: + var value = /** @type {!proto.payload.v1.Remove.Timestamp.Operator} */ (reader.readEnum()); + msg.setOperator(value); + break; default: reader.skipField(); break; @@ -8224,9 +8347,9 @@ proto.payload.v1.Object.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.prototype.serializeBinary = function() { +proto.payload.v1.Remove.Timestamp.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.serializeBinaryToWriter(this, writer); + proto.payload.v1.Remove.Timestamp.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8234,12 +8357,74 @@ proto.payload.v1.Object.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object} message + * @param {!proto.payload.v1.Remove.Timestamp} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Remove.Timestamp.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getOperator(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.payload.v1.Remove.Timestamp.Operator = { + EQ: 0, + NE: 1, + GE: 2, + GT: 3, + LE: 4, + LT: 5 +}; + +/** + * optional int64 timestamp = 1; + * @return {number} + */ +proto.payload.v1.Remove.Timestamp.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.payload.v1.Remove.Timestamp} returns this + */ +proto.payload.v1.Remove.Timestamp.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional Operator operator = 2; + * @return {!proto.payload.v1.Remove.Timestamp.Operator} + */ +proto.payload.v1.Remove.Timestamp.prototype.getOperator = function() { + return /** @type {!proto.payload.v1.Remove.Timestamp.Operator} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.payload.v1.Remove.Timestamp.Operator} value + * @return {!proto.payload.v1.Remove.Timestamp} returns this + */ +proto.payload.v1.Remove.Timestamp.prototype.setOperator = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; @@ -8259,8 +8444,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.VectorRequest.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.VectorRequest.toObject(opt_includeInstance, this); +proto.payload.v1.Remove.Config.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Remove.Config.toObject(opt_includeInstance, this); }; @@ -8269,14 +8454,14 @@ proto.payload.v1.Object.VectorRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.VectorRequest} msg The msg instance to transform. + * @param {!proto.payload.v1.Remove.Config} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.VectorRequest.toObject = function(includeInstance, msg) { +proto.payload.v1.Remove.Config.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && proto.payload.v1.Object.ID.toObject(includeInstance, f), - filters: (f = msg.getFilters()) && proto.payload.v1.Filter.Config.toObject(includeInstance, f) + skipStrictExistCheck: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -8290,23 +8475,23 @@ proto.payload.v1.Object.VectorRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.VectorRequest} + * @return {!proto.payload.v1.Remove.Config} */ -proto.payload.v1.Object.VectorRequest.deserializeBinary = function(bytes) { +proto.payload.v1.Remove.Config.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.VectorRequest; - return proto.payload.v1.Object.VectorRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Remove.Config; + return proto.payload.v1.Remove.Config.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.VectorRequest} msg The message object to deserialize into. + * @param {!proto.payload.v1.Remove.Config} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.VectorRequest} + * @return {!proto.payload.v1.Remove.Config} */ -proto.payload.v1.Object.VectorRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Remove.Config.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8314,14 +8499,12 @@ proto.payload.v1.Object.VectorRequest.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.payload.v1.Object.ID; - reader.readMessage(value,proto.payload.v1.Object.ID.deserializeBinaryFromReader); - msg.setId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSkipStrictExistCheck(value); break; - case 2: - var value = new proto.payload.v1.Filter.Config; - reader.readMessage(value,proto.payload.v1.Filter.Config.deserializeBinaryFromReader); - msg.setFilters(value); + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); break; default: reader.skipField(); @@ -8336,7 +8519,270 @@ proto.payload.v1.Object.VectorRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.VectorRequest.prototype.serializeBinary = function() { +proto.payload.v1.Remove.Config.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.payload.v1.Remove.Config.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.payload.v1.Remove.Config} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Remove.Config.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSkipStrictExistCheck(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } +}; + + +/** + * optional bool skip_strict_exist_check = 1; + * @return {boolean} + */ +proto.payload.v1.Remove.Config.prototype.getSkipStrictExistCheck = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.payload.v1.Remove.Config} returns this + */ +proto.payload.v1.Remove.Config.prototype.setSkipStrictExistCheck = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional int64 timestamp = 3; + * @return {number} + */ +proto.payload.v1.Remove.Config.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.payload.v1.Remove.Config} returns this + */ +proto.payload.v1.Remove.Config.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(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_, 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.payload.v1.Object.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.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.payload.v1.Object} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.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.payload.v1.Object} + */ +proto.payload.v1.Object.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.payload.v1.Object; + return proto.payload.v1.Object.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.payload.v1.Object} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.payload.v1.Object} + */ +proto.payload.v1.Object.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.payload.v1.Object.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.payload.v1.Object.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.payload.v1.Object} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.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_, 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.payload.v1.Object.VectorRequest.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.VectorRequest.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.payload.v1.Object.VectorRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.VectorRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && proto.payload.v1.Object.ID.toObject(includeInstance, f), + filters: (f = msg.getFilters()) && proto.payload.v1.Filter.Config.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.payload.v1.Object.VectorRequest} + */ +proto.payload.v1.Object.VectorRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.payload.v1.Object.VectorRequest; + return proto.payload.v1.Object.VectorRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.payload.v1.Object.VectorRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.payload.v1.Object.VectorRequest} + */ +proto.payload.v1.Object.VectorRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.payload.v1.Object.ID; + reader.readMessage(value,proto.payload.v1.Object.ID.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = new proto.payload.v1.Filter.Config; + reader.readMessage(value,proto.payload.v1.Filter.Config.deserializeBinaryFromReader); + msg.setFilters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.payload.v1.Object.VectorRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.payload.v1.Object.VectorRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); @@ -8346,56 +8792,444 @@ proto.payload.v1.Object.VectorRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.VectorRequest} message + * @param {!proto.payload.v1.Object.VectorRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.VectorRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.payload.v1.Object.ID.serializeBinaryToWriter + ); + } + f = message.getFilters(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.payload.v1.Filter.Config.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ID id = 1; + * @return {?proto.payload.v1.Object.ID} + */ +proto.payload.v1.Object.VectorRequest.prototype.getId = function() { + return /** @type{?proto.payload.v1.Object.ID} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Object.ID, 1)); +}; + + +/** + * @param {?proto.payload.v1.Object.ID|undefined} value + * @return {!proto.payload.v1.Object.VectorRequest} returns this +*/ +proto.payload.v1.Object.VectorRequest.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.VectorRequest} returns this + */ +proto.payload.v1.Object.VectorRequest.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.payload.v1.Object.VectorRequest.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Filter.Config filters = 2; + * @return {?proto.payload.v1.Filter.Config} + */ +proto.payload.v1.Object.VectorRequest.prototype.getFilters = function() { + return /** @type{?proto.payload.v1.Filter.Config} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Filter.Config, 2)); +}; + + +/** + * @param {?proto.payload.v1.Filter.Config|undefined} value + * @return {!proto.payload.v1.Object.VectorRequest} returns this +*/ +proto.payload.v1.Object.VectorRequest.prototype.setFilters = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.VectorRequest} returns this + */ +proto.payload.v1.Object.VectorRequest.prototype.clearFilters = function() { + return this.setFilters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.payload.v1.Object.VectorRequest.prototype.hasFilters = function() { + return jspb.Message.getField(this, 2) != 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_, 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.payload.v1.Object.Distance.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.Distance.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.payload.v1.Object.Distance} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.Distance.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + distance: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.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.payload.v1.Object.Distance} + */ +proto.payload.v1.Object.Distance.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.payload.v1.Object.Distance; + return proto.payload.v1.Object.Distance.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.payload.v1.Object.Distance} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.payload.v1.Object.Distance} + */ +proto.payload.v1.Object.Distance.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 {number} */ (reader.readFloat()); + msg.setDistance(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.payload.v1.Object.Distance.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.payload.v1.Object.Distance.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.payload.v1.Object.Distance} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.Distance.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDistance(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.payload.v1.Object.Distance.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.payload.v1.Object.Distance} returns this + */ +proto.payload.v1.Object.Distance.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional float distance = 2; + * @return {number} + */ +proto.payload.v1.Object.Distance.prototype.getDistance = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.payload.v1.Object.Distance} returns this + */ +proto.payload.v1.Object.Distance.prototype.setDistance = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.payload.v1.Object.StreamDistance.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.payload.v1.Object.StreamDistance.PayloadCase = { + PAYLOAD_NOT_SET: 0, + DISTANCE: 1, + STATUS: 2 +}; + +/** + * @return {proto.payload.v1.Object.StreamDistance.PayloadCase} + */ +proto.payload.v1.Object.StreamDistance.prototype.getPayloadCase = function() { + return /** @type {proto.payload.v1.Object.StreamDistance.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamDistance.oneofGroups_[0])); +}; + + + +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_, 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.payload.v1.Object.StreamDistance.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.StreamDistance.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.payload.v1.Object.StreamDistance} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.payload.v1.Object.StreamDistance.toObject = function(includeInstance, msg) { + var f, obj = { + distance: (f = msg.getDistance()) && proto.payload.v1.Object.Distance.toObject(includeInstance, f), + status: (f = msg.getStatus()) && google_rpc_status_pb.Status.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.payload.v1.Object.StreamDistance} + */ +proto.payload.v1.Object.StreamDistance.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.payload.v1.Object.StreamDistance; + return proto.payload.v1.Object.StreamDistance.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.payload.v1.Object.StreamDistance} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.payload.v1.Object.StreamDistance} + */ +proto.payload.v1.Object.StreamDistance.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.payload.v1.Object.Distance; + reader.readMessage(value,proto.payload.v1.Object.Distance.deserializeBinaryFromReader); + msg.setDistance(value); + break; + case 2: + var value = new google_rpc_status_pb.Status; + reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.payload.v1.Object.StreamDistance.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.payload.v1.Object.StreamDistance.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.payload.v1.Object.StreamDistance} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.VectorRequest.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.StreamDistance.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getDistance(); if (f != null) { writer.writeMessage( 1, f, - proto.payload.v1.Object.ID.serializeBinaryToWriter + proto.payload.v1.Object.Distance.serializeBinaryToWriter ); } - f = message.getFilters(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 2, f, - proto.payload.v1.Filter.Config.serializeBinaryToWriter + google_rpc_status_pb.Status.serializeBinaryToWriter ); } }; /** - * optional ID id = 1; - * @return {?proto.payload.v1.Object.ID} + * optional Distance distance = 1; + * @return {?proto.payload.v1.Object.Distance} */ -proto.payload.v1.Object.VectorRequest.prototype.getId = function() { - return /** @type{?proto.payload.v1.Object.ID} */ ( - jspb.Message.getWrapperField(this, proto.payload.v1.Object.ID, 1)); +proto.payload.v1.Object.StreamDistance.prototype.getDistance = function() { + return /** @type{?proto.payload.v1.Object.Distance} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Object.Distance, 1)); }; /** - * @param {?proto.payload.v1.Object.ID|undefined} value - * @return {!proto.payload.v1.Object.VectorRequest} returns this + * @param {?proto.payload.v1.Object.Distance|undefined} value + * @return {!proto.payload.v1.Object.StreamDistance} returns this */ -proto.payload.v1.Object.VectorRequest.prototype.setId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.payload.v1.Object.StreamDistance.prototype.setDistance = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamDistance.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.VectorRequest} returns this + * @return {!proto.payload.v1.Object.StreamDistance} returns this */ -proto.payload.v1.Object.VectorRequest.prototype.clearId = function() { - return this.setId(undefined); +proto.payload.v1.Object.StreamDistance.prototype.clearDistance = function() { + return this.setDistance(undefined); }; @@ -8403,36 +9237,36 @@ proto.payload.v1.Object.VectorRequest.prototype.clearId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.payload.v1.Object.VectorRequest.prototype.hasId = function() { +proto.payload.v1.Object.StreamDistance.prototype.hasDistance = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Filter.Config filters = 2; - * @return {?proto.payload.v1.Filter.Config} + * optional google.rpc.Status status = 2; + * @return {?proto.google.rpc.Status} */ -proto.payload.v1.Object.VectorRequest.prototype.getFilters = function() { - return /** @type{?proto.payload.v1.Filter.Config} */ ( - jspb.Message.getWrapperField(this, proto.payload.v1.Filter.Config, 2)); +proto.payload.v1.Object.StreamDistance.prototype.getStatus = function() { + return /** @type{?proto.google.rpc.Status} */ ( + jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); }; /** - * @param {?proto.payload.v1.Filter.Config|undefined} value - * @return {!proto.payload.v1.Object.VectorRequest} returns this + * @param {?proto.google.rpc.Status|undefined} value + * @return {!proto.payload.v1.Object.StreamDistance} returns this */ -proto.payload.v1.Object.VectorRequest.prototype.setFilters = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.payload.v1.Object.StreamDistance.prototype.setStatus = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamDistance.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.VectorRequest} returns this + * @return {!proto.payload.v1.Object.StreamDistance} returns this */ -proto.payload.v1.Object.VectorRequest.prototype.clearFilters = function() { - return this.setFilters(undefined); +proto.payload.v1.Object.StreamDistance.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -8440,7 +9274,7 @@ proto.payload.v1.Object.VectorRequest.prototype.clearFilters = function() { * Returns whether this field is set. * @return {boolean} */ -proto.payload.v1.Object.VectorRequest.prototype.hasFilters = function() { +proto.payload.v1.Object.StreamDistance.prototype.hasStatus = function() { return jspb.Message.getField(this, 2) != null; }; @@ -8461,8 +9295,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.Distance.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.Distance.toObject(opt_includeInstance, this); +proto.payload.v1.Object.ID.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.ID.toObject(opt_includeInstance, this); }; @@ -8471,14 +9305,13 @@ proto.payload.v1.Object.Distance.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.Distance} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.ID} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Distance.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.ID.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - distance: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) + id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -8492,23 +9325,23 @@ proto.payload.v1.Object.Distance.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.Distance} + * @return {!proto.payload.v1.Object.ID} */ -proto.payload.v1.Object.Distance.deserializeBinary = function(bytes) { +proto.payload.v1.Object.ID.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.Distance; - return proto.payload.v1.Object.Distance.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.ID; + return proto.payload.v1.Object.ID.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.Distance} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.ID} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.Distance} + * @return {!proto.payload.v1.Object.ID} */ -proto.payload.v1.Object.Distance.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.ID.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8519,10 +9352,6 @@ proto.payload.v1.Object.Distance.deserializeBinaryFromReader = function(msg, rea var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setDistance(value); - break; default: reader.skipField(); break; @@ -8536,9 +9365,9 @@ proto.payload.v1.Object.Distance.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.Distance.prototype.serializeBinary = function() { +proto.payload.v1.Object.ID.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.Distance.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.ID.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8546,11 +9375,11 @@ proto.payload.v1.Object.Distance.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.Distance} message + * @param {!proto.payload.v1.Object.ID} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Distance.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.ID.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -8559,13 +9388,6 @@ proto.payload.v1.Object.Distance.serializeBinaryToWriter = function(message, wri f ); } - f = message.getDistance(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } }; @@ -8573,64 +9395,27 @@ proto.payload.v1.Object.Distance.serializeBinaryToWriter = function(message, wri * optional string id = 1; * @return {string} */ -proto.payload.v1.Object.Distance.prototype.getId = function() { +proto.payload.v1.Object.ID.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.payload.v1.Object.Distance} returns this + * @return {!proto.payload.v1.Object.ID} returns this */ -proto.payload.v1.Object.Distance.prototype.setId = function(value) { +proto.payload.v1.Object.ID.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional float distance = 2; - * @return {number} - */ -proto.payload.v1.Object.Distance.prototype.getDistance = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.payload.v1.Object.Distance} returns this - */ -proto.payload.v1.Object.Distance.prototype.setDistance = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - /** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} + * List of repeated fields within this message type. + * @private {!Array} * @const */ -proto.payload.v1.Object.StreamDistance.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.payload.v1.Object.StreamDistance.PayloadCase = { - PAYLOAD_NOT_SET: 0, - DISTANCE: 1, - STATUS: 2 -}; - -/** - * @return {proto.payload.v1.Object.StreamDistance.PayloadCase} - */ -proto.payload.v1.Object.StreamDistance.prototype.getPayloadCase = function() { - return /** @type {proto.payload.v1.Object.StreamDistance.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamDistance.oneofGroups_[0])); -}; +proto.payload.v1.Object.IDs.repeatedFields_ = [1]; @@ -8647,8 +9432,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.StreamDistance.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.StreamDistance.toObject(opt_includeInstance, this); +proto.payload.v1.Object.IDs.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.IDs.toObject(opt_includeInstance, this); }; @@ -8657,14 +9442,13 @@ proto.payload.v1.Object.StreamDistance.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.StreamDistance} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.IDs} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamDistance.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.IDs.toObject = function(includeInstance, msg) { var f, obj = { - distance: (f = msg.getDistance()) && proto.payload.v1.Object.Distance.toObject(includeInstance, f), - status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) + idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -8678,23 +9462,23 @@ proto.payload.v1.Object.StreamDistance.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.StreamDistance} + * @return {!proto.payload.v1.Object.IDs} */ -proto.payload.v1.Object.StreamDistance.deserializeBinary = function(bytes) { +proto.payload.v1.Object.IDs.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.StreamDistance; - return proto.payload.v1.Object.StreamDistance.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.IDs; + return proto.payload.v1.Object.IDs.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.StreamDistance} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.IDs} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.StreamDistance} + * @return {!proto.payload.v1.Object.IDs} */ -proto.payload.v1.Object.StreamDistance.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.IDs.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8702,137 +9486,92 @@ proto.payload.v1.Object.StreamDistance.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.payload.v1.Object.Distance; - reader.readMessage(value,proto.payload.v1.Object.Distance.deserializeBinaryFromReader); - msg.setDistance(value); - break; - case 2: - var value = new google_rpc_status_pb.Status; - reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); break; default: reader.skipField(); break; } } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.payload.v1.Object.StreamDistance.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.StreamDistance.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.StreamDistance} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.payload.v1.Object.StreamDistance.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDistance(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.payload.v1.Object.Distance.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_rpc_status_pb.Status.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Distance distance = 1; - * @return {?proto.payload.v1.Object.Distance} - */ -proto.payload.v1.Object.StreamDistance.prototype.getDistance = function() { - return /** @type{?proto.payload.v1.Object.Distance} */ ( - jspb.Message.getWrapperField(this, proto.payload.v1.Object.Distance, 1)); + return msg; }; /** - * @param {?proto.payload.v1.Object.Distance|undefined} value - * @return {!proto.payload.v1.Object.StreamDistance} returns this -*/ -proto.payload.v1.Object.StreamDistance.prototype.setDistance = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamDistance.oneofGroups_[0], value); + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.payload.v1.Object.IDs.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.payload.v1.Object.IDs.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamDistance} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.payload.v1.Object.IDs} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamDistance.prototype.clearDistance = function() { - return this.setDistance(undefined); +proto.payload.v1.Object.IDs.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } }; /** - * Returns whether this field is set. - * @return {boolean} + * repeated string ids = 1; + * @return {!Array} */ -proto.payload.v1.Object.StreamDistance.prototype.hasDistance = function() { - return jspb.Message.getField(this, 1) != null; +proto.payload.v1.Object.IDs.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** - * optional google.rpc.Status status = 2; - * @return {?proto.google.rpc.Status} + * @param {!Array} value + * @return {!proto.payload.v1.Object.IDs} returns this */ -proto.payload.v1.Object.StreamDistance.prototype.getStatus = function() { - return /** @type{?proto.google.rpc.Status} */ ( - jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); +proto.payload.v1.Object.IDs.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {?proto.google.rpc.Status|undefined} value - * @return {!proto.payload.v1.Object.StreamDistance} returns this -*/ -proto.payload.v1.Object.StreamDistance.prototype.setStatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamDistance.oneofGroups_[0], value); + * @param {string} value + * @param {number=} opt_index + * @return {!proto.payload.v1.Object.IDs} returns this + */ +proto.payload.v1.Object.IDs.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamDistance} returns this + * Clears the list making it empty but non-null. + * @return {!proto.payload.v1.Object.IDs} returns this */ -proto.payload.v1.Object.StreamDistance.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.payload.v1.Object.IDs.prototype.clearIdsList = function() { + return this.setIdsList([]); }; + /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.payload.v1.Object.StreamDistance.prototype.hasStatus = function() { - return jspb.Message.getField(this, 2) != null; -}; - - +proto.payload.v1.Object.Vector.repeatedFields_ = [2]; @@ -8849,8 +9588,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.ID.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.ID.toObject(opt_includeInstance, this); +proto.payload.v1.Object.Vector.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.Vector.toObject(opt_includeInstance, this); }; @@ -8859,13 +9598,15 @@ proto.payload.v1.Object.ID.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.ID} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.Vector} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.ID.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.Vector.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + vectorList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, + timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -8879,23 +9620,23 @@ proto.payload.v1.Object.ID.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.ID} + * @return {!proto.payload.v1.Object.Vector} */ -proto.payload.v1.Object.ID.deserializeBinary = function(bytes) { +proto.payload.v1.Object.Vector.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.ID; - return proto.payload.v1.Object.ID.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.Vector; + return proto.payload.v1.Object.Vector.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.ID} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.Vector} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.ID} + * @return {!proto.payload.v1.Object.Vector} */ -proto.payload.v1.Object.ID.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.Vector.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8906,6 +9647,16 @@ proto.payload.v1.Object.ID.deserializeBinaryFromReader = function(msg, reader) { var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addVector(values[i]); + } + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setTimestamp(value); + break; default: reader.skipField(); break; @@ -8919,9 +9670,9 @@ proto.payload.v1.Object.ID.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.ID.prototype.serializeBinary = function() { +proto.payload.v1.Object.Vector.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.ID.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.Vector.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8929,11 +9680,11 @@ proto.payload.v1.Object.ID.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.ID} message + * @param {!proto.payload.v1.Object.Vector} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.ID.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.Vector.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -8942,6 +9693,20 @@ proto.payload.v1.Object.ID.serializeBinaryToWriter = function(message, writer) { f ); } + f = message.getVectorList(); + if (f.length > 0) { + writer.writePackedFloat( + 2, + f + ); + } + f = message.getTimestamp(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } }; @@ -8949,27 +9714,82 @@ proto.payload.v1.Object.ID.serializeBinaryToWriter = function(message, writer) { * optional string id = 1; * @return {string} */ -proto.payload.v1.Object.ID.prototype.getId = function() { +proto.payload.v1.Object.Vector.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.payload.v1.Object.ID} returns this + * @return {!proto.payload.v1.Object.Vector} returns this */ -proto.payload.v1.Object.ID.prototype.setId = function(value) { +proto.payload.v1.Object.Vector.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; +/** + * repeated float vector = 2; + * @return {!Array} + */ +proto.payload.v1.Object.Vector.prototype.getVectorList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.payload.v1.Object.Vector} returns this + */ +proto.payload.v1.Object.Vector.prototype.setVectorList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.payload.v1.Object.Vector} returns this + */ +proto.payload.v1.Object.Vector.prototype.addVector = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.payload.v1.Object.Vector} returns this + */ +proto.payload.v1.Object.Vector.prototype.clearVectorList = function() { + return this.setVectorList([]); +}; + + +/** + * optional int64 timestamp = 3; + * @return {number} + */ +proto.payload.v1.Object.Vector.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.payload.v1.Object.Vector} returns this + */ +proto.payload.v1.Object.Vector.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.payload.v1.Object.IDs.repeatedFields_ = [1]; +proto.payload.v1.Object.Vectors.repeatedFields_ = [1]; @@ -8986,8 +9806,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.IDs.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.IDs.toObject(opt_includeInstance, this); +proto.payload.v1.Object.Vectors.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.Vectors.toObject(opt_includeInstance, this); }; @@ -8996,13 +9816,14 @@ proto.payload.v1.Object.IDs.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.IDs} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.Vectors} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.IDs.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.Vectors.toObject = function(includeInstance, msg) { var f, obj = { - idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + vectorsList: jspb.Message.toObjectList(msg.getVectorsList(), + proto.payload.v1.Object.Vector.toObject, includeInstance) }; if (includeInstance) { @@ -9016,23 +9837,23 @@ proto.payload.v1.Object.IDs.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.IDs} + * @return {!proto.payload.v1.Object.Vectors} */ -proto.payload.v1.Object.IDs.deserializeBinary = function(bytes) { +proto.payload.v1.Object.Vectors.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.IDs; - return proto.payload.v1.Object.IDs.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.Vectors; + return proto.payload.v1.Object.Vectors.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.IDs} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.Vectors} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.IDs} + * @return {!proto.payload.v1.Object.Vectors} */ -proto.payload.v1.Object.IDs.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.Vectors.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9040,8 +9861,9 @@ proto.payload.v1.Object.IDs.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + var value = new proto.payload.v1.Object.Vector; + reader.readMessage(value,proto.payload.v1.Object.Vector.deserializeBinaryFromReader); + msg.addVectors(value); break; default: reader.skipField(); @@ -9056,9 +9878,9 @@ proto.payload.v1.Object.IDs.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.IDs.prototype.serializeBinary = function() { +proto.payload.v1.Object.Vectors.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.IDs.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.Vectors.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9066,66 +9888,87 @@ proto.payload.v1.Object.IDs.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.IDs} message + * @param {!proto.payload.v1.Object.Vectors} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.IDs.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.Vectors.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getIdsList(); + f = message.getVectorsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 1, - f + f, + proto.payload.v1.Object.Vector.serializeBinaryToWriter ); } }; /** - * repeated string ids = 1; - * @return {!Array} + * repeated Vector vectors = 1; + * @return {!Array} */ -proto.payload.v1.Object.IDs.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +proto.payload.v1.Object.Vectors.prototype.getVectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.payload.v1.Object.Vector, 1)); }; /** - * @param {!Array} value - * @return {!proto.payload.v1.Object.IDs} returns this - */ -proto.payload.v1.Object.IDs.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 1, value || []); + * @param {!Array} value + * @return {!proto.payload.v1.Object.Vectors} returns this +*/ +proto.payload.v1.Object.Vectors.prototype.setVectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * @param {string} value + * @param {!proto.payload.v1.Object.Vector=} opt_value * @param {number=} opt_index - * @return {!proto.payload.v1.Object.IDs} returns this + * @return {!proto.payload.v1.Object.Vector} */ -proto.payload.v1.Object.IDs.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +proto.payload.v1.Object.Vectors.prototype.addVectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payload.v1.Object.Vector, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.payload.v1.Object.IDs} returns this + * @return {!proto.payload.v1.Object.Vectors} returns this */ -proto.payload.v1.Object.IDs.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.payload.v1.Object.Vectors.prototype.clearVectorsList = function() { + return this.setVectorsList([]); }; /** - * List of repeated fields within this message type. - * @private {!Array} + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} * @const */ -proto.payload.v1.Object.Vector.repeatedFields_ = [2]; +proto.payload.v1.Object.StreamVector.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.payload.v1.Object.StreamVector.PayloadCase = { + PAYLOAD_NOT_SET: 0, + VECTOR: 1, + STATUS: 2 +}; + +/** + * @return {proto.payload.v1.Object.StreamVector.PayloadCase} + */ +proto.payload.v1.Object.StreamVector.prototype.getPayloadCase = function() { + return /** @type {proto.payload.v1.Object.StreamVector.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamVector.oneofGroups_[0])); +}; @@ -9142,8 +9985,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.Vector.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.Vector.toObject(opt_includeInstance, this); +proto.payload.v1.Object.StreamVector.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.StreamVector.toObject(opt_includeInstance, this); }; @@ -9152,14 +9995,14 @@ proto.payload.v1.Object.Vector.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.Vector} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.StreamVector} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Vector.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.StreamVector.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - vectorList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f + vector: (f = msg.getVector()) && proto.payload.v1.Object.Vector.toObject(includeInstance, f), + status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) }; if (includeInstance) { @@ -9173,23 +10016,23 @@ proto.payload.v1.Object.Vector.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.Vector} + * @return {!proto.payload.v1.Object.StreamVector} */ -proto.payload.v1.Object.Vector.deserializeBinary = function(bytes) { +proto.payload.v1.Object.StreamVector.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.Vector; - return proto.payload.v1.Object.Vector.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.StreamVector; + return proto.payload.v1.Object.StreamVector.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.Vector} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.StreamVector} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.Vector} + * @return {!proto.payload.v1.Object.StreamVector} */ -proto.payload.v1.Object.Vector.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.StreamVector.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9197,14 +10040,14 @@ proto.payload.v1.Object.Vector.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto.payload.v1.Object.Vector; + reader.readMessage(value,proto.payload.v1.Object.Vector.deserializeBinaryFromReader); + msg.setVector(value); break; case 2: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addVector(values[i]); - } + var value = new google_rpc_status_pb.Status; + reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; default: reader.skipField(); @@ -9219,9 +10062,9 @@ proto.payload.v1.Object.Vector.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.Vector.prototype.serializeBinary = function() { +proto.payload.v1.Object.StreamVector.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.Vector.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.StreamVector.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9229,81 +10072,102 @@ proto.payload.v1.Object.Vector.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.Vector} message + * @param {!proto.payload.v1.Object.StreamVector} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Vector.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.StreamVector.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getVector(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.payload.v1.Object.Vector.serializeBinaryToWriter ); } - f = message.getVectorList(); - if (f.length > 0) { - writer.writePackedFloat( + f = message.getStatus(); + if (f != null) { + writer.writeMessage( 2, - f + f, + google_rpc_status_pb.Status.serializeBinaryToWriter ); } }; /** - * optional string id = 1; - * @return {string} + * optional Vector vector = 1; + * @return {?proto.payload.v1.Object.Vector} */ -proto.payload.v1.Object.Vector.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.payload.v1.Object.StreamVector.prototype.getVector = function() { + return /** @type{?proto.payload.v1.Object.Vector} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Object.Vector, 1)); }; /** - * @param {string} value - * @return {!proto.payload.v1.Object.Vector} returns this + * @param {?proto.payload.v1.Object.Vector|undefined} value + * @return {!proto.payload.v1.Object.StreamVector} returns this +*/ +proto.payload.v1.Object.StreamVector.prototype.setVector = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamVector.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.StreamVector} returns this */ -proto.payload.v1.Object.Vector.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.payload.v1.Object.StreamVector.prototype.clearVector = function() { + return this.setVector(undefined); }; /** - * repeated float vector = 2; - * @return {!Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.payload.v1.Object.Vector.prototype.getVectorList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); +proto.payload.v1.Object.StreamVector.prototype.hasVector = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {!Array} value - * @return {!proto.payload.v1.Object.Vector} returns this + * optional google.rpc.Status status = 2; + * @return {?proto.google.rpc.Status} */ -proto.payload.v1.Object.Vector.prototype.setVectorList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.payload.v1.Object.StreamVector.prototype.getStatus = function() { + return /** @type{?proto.google.rpc.Status} */ ( + jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.payload.v1.Object.Vector} returns this + * @param {?proto.google.rpc.Status|undefined} value + * @return {!proto.payload.v1.Object.StreamVector} returns this +*/ +proto.payload.v1.Object.StreamVector.prototype.setStatus = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamVector.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.StreamVector} returns this */ -proto.payload.v1.Object.Vector.prototype.addVector = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.payload.v1.Object.StreamVector.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.payload.v1.Object.Vector} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.payload.v1.Object.Vector.prototype.clearVectorList = function() { - return this.setVectorList([]); +proto.payload.v1.Object.StreamVector.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -9313,7 +10177,7 @@ proto.payload.v1.Object.Vector.prototype.clearVectorList = function() { * @private {!Array} * @const */ -proto.payload.v1.Object.Vectors.repeatedFields_ = [1]; +proto.payload.v1.Object.ReshapeVector.repeatedFields_ = [2]; @@ -9330,8 +10194,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.Vectors.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.Vectors.toObject(opt_includeInstance, this); +proto.payload.v1.Object.ReshapeVector.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.ReshapeVector.toObject(opt_includeInstance, this); }; @@ -9340,14 +10204,14 @@ proto.payload.v1.Object.Vectors.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.Vectors} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.ReshapeVector} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Vectors.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.ReshapeVector.toObject = function(includeInstance, msg) { var f, obj = { - vectorsList: jspb.Message.toObjectList(msg.getVectorsList(), - proto.payload.v1.Object.Vector.toObject, includeInstance) + object: msg.getObject_asB64(), + shapeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -9361,23 +10225,23 @@ proto.payload.v1.Object.Vectors.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.Vectors} + * @return {!proto.payload.v1.Object.ReshapeVector} */ -proto.payload.v1.Object.Vectors.deserializeBinary = function(bytes) { +proto.payload.v1.Object.ReshapeVector.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.Vectors; - return proto.payload.v1.Object.Vectors.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.ReshapeVector; + return proto.payload.v1.Object.ReshapeVector.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.Vectors} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.ReshapeVector} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.Vectors} + * @return {!proto.payload.v1.Object.ReshapeVector} */ -proto.payload.v1.Object.Vectors.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.ReshapeVector.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9385,9 +10249,14 @@ proto.payload.v1.Object.Vectors.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.payload.v1.Object.Vector; - reader.readMessage(value,proto.payload.v1.Object.Vector.deserializeBinaryFromReader); - msg.addVectors(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setObject(value); + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addShape(values[i]); + } break; default: reader.skipField(); @@ -9402,9 +10271,9 @@ proto.payload.v1.Object.Vectors.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.Vectors.prototype.serializeBinary = function() { +proto.payload.v1.Object.ReshapeVector.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.Vectors.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.ReshapeVector.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9412,90 +10281,111 @@ proto.payload.v1.Object.Vectors.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.Vectors} message + * @param {!proto.payload.v1.Object.ReshapeVector} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Vectors.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.ReshapeVector.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getVectorsList(); + f = message.getObject_asU8(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeBytes( 1, - f, - proto.payload.v1.Object.Vector.serializeBinaryToWriter + f + ); + } + f = message.getShapeList(); + if (f.length > 0) { + writer.writePackedInt32( + 2, + f ); } }; /** - * repeated Vector vectors = 1; - * @return {!Array} + * optional bytes object = 1; + * @return {!(string|Uint8Array)} + */ +proto.payload.v1.Object.ReshapeVector.prototype.getObject = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes object = 1; + * This is a type-conversion wrapper around `getObject()` + * @return {string} + */ +proto.payload.v1.Object.ReshapeVector.prototype.getObject_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getObject())); +}; + + +/** + * optional bytes object = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getObject()` + * @return {!Uint8Array} */ -proto.payload.v1.Object.Vectors.prototype.getVectorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.payload.v1.Object.Vector, 1)); +proto.payload.v1.Object.ReshapeVector.prototype.getObject_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getObject())); }; /** - * @param {!Array} value - * @return {!proto.payload.v1.Object.Vectors} returns this -*/ -proto.payload.v1.Object.Vectors.prototype.setVectorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {!(string|Uint8Array)} value + * @return {!proto.payload.v1.Object.ReshapeVector} returns this + */ +proto.payload.v1.Object.ReshapeVector.prototype.setObject = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; /** - * @param {!proto.payload.v1.Object.Vector=} opt_value - * @param {number=} opt_index - * @return {!proto.payload.v1.Object.Vector} + * repeated int32 shape = 2; + * @return {!Array} */ -proto.payload.v1.Object.Vectors.prototype.addVectors = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payload.v1.Object.Vector, opt_index); +proto.payload.v1.Object.ReshapeVector.prototype.getShapeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.payload.v1.Object.Vectors} returns this + * @param {!Array} value + * @return {!proto.payload.v1.Object.ReshapeVector} returns this */ -proto.payload.v1.Object.Vectors.prototype.clearVectorsList = function() { - return this.setVectorsList([]); +proto.payload.v1.Object.ReshapeVector.prototype.setShapeList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.payload.v1.Object.StreamVector.oneofGroups_ = [[1,2]]; - /** - * @enum {number} + * @param {number} value + * @param {number=} opt_index + * @return {!proto.payload.v1.Object.ReshapeVector} returns this */ -proto.payload.v1.Object.StreamVector.PayloadCase = { - PAYLOAD_NOT_SET: 0, - VECTOR: 1, - STATUS: 2 +proto.payload.v1.Object.ReshapeVector.prototype.addShape = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; + /** - * @return {proto.payload.v1.Object.StreamVector.PayloadCase} + * Clears the list making it empty but non-null. + * @return {!proto.payload.v1.Object.ReshapeVector} returns this */ -proto.payload.v1.Object.StreamVector.prototype.getPayloadCase = function() { - return /** @type {proto.payload.v1.Object.StreamVector.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamVector.oneofGroups_[0])); +proto.payload.v1.Object.ReshapeVector.prototype.clearShapeList = function() { + return this.setShapeList([]); }; + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -9509,8 +10399,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.StreamVector.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.StreamVector.toObject(opt_includeInstance, this); +proto.payload.v1.Object.Blob.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.Blob.toObject(opt_includeInstance, this); }; @@ -9519,14 +10409,14 @@ proto.payload.v1.Object.StreamVector.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.StreamVector} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.Blob} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamVector.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.Blob.toObject = function(includeInstance, msg) { var f, obj = { - vector: (f = msg.getVector()) && proto.payload.v1.Object.Vector.toObject(includeInstance, f), - status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + object: msg.getObject_asB64() }; if (includeInstance) { @@ -9540,23 +10430,23 @@ proto.payload.v1.Object.StreamVector.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.StreamVector} + * @return {!proto.payload.v1.Object.Blob} */ -proto.payload.v1.Object.StreamVector.deserializeBinary = function(bytes) { +proto.payload.v1.Object.Blob.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.StreamVector; - return proto.payload.v1.Object.StreamVector.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.Blob; + return proto.payload.v1.Object.Blob.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.StreamVector} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.Blob} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.StreamVector} + * @return {!proto.payload.v1.Object.Blob} */ -proto.payload.v1.Object.StreamVector.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.Blob.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9564,14 +10454,12 @@ proto.payload.v1.Object.StreamVector.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.payload.v1.Object.Vector; - reader.readMessage(value,proto.payload.v1.Object.Vector.deserializeBinaryFromReader); - msg.setVector(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = new google_rpc_status_pb.Status; - reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setObject(value); break; default: reader.skipField(); @@ -9586,9 +10474,9 @@ proto.payload.v1.Object.StreamVector.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.StreamVector.prototype.serializeBinary = function() { +proto.payload.v1.Object.Blob.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.StreamVector.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.Blob.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9596,112 +10484,115 @@ proto.payload.v1.Object.StreamVector.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.StreamVector} message + * @param {!proto.payload.v1.Object.Blob} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamVector.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.Blob.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getVector(); - if (f != null) { - writer.writeMessage( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto.payload.v1.Object.Vector.serializeBinaryToWriter + f ); } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( + f = message.getObject_asU8(); + if (f.length > 0) { + writer.writeBytes( 2, - f, - google_rpc_status_pb.Status.serializeBinaryToWriter + f ); } }; /** - * optional Vector vector = 1; - * @return {?proto.payload.v1.Object.Vector} + * optional string id = 1; + * @return {string} */ -proto.payload.v1.Object.StreamVector.prototype.getVector = function() { - return /** @type{?proto.payload.v1.Object.Vector} */ ( - jspb.Message.getWrapperField(this, proto.payload.v1.Object.Vector, 1)); +proto.payload.v1.Object.Blob.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.payload.v1.Object.Vector|undefined} value - * @return {!proto.payload.v1.Object.StreamVector} returns this -*/ -proto.payload.v1.Object.StreamVector.prototype.setVector = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamVector.oneofGroups_[0], value); + * @param {string} value + * @return {!proto.payload.v1.Object.Blob} returns this + */ +proto.payload.v1.Object.Blob.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamVector} returns this + * optional bytes object = 2; + * @return {!(string|Uint8Array)} */ -proto.payload.v1.Object.StreamVector.prototype.clearVector = function() { - return this.setVector(undefined); +proto.payload.v1.Object.Blob.prototype.getObject = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional bytes object = 2; + * This is a type-conversion wrapper around `getObject()` + * @return {string} */ -proto.payload.v1.Object.StreamVector.prototype.hasVector = function() { - return jspb.Message.getField(this, 1) != null; +proto.payload.v1.Object.Blob.prototype.getObject_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getObject())); }; /** - * optional google.rpc.Status status = 2; - * @return {?proto.google.rpc.Status} + * optional bytes object = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getObject()` + * @return {!Uint8Array} */ -proto.payload.v1.Object.StreamVector.prototype.getStatus = function() { - return /** @type{?proto.google.rpc.Status} */ ( - jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); +proto.payload.v1.Object.Blob.prototype.getObject_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getObject())); }; /** - * @param {?proto.google.rpc.Status|undefined} value - * @return {!proto.payload.v1.Object.StreamVector} returns this -*/ -proto.payload.v1.Object.StreamVector.prototype.setStatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamVector.oneofGroups_[0], value); + * @param {!(string|Uint8Array)} value + * @return {!proto.payload.v1.Object.Blob} returns this + */ +proto.payload.v1.Object.Blob.prototype.setObject = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; + /** - * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamVector} returns this + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.payload.v1.Object.StreamVector.prototype.clearStatus = function() { - return this.setStatus(undefined); -}; - +proto.payload.v1.Object.StreamBlob.oneofGroups_ = [[1,2]]; /** - * Returns whether this field is set. - * @return {boolean} + * @enum {number} */ -proto.payload.v1.Object.StreamVector.prototype.hasStatus = function() { - return jspb.Message.getField(this, 2) != null; +proto.payload.v1.Object.StreamBlob.PayloadCase = { + PAYLOAD_NOT_SET: 0, + BLOB: 1, + STATUS: 2 }; - - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @return {proto.payload.v1.Object.StreamBlob.PayloadCase} */ -proto.payload.v1.Object.ReshapeVector.repeatedFields_ = [2]; +proto.payload.v1.Object.StreamBlob.prototype.getPayloadCase = function() { + return /** @type {proto.payload.v1.Object.StreamBlob.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamBlob.oneofGroups_[0])); +}; @@ -9718,8 +10609,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.ReshapeVector.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.ReshapeVector.toObject(opt_includeInstance, this); +proto.payload.v1.Object.StreamBlob.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.StreamBlob.toObject(opt_includeInstance, this); }; @@ -9728,14 +10619,14 @@ proto.payload.v1.Object.ReshapeVector.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.ReshapeVector} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.StreamBlob} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.ReshapeVector.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.StreamBlob.toObject = function(includeInstance, msg) { var f, obj = { - object: msg.getObject_asB64(), - shapeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + blob: (f = msg.getBlob()) && proto.payload.v1.Object.Blob.toObject(includeInstance, f), + status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) }; if (includeInstance) { @@ -9749,38 +10640,38 @@ proto.payload.v1.Object.ReshapeVector.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.ReshapeVector} + * @return {!proto.payload.v1.Object.StreamBlob} */ -proto.payload.v1.Object.ReshapeVector.deserializeBinary = function(bytes) { +proto.payload.v1.Object.StreamBlob.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.ReshapeVector; - return proto.payload.v1.Object.ReshapeVector.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.StreamBlob; + return proto.payload.v1.Object.StreamBlob.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.ReshapeVector} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.StreamBlob} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.ReshapeVector} + * @return {!proto.payload.v1.Object.StreamBlob} */ -proto.payload.v1.Object.ReshapeVector.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.StreamBlob.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setObject(value); + case 1: + var value = new proto.payload.v1.Object.Blob; + reader.readMessage(value,proto.payload.v1.Object.Blob.deserializeBinaryFromReader); + msg.setBlob(value); break; case 2: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); - for (var i = 0; i < values.length; i++) { - msg.addShape(values[i]); - } + var value = new google_rpc_status_pb.Status; + reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; default: reader.skipField(); @@ -9795,9 +10686,9 @@ proto.payload.v1.Object.ReshapeVector.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.ReshapeVector.prototype.serializeBinary = function() { +proto.payload.v1.Object.StreamBlob.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.ReshapeVector.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.StreamBlob.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9805,109 +10696,113 @@ proto.payload.v1.Object.ReshapeVector.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.ReshapeVector} message + * @param {!proto.payload.v1.Object.StreamBlob} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.ReshapeVector.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.StreamBlob.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getObject_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getBlob(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.payload.v1.Object.Blob.serializeBinaryToWriter ); } - f = message.getShapeList(); - if (f.length > 0) { - writer.writePackedInt32( + f = message.getStatus(); + if (f != null) { + writer.writeMessage( 2, - f + f, + google_rpc_status_pb.Status.serializeBinaryToWriter ); } }; /** - * optional bytes object = 1; - * @return {!(string|Uint8Array)} + * optional Blob blob = 1; + * @return {?proto.payload.v1.Object.Blob} */ -proto.payload.v1.Object.ReshapeVector.prototype.getObject = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.payload.v1.Object.StreamBlob.prototype.getBlob = function() { + return /** @type{?proto.payload.v1.Object.Blob} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Object.Blob, 1)); }; /** - * optional bytes object = 1; - * This is a type-conversion wrapper around `getObject()` - * @return {string} - */ -proto.payload.v1.Object.ReshapeVector.prototype.getObject_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getObject())); + * @param {?proto.payload.v1.Object.Blob|undefined} value + * @return {!proto.payload.v1.Object.StreamBlob} returns this +*/ +proto.payload.v1.Object.StreamBlob.prototype.setBlob = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamBlob.oneofGroups_[0], value); }; /** - * optional bytes object = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getObject()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.StreamBlob} returns this */ -proto.payload.v1.Object.ReshapeVector.prototype.getObject_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getObject())); +proto.payload.v1.Object.StreamBlob.prototype.clearBlob = function() { + return this.setBlob(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.payload.v1.Object.ReshapeVector} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.payload.v1.Object.ReshapeVector.prototype.setObject = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.payload.v1.Object.StreamBlob.prototype.hasBlob = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * repeated int32 shape = 2; - * @return {!Array} + * optional google.rpc.Status status = 2; + * @return {?proto.google.rpc.Status} */ -proto.payload.v1.Object.ReshapeVector.prototype.getShapeList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.payload.v1.Object.StreamBlob.prototype.getStatus = function() { + return /** @type{?proto.google.rpc.Status} */ ( + jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); }; /** - * @param {!Array} value - * @return {!proto.payload.v1.Object.ReshapeVector} returns this - */ -proto.payload.v1.Object.ReshapeVector.prototype.setShapeList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {?proto.google.rpc.Status|undefined} value + * @return {!proto.payload.v1.Object.StreamBlob} returns this +*/ +proto.payload.v1.Object.StreamBlob.prototype.setStatus = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamBlob.oneofGroups_[0], value); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.payload.v1.Object.ReshapeVector} returns this + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.StreamBlob} returns this */ -proto.payload.v1.Object.ReshapeVector.prototype.addShape = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.payload.v1.Object.StreamBlob.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.payload.v1.Object.ReshapeVector} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.payload.v1.Object.ReshapeVector.prototype.clearShapeList = function() { - return this.setShapeList([]); +proto.payload.v1.Object.StreamBlob.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.payload.v1.Object.Location.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -9923,8 +10818,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.Blob.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.Blob.toObject(opt_includeInstance, this); +proto.payload.v1.Object.Location.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.Location.toObject(opt_includeInstance, this); }; @@ -9933,14 +10828,15 @@ proto.payload.v1.Object.Blob.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.Blob} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.Location} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Blob.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.Location.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - object: msg.getObject_asB64() + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + uuid: jspb.Message.getFieldWithDefault(msg, 2, ""), + ipsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -9954,23 +10850,23 @@ proto.payload.v1.Object.Blob.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.Blob} + * @return {!proto.payload.v1.Object.Location} */ -proto.payload.v1.Object.Blob.deserializeBinary = function(bytes) { +proto.payload.v1.Object.Location.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.Blob; - return proto.payload.v1.Object.Blob.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.Location; + return proto.payload.v1.Object.Location.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.Blob} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.Location} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.Blob} + * @return {!proto.payload.v1.Object.Location} */ -proto.payload.v1.Object.Blob.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.Location.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9979,11 +10875,15 @@ proto.payload.v1.Object.Blob.deserializeBinaryFromReader = function(msg, reader) switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setName(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setObject(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUuid(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addIps(value); break; default: reader.skipField(); @@ -9998,9 +10898,9 @@ proto.payload.v1.Object.Blob.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.Blob.prototype.serializeBinary = function() { +proto.payload.v1.Object.Location.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.Blob.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.Location.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10008,86 +10908,106 @@ proto.payload.v1.Object.Blob.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.Blob} message + * @param {!proto.payload.v1.Object.Location} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Blob.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.Location.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getObject_asU8(); + f = message.getUuid(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 2, f ); } + f = message.getIpsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } }; /** - * optional string id = 1; + * optional string name = 1; * @return {string} */ -proto.payload.v1.Object.Blob.prototype.getId = function() { +proto.payload.v1.Object.Location.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.payload.v1.Object.Blob} returns this + * @return {!proto.payload.v1.Object.Location} returns this */ -proto.payload.v1.Object.Blob.prototype.setId = function(value) { +proto.payload.v1.Object.Location.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes object = 2; - * @return {!(string|Uint8Array)} + * optional string uuid = 2; + * @return {string} */ -proto.payload.v1.Object.Blob.prototype.getObject = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.payload.v1.Object.Location.prototype.getUuid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional bytes object = 2; - * This is a type-conversion wrapper around `getObject()` - * @return {string} + * @param {string} value + * @return {!proto.payload.v1.Object.Location} returns this */ -proto.payload.v1.Object.Blob.prototype.getObject_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getObject())); +proto.payload.v1.Object.Location.prototype.setUuid = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional bytes object = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getObject()` - * @return {!Uint8Array} + * repeated string ips = 3; + * @return {!Array} */ -proto.payload.v1.Object.Blob.prototype.getObject_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getObject())); +proto.payload.v1.Object.Location.prototype.getIpsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.payload.v1.Object.Blob} returns this + * @param {!Array} value + * @return {!proto.payload.v1.Object.Location} returns this */ -proto.payload.v1.Object.Blob.prototype.setObject = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.payload.v1.Object.Location.prototype.setIpsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.payload.v1.Object.Location} returns this + */ +proto.payload.v1.Object.Location.prototype.addIps = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.payload.v1.Object.Location} returns this + */ +proto.payload.v1.Object.Location.prototype.clearIpsList = function() { + return this.setIpsList([]); }; @@ -10100,22 +11020,22 @@ proto.payload.v1.Object.Blob.prototype.setObject = function(value) { * @private {!Array>} * @const */ -proto.payload.v1.Object.StreamBlob.oneofGroups_ = [[1,2]]; +proto.payload.v1.Object.StreamLocation.oneofGroups_ = [[1,2]]; /** * @enum {number} */ -proto.payload.v1.Object.StreamBlob.PayloadCase = { +proto.payload.v1.Object.StreamLocation.PayloadCase = { PAYLOAD_NOT_SET: 0, - BLOB: 1, + LOCATION: 1, STATUS: 2 }; /** - * @return {proto.payload.v1.Object.StreamBlob.PayloadCase} + * @return {proto.payload.v1.Object.StreamLocation.PayloadCase} */ -proto.payload.v1.Object.StreamBlob.prototype.getPayloadCase = function() { - return /** @type {proto.payload.v1.Object.StreamBlob.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamBlob.oneofGroups_[0])); +proto.payload.v1.Object.StreamLocation.prototype.getPayloadCase = function() { + return /** @type {proto.payload.v1.Object.StreamLocation.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamLocation.oneofGroups_[0])); }; @@ -10133,8 +11053,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.StreamBlob.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.StreamBlob.toObject(opt_includeInstance, this); +proto.payload.v1.Object.StreamLocation.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.StreamLocation.toObject(opt_includeInstance, this); }; @@ -10143,13 +11063,13 @@ proto.payload.v1.Object.StreamBlob.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.StreamBlob} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.StreamLocation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamBlob.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.StreamLocation.toObject = function(includeInstance, msg) { var f, obj = { - blob: (f = msg.getBlob()) && proto.payload.v1.Object.Blob.toObject(includeInstance, f), + location: (f = msg.getLocation()) && proto.payload.v1.Object.Location.toObject(includeInstance, f), status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) }; @@ -10164,23 +11084,23 @@ proto.payload.v1.Object.StreamBlob.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.StreamBlob} + * @return {!proto.payload.v1.Object.StreamLocation} */ -proto.payload.v1.Object.StreamBlob.deserializeBinary = function(bytes) { +proto.payload.v1.Object.StreamLocation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.StreamBlob; - return proto.payload.v1.Object.StreamBlob.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.StreamLocation; + return proto.payload.v1.Object.StreamLocation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.StreamBlob} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.StreamLocation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.StreamBlob} + * @return {!proto.payload.v1.Object.StreamLocation} */ -proto.payload.v1.Object.StreamBlob.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.StreamLocation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10188,9 +11108,9 @@ proto.payload.v1.Object.StreamBlob.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.payload.v1.Object.Blob; - reader.readMessage(value,proto.payload.v1.Object.Blob.deserializeBinaryFromReader); - msg.setBlob(value); + var value = new proto.payload.v1.Object.Location; + reader.readMessage(value,proto.payload.v1.Object.Location.deserializeBinaryFromReader); + msg.setLocation(value); break; case 2: var value = new google_rpc_status_pb.Status; @@ -10210,9 +11130,9 @@ proto.payload.v1.Object.StreamBlob.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.StreamBlob.prototype.serializeBinary = function() { +proto.payload.v1.Object.StreamLocation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.StreamBlob.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.StreamLocation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10220,18 +11140,18 @@ proto.payload.v1.Object.StreamBlob.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.StreamBlob} message + * @param {!proto.payload.v1.Object.StreamLocation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamBlob.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.StreamLocation.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBlob(); + f = message.getLocation(); if (f != null) { writer.writeMessage( 1, f, - proto.payload.v1.Object.Blob.serializeBinaryToWriter + proto.payload.v1.Object.Location.serializeBinaryToWriter ); } f = message.getStatus(); @@ -10246,30 +11166,30 @@ proto.payload.v1.Object.StreamBlob.serializeBinaryToWriter = function(message, w /** - * optional Blob blob = 1; - * @return {?proto.payload.v1.Object.Blob} + * optional Location location = 1; + * @return {?proto.payload.v1.Object.Location} */ -proto.payload.v1.Object.StreamBlob.prototype.getBlob = function() { - return /** @type{?proto.payload.v1.Object.Blob} */ ( - jspb.Message.getWrapperField(this, proto.payload.v1.Object.Blob, 1)); +proto.payload.v1.Object.StreamLocation.prototype.getLocation = function() { + return /** @type{?proto.payload.v1.Object.Location} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Object.Location, 1)); }; /** - * @param {?proto.payload.v1.Object.Blob|undefined} value - * @return {!proto.payload.v1.Object.StreamBlob} returns this + * @param {?proto.payload.v1.Object.Location|undefined} value + * @return {!proto.payload.v1.Object.StreamLocation} returns this */ -proto.payload.v1.Object.StreamBlob.prototype.setBlob = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamBlob.oneofGroups_[0], value); +proto.payload.v1.Object.StreamLocation.prototype.setLocation = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamLocation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamBlob} returns this + * @return {!proto.payload.v1.Object.StreamLocation} returns this */ -proto.payload.v1.Object.StreamBlob.prototype.clearBlob = function() { - return this.setBlob(undefined); +proto.payload.v1.Object.StreamLocation.prototype.clearLocation = function() { + return this.setLocation(undefined); }; @@ -10277,7 +11197,7 @@ proto.payload.v1.Object.StreamBlob.prototype.clearBlob = function() { * Returns whether this field is set. * @return {boolean} */ -proto.payload.v1.Object.StreamBlob.prototype.hasBlob = function() { +proto.payload.v1.Object.StreamLocation.prototype.hasLocation = function() { return jspb.Message.getField(this, 1) != null; }; @@ -10286,7 +11206,7 @@ proto.payload.v1.Object.StreamBlob.prototype.hasBlob = function() { * optional google.rpc.Status status = 2; * @return {?proto.google.rpc.Status} */ -proto.payload.v1.Object.StreamBlob.prototype.getStatus = function() { +proto.payload.v1.Object.StreamLocation.prototype.getStatus = function() { return /** @type{?proto.google.rpc.Status} */ ( jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); }; @@ -10294,18 +11214,18 @@ proto.payload.v1.Object.StreamBlob.prototype.getStatus = function() { /** * @param {?proto.google.rpc.Status|undefined} value - * @return {!proto.payload.v1.Object.StreamBlob} returns this + * @return {!proto.payload.v1.Object.StreamLocation} returns this */ -proto.payload.v1.Object.StreamBlob.prototype.setStatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamBlob.oneofGroups_[0], value); +proto.payload.v1.Object.StreamLocation.prototype.setStatus = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamLocation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamBlob} returns this + * @return {!proto.payload.v1.Object.StreamLocation} returns this */ -proto.payload.v1.Object.StreamBlob.prototype.clearStatus = function() { +proto.payload.v1.Object.StreamLocation.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -10314,7 +11234,7 @@ proto.payload.v1.Object.StreamBlob.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.payload.v1.Object.StreamBlob.prototype.hasStatus = function() { +proto.payload.v1.Object.StreamLocation.prototype.hasStatus = function() { return jspb.Message.getField(this, 2) != null; }; @@ -10325,7 +11245,7 @@ proto.payload.v1.Object.StreamBlob.prototype.hasStatus = function() { * @private {!Array} * @const */ -proto.payload.v1.Object.Location.repeatedFields_ = [3]; +proto.payload.v1.Object.Locations.repeatedFields_ = [1]; @@ -10342,8 +11262,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.Location.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.Location.toObject(opt_includeInstance, this); +proto.payload.v1.Object.Locations.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.Locations.toObject(opt_includeInstance, this); }; @@ -10352,15 +11272,14 @@ proto.payload.v1.Object.Location.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.Location} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.Locations} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Location.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.Locations.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - uuid: jspb.Message.getFieldWithDefault(msg, 2, ""), - ipsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + locationsList: jspb.Message.toObjectList(msg.getLocationsList(), + proto.payload.v1.Object.Location.toObject, includeInstance) }; if (includeInstance) { @@ -10374,23 +11293,23 @@ proto.payload.v1.Object.Location.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.Location} + * @return {!proto.payload.v1.Object.Locations} */ -proto.payload.v1.Object.Location.deserializeBinary = function(bytes) { +proto.payload.v1.Object.Locations.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.Location; - return proto.payload.v1.Object.Location.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.Locations; + return proto.payload.v1.Object.Locations.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.Location} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.Locations} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.Location} + * @return {!proto.payload.v1.Object.Locations} */ -proto.payload.v1.Object.Location.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.Locations.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10398,16 +11317,9 @@ proto.payload.v1.Object.Location.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUuid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addIps(value); + var value = new proto.payload.v1.Object.Location; + reader.readMessage(value,proto.payload.v1.Object.Location.deserializeBinaryFromReader); + msg.addLocations(value); break; default: reader.skipField(); @@ -10422,9 +11334,9 @@ proto.payload.v1.Object.Location.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.Location.prototype.serializeBinary = function() { +proto.payload.v1.Object.Locations.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.Location.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.Locations.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10432,138 +11344,165 @@ proto.payload.v1.Object.Location.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.Location} message + * @param {!proto.payload.v1.Object.Locations} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Location.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.Locations.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); + f = message.getLocationsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 1, - f - ); - } - f = message.getUuid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIpsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f + f, + proto.payload.v1.Object.Location.serializeBinaryToWriter ); } }; /** - * optional string name = 1; - * @return {string} + * repeated Location locations = 1; + * @return {!Array} */ -proto.payload.v1.Object.Location.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.payload.v1.Object.Locations.prototype.getLocationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.payload.v1.Object.Location, 1)); }; /** - * @param {string} value - * @return {!proto.payload.v1.Object.Location} returns this - */ -proto.payload.v1.Object.Location.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + * @param {!Array} value + * @return {!proto.payload.v1.Object.Locations} returns this +*/ +proto.payload.v1.Object.Locations.prototype.setLocationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional string uuid = 2; - * @return {string} + * @param {!proto.payload.v1.Object.Location=} opt_value + * @param {number=} opt_index + * @return {!proto.payload.v1.Object.Location} */ -proto.payload.v1.Object.Location.prototype.getUuid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.payload.v1.Object.Locations.prototype.addLocations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payload.v1.Object.Location, opt_index); }; /** - * @param {string} value - * @return {!proto.payload.v1.Object.Location} returns this + * Clears the list making it empty but non-null. + * @return {!proto.payload.v1.Object.Locations} returns this */ -proto.payload.v1.Object.Location.prototype.setUuid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.payload.v1.Object.Locations.prototype.clearLocationsList = function() { + return this.setLocationsList([]); }; -/** - * repeated string ips = 3; - * @return {!Array} - */ -proto.payload.v1.Object.Location.prototype.getIpsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {!Array} value - * @return {!proto.payload.v1.Object.Location} returns this + * 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_, 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.payload.v1.Object.Location.prototype.setIpsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.payload.v1.Object.List.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.List.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.payload.v1.Object.Location} returns 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.payload.v1.Object.List} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Location.prototype.addIps = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.payload.v1.Object.List.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the list making it empty but non-null. - * @return {!proto.payload.v1.Object.Location} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.payload.v1.Object.List} */ -proto.payload.v1.Object.Location.prototype.clearIpsList = function() { - return this.setIpsList([]); +proto.payload.v1.Object.List.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.payload.v1.Object.List; + return proto.payload.v1.Object.List.deserializeBinaryFromReader(msg, reader); }; - /** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.payload.v1.Object.List} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.payload.v1.Object.List} */ -proto.payload.v1.Object.StreamLocation.oneofGroups_ = [[1,2]]; +proto.payload.v1.Object.List.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + /** - * @enum {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.payload.v1.Object.StreamLocation.PayloadCase = { - PAYLOAD_NOT_SET: 0, - LOCATION: 1, - STATUS: 2 +proto.payload.v1.Object.List.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.payload.v1.Object.List.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; + /** - * @return {proto.payload.v1.Object.StreamLocation.PayloadCase} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.payload.v1.Object.List} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamLocation.prototype.getPayloadCase = function() { - return /** @type {proto.payload.v1.Object.StreamLocation.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.StreamLocation.oneofGroups_[0])); +proto.payload.v1.Object.List.serializeBinaryToWriter = function(message, writer) { + var f = undefined; }; + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -10577,8 +11516,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.StreamLocation.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.StreamLocation.toObject(opt_includeInstance, this); +proto.payload.v1.Object.List.Request.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.List.Request.toObject(opt_includeInstance, this); }; @@ -10587,14 +11526,13 @@ proto.payload.v1.Object.StreamLocation.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.StreamLocation} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.List.Request} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamLocation.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.List.Request.toObject = function(includeInstance, msg) { var f, obj = { - location: (f = msg.getLocation()) && proto.payload.v1.Object.Location.toObject(includeInstance, f), - status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) + }; if (includeInstance) { @@ -10608,39 +11546,29 @@ proto.payload.v1.Object.StreamLocation.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.StreamLocation} + * @return {!proto.payload.v1.Object.List.Request} */ -proto.payload.v1.Object.StreamLocation.deserializeBinary = function(bytes) { +proto.payload.v1.Object.List.Request.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.StreamLocation; - return proto.payload.v1.Object.StreamLocation.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.List.Request; + return proto.payload.v1.Object.List.Request.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.StreamLocation} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.List.Request} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.StreamLocation} + * @return {!proto.payload.v1.Object.List.Request} */ -proto.payload.v1.Object.StreamLocation.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.List.Request.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new proto.payload.v1.Object.Location; - reader.readMessage(value,proto.payload.v1.Object.Location.deserializeBinaryFromReader); - msg.setLocation(value); - break; - case 2: - var value = new google_rpc_status_pb.Status; - reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; default: reader.skipField(); break; @@ -10654,9 +11582,9 @@ proto.payload.v1.Object.StreamLocation.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.StreamLocation.prototype.serializeBinary = function() { +proto.payload.v1.Object.List.Request.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.StreamLocation.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.List.Request.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10664,115 +11592,44 @@ proto.payload.v1.Object.StreamLocation.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.StreamLocation} message + * @param {!proto.payload.v1.Object.List.Request} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.StreamLocation.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.List.Request.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getLocation(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.payload.v1.Object.Location.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_rpc_status_pb.Status.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Location location = 1; - * @return {?proto.payload.v1.Object.Location} - */ -proto.payload.v1.Object.StreamLocation.prototype.getLocation = function() { - return /** @type{?proto.payload.v1.Object.Location} */ ( - jspb.Message.getWrapperField(this, proto.payload.v1.Object.Location, 1)); -}; - - -/** - * @param {?proto.payload.v1.Object.Location|undefined} value - * @return {!proto.payload.v1.Object.StreamLocation} returns this -*/ -proto.payload.v1.Object.StreamLocation.prototype.setLocation = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.StreamLocation.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamLocation} returns this - */ -proto.payload.v1.Object.StreamLocation.prototype.clearLocation = function() { - return this.setLocation(undefined); }; -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.payload.v1.Object.StreamLocation.prototype.hasLocation = function() { - return jspb.Message.getField(this, 1) != null; -}; - /** - * optional google.rpc.Status status = 2; - * @return {?proto.google.rpc.Status} + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.payload.v1.Object.StreamLocation.prototype.getStatus = function() { - return /** @type{?proto.google.rpc.Status} */ ( - jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); -}; - - -/** - * @param {?proto.google.rpc.Status|undefined} value - * @return {!proto.payload.v1.Object.StreamLocation} returns this -*/ -proto.payload.v1.Object.StreamLocation.prototype.setStatus = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.StreamLocation.oneofGroups_[0], value); -}; - +proto.payload.v1.Object.List.Response.oneofGroups_ = [[1,2]]; /** - * Clears the message field making it undefined. - * @return {!proto.payload.v1.Object.StreamLocation} returns this + * @enum {number} */ -proto.payload.v1.Object.StreamLocation.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.payload.v1.Object.List.Response.PayloadCase = { + PAYLOAD_NOT_SET: 0, + VECTOR: 1, + STATUS: 2 }; - /** - * Returns whether this field is set. - * @return {boolean} + * @return {proto.payload.v1.Object.List.Response.PayloadCase} */ -proto.payload.v1.Object.StreamLocation.prototype.hasStatus = function() { - return jspb.Message.getField(this, 2) != null; +proto.payload.v1.Object.List.Response.prototype.getPayloadCase = function() { + return /** @type {proto.payload.v1.Object.List.Response.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.payload.v1.Object.List.Response.oneofGroups_[0])); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.payload.v1.Object.Locations.repeatedFields_ = [1]; - - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -10786,8 +11643,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.payload.v1.Object.Locations.prototype.toObject = function(opt_includeInstance) { - return proto.payload.v1.Object.Locations.toObject(opt_includeInstance, this); +proto.payload.v1.Object.List.Response.prototype.toObject = function(opt_includeInstance) { + return proto.payload.v1.Object.List.Response.toObject(opt_includeInstance, this); }; @@ -10796,14 +11653,14 @@ proto.payload.v1.Object.Locations.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.payload.v1.Object.Locations} msg The msg instance to transform. + * @param {!proto.payload.v1.Object.List.Response} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Locations.toObject = function(includeInstance, msg) { +proto.payload.v1.Object.List.Response.toObject = function(includeInstance, msg) { var f, obj = { - locationsList: jspb.Message.toObjectList(msg.getLocationsList(), - proto.payload.v1.Object.Location.toObject, includeInstance) + vector: (f = msg.getVector()) && proto.payload.v1.Object.Vector.toObject(includeInstance, f), + status: (f = msg.getStatus()) && google_rpc_status_pb.Status.toObject(includeInstance, f) }; if (includeInstance) { @@ -10817,23 +11674,23 @@ proto.payload.v1.Object.Locations.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.payload.v1.Object.Locations} + * @return {!proto.payload.v1.Object.List.Response} */ -proto.payload.v1.Object.Locations.deserializeBinary = function(bytes) { +proto.payload.v1.Object.List.Response.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.payload.v1.Object.Locations; - return proto.payload.v1.Object.Locations.deserializeBinaryFromReader(msg, reader); + var msg = new proto.payload.v1.Object.List.Response; + return proto.payload.v1.Object.List.Response.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.payload.v1.Object.Locations} msg The message object to deserialize into. + * @param {!proto.payload.v1.Object.List.Response} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.payload.v1.Object.Locations} + * @return {!proto.payload.v1.Object.List.Response} */ -proto.payload.v1.Object.Locations.deserializeBinaryFromReader = function(msg, reader) { +proto.payload.v1.Object.List.Response.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10841,9 +11698,14 @@ proto.payload.v1.Object.Locations.deserializeBinaryFromReader = function(msg, re var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.payload.v1.Object.Location; - reader.readMessage(value,proto.payload.v1.Object.Location.deserializeBinaryFromReader); - msg.addLocations(value); + var value = new proto.payload.v1.Object.Vector; + reader.readMessage(value,proto.payload.v1.Object.Vector.deserializeBinaryFromReader); + msg.setVector(value); + break; + case 2: + var value = new google_rpc_status_pb.Status; + reader.readMessage(value,google_rpc_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; default: reader.skipField(); @@ -10858,9 +11720,9 @@ proto.payload.v1.Object.Locations.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.payload.v1.Object.Locations.prototype.serializeBinary = function() { +proto.payload.v1.Object.List.Response.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.payload.v1.Object.Locations.serializeBinaryToWriter(this, writer); + proto.payload.v1.Object.List.Response.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10868,58 +11730,102 @@ proto.payload.v1.Object.Locations.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.payload.v1.Object.Locations} message + * @param {!proto.payload.v1.Object.List.Response} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.payload.v1.Object.Locations.serializeBinaryToWriter = function(message, writer) { +proto.payload.v1.Object.List.Response.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getLocationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getVector(); + if (f != null) { + writer.writeMessage( 1, f, - proto.payload.v1.Object.Location.serializeBinaryToWriter + proto.payload.v1.Object.Vector.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_rpc_status_pb.Status.serializeBinaryToWriter ); } }; /** - * repeated Location locations = 1; - * @return {!Array} + * optional Vector vector = 1; + * @return {?proto.payload.v1.Object.Vector} */ -proto.payload.v1.Object.Locations.prototype.getLocationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.payload.v1.Object.Location, 1)); +proto.payload.v1.Object.List.Response.prototype.getVector = function() { + return /** @type{?proto.payload.v1.Object.Vector} */ ( + jspb.Message.getWrapperField(this, proto.payload.v1.Object.Vector, 1)); }; /** - * @param {!Array} value - * @return {!proto.payload.v1.Object.Locations} returns this + * @param {?proto.payload.v1.Object.Vector|undefined} value + * @return {!proto.payload.v1.Object.List.Response} returns this */ -proto.payload.v1.Object.Locations.prototype.setLocationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.payload.v1.Object.List.Response.prototype.setVector = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.payload.v1.Object.List.Response.oneofGroups_[0], value); }; /** - * @param {!proto.payload.v1.Object.Location=} opt_value - * @param {number=} opt_index - * @return {!proto.payload.v1.Object.Location} + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.List.Response} returns this */ -proto.payload.v1.Object.Locations.prototype.addLocations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payload.v1.Object.Location, opt_index); +proto.payload.v1.Object.List.Response.prototype.clearVector = function() { + return this.setVector(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.payload.v1.Object.Locations} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.payload.v1.Object.Locations.prototype.clearLocationsList = function() { - return this.setLocationsList([]); +proto.payload.v1.Object.List.Response.prototype.hasVector = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional google.rpc.Status status = 2; + * @return {?proto.google.rpc.Status} + */ +proto.payload.v1.Object.List.Response.prototype.getStatus = function() { + return /** @type{?proto.google.rpc.Status} */ ( + jspb.Message.getWrapperField(this, google_rpc_status_pb.Status, 2)); +}; + + +/** + * @param {?proto.google.rpc.Status|undefined} value + * @return {!proto.payload.v1.Object.List.Response} returns this +*/ +proto.payload.v1.Object.List.Response.prototype.setStatus = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.payload.v1.Object.List.Response.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.payload.v1.Object.List.Response} returns this + */ +proto.payload.v1.Object.List.Response.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.payload.v1.Object.List.Response.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; }; diff --git a/src/vald/v1/vald/filter_grpc_pb.js b/src/vald/v1/vald/filter_grpc_pb.js index 1329ad6..f7e812e 100644 --- a/src/vald/v1/vald/filter_grpc_pb.js +++ b/src/vald/v1/vald/filter_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/vald/v1/vald/insert_grpc_pb.js b/src/vald/v1/vald/insert_grpc_pb.js index 0bd83b3..f4fe3cb 100644 --- a/src/vald/v1/vald/insert_grpc_pb.js +++ b/src/vald/v1/vald/insert_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/vald/v1/vald/object_grpc_pb.d.ts b/src/vald/v1/vald/object_grpc_pb.d.ts index d1dc255..42de8c3 100644 --- a/src/vald/v1/vald/object_grpc_pb.d.ts +++ b/src/vald/v1/vald/object_grpc_pb.d.ts @@ -11,6 +11,7 @@ interface IObjectService extends grpc.ServiceDefinition; getObject: grpc.MethodDefinition; streamGetObject: grpc.MethodDefinition; + streamListObject: grpc.MethodDefinition; } export const ObjectService: IObjectService; @@ -25,4 +26,6 @@ export class ObjectClient extends grpc.Client { getObject(argument: vald_v1_payload_payload_pb.Object.VectorRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamGetObject(metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientDuplexStream; streamGetObject(metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientDuplexStream; + streamListObject(argument: vald_v1_payload_payload_pb.Object.List.Request, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; + streamListObject(argument: vald_v1_payload_payload_pb.Object.List.Request, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; } diff --git a/src/vald/v1/vald/object_grpc_pb.js b/src/vald/v1/vald/object_grpc_pb.js index a3e450d..5775c59 100644 --- a/src/vald/v1/vald/object_grpc_pb.js +++ b/src/vald/v1/vald/object_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 @@ -33,6 +33,28 @@ function deserialize_payload_v1_Object_ID(buffer_arg) { return vald_v1_payload_payload_pb.Object.ID.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_payload_v1_Object_List_Request(arg) { + if (!(arg instanceof vald_v1_payload_payload_pb.Object.List.Request)) { + throw new Error('Expected argument of type payload.v1.Object.List.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_payload_v1_Object_List_Request(buffer_arg) { + return vald_v1_payload_payload_pb.Object.List.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_payload_v1_Object_List_Response(arg) { + if (!(arg instanceof vald_v1_payload_payload_pb.Object.List.Response)) { + throw new Error('Expected argument of type payload.v1.Object.List.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_payload_v1_Object_List_Response(buffer_arg) { + return vald_v1_payload_payload_pb.Object.List.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_payload_v1_Object_StreamVector(arg) { if (!(arg instanceof vald_v1_payload_payload_pb.Object.StreamVector)) { throw new Error('Expected argument of type payload.v1.Object.StreamVector'); @@ -105,6 +127,18 @@ streamGetObject: { responseSerialize: serialize_payload_v1_Object_StreamVector, responseDeserialize: deserialize_payload_v1_Object_StreamVector, }, + // A method to get all the vectors with server streaming +streamListObject: { + path: '/vald.v1.Object/StreamListObject', + requestStream: false, + responseStream: true, + requestType: vald_v1_payload_payload_pb.Object.List.Request, + responseType: vald_v1_payload_payload_pb.Object.List.Response, + requestSerialize: serialize_payload_v1_Object_List_Request, + requestDeserialize: deserialize_payload_v1_Object_List_Request, + responseSerialize: serialize_payload_v1_Object_List_Response, + responseDeserialize: deserialize_payload_v1_Object_List_Response, + }, }; exports.ObjectClient = grpc.makeGenericClientConstructor(ObjectService); diff --git a/src/vald/v1/vald/remove_grpc_pb.d.ts b/src/vald/v1/vald/remove_grpc_pb.d.ts index 6393068..5a7ad56 100644 --- a/src/vald/v1/vald/remove_grpc_pb.d.ts +++ b/src/vald/v1/vald/remove_grpc_pb.d.ts @@ -9,6 +9,7 @@ import * as grpc from "@grpc/grpc-js"; interface IRemoveService extends grpc.ServiceDefinition { remove: grpc.MethodDefinition; + removeByTimestamp: grpc.MethodDefinition; streamRemove: grpc.MethodDefinition; multiRemove: grpc.MethodDefinition; } @@ -20,6 +21,9 @@ export class RemoveClient extends grpc.Client { remove(argument: vald_v1_payload_payload_pb.Remove.Request, callback: grpc.requestCallback): grpc.ClientUnaryCall; remove(argument: vald_v1_payload_payload_pb.Remove.Request, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; remove(argument: vald_v1_payload_payload_pb.Remove.Request, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + removeByTimestamp(argument: vald_v1_payload_payload_pb.Remove.TimestampRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + removeByTimestamp(argument: vald_v1_payload_payload_pb.Remove.TimestampRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + removeByTimestamp(argument: vald_v1_payload_payload_pb.Remove.TimestampRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; streamRemove(metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientDuplexStream; streamRemove(metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientDuplexStream; multiRemove(argument: vald_v1_payload_payload_pb.Remove.MultiRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; diff --git a/src/vald/v1/vald/remove_grpc_pb.js b/src/vald/v1/vald/remove_grpc_pb.js index 972ffcd..50d9cb7 100644 --- a/src/vald/v1/vald/remove_grpc_pb.js +++ b/src/vald/v1/vald/remove_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 @@ -77,6 +77,17 @@ function deserialize_payload_v1_Remove_Request(buffer_arg) { return vald_v1_payload_payload_pb.Remove.Request.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_payload_v1_Remove_TimestampRequest(arg) { + if (!(arg instanceof vald_v1_payload_payload_pb.Remove.TimestampRequest)) { + throw new Error('Expected argument of type payload.v1.Remove.TimestampRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_payload_v1_Remove_TimestampRequest(buffer_arg) { + return vald_v1_payload_payload_pb.Remove.TimestampRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + // Remove service provides ways to remove indexed vectors. var RemoveService = exports.RemoveService = { @@ -92,6 +103,18 @@ remove: { responseSerialize: serialize_payload_v1_Object_Location, responseDeserialize: deserialize_payload_v1_Object_Location, }, + // A method to remove an indexed vector based on timestamp. +removeByTimestamp: { + path: '/vald.v1.Remove/RemoveByTimestamp', + requestStream: false, + responseStream: false, + requestType: vald_v1_payload_payload_pb.Remove.TimestampRequest, + responseType: vald_v1_payload_payload_pb.Object.Locations, + requestSerialize: serialize_payload_v1_Remove_TimestampRequest, + requestDeserialize: deserialize_payload_v1_Remove_TimestampRequest, + responseSerialize: serialize_payload_v1_Object_Locations, + responseDeserialize: deserialize_payload_v1_Object_Locations, + }, // A method to remove multiple indexed vectors by bidirectional streaming. streamRemove: { path: '/vald.v1.Remove/StreamRemove', diff --git a/src/vald/v1/vald/search_grpc_pb.js b/src/vald/v1/vald/search_grpc_pb.js index 4ef0bd6..0d2b333 100644 --- a/src/vald/v1/vald/search_grpc_pb.js +++ b/src/vald/v1/vald/search_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/vald/v1/vald/update_grpc_pb.js b/src/vald/v1/vald/update_grpc_pb.js index 55cd6c3..5494f2a 100644 --- a/src/vald/v1/vald/update_grpc_pb.js +++ b/src/vald/v1/vald/update_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 diff --git a/src/vald/v1/vald/upsert_grpc_pb.js b/src/vald/v1/vald/upsert_grpc_pb.js index 838a4cc..e10b6fb 100644 --- a/src/vald/v1/vald/upsert_grpc_pb.js +++ b/src/vald/v1/vald/upsert_grpc_pb.js @@ -5,7 +5,7 @@ // Copyright (C) 2019-2023 vdaas.org vald team // // Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. +// You may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0