UNPKG

owltech

Version:
1,227 lines (1,080 loc) 300 kB
// Common aliases var $util = $protobuf.util; // Exported root namespace var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); $root.google = (function() { /** * Namespace google. * @exports google * @namespace */ var google = {}; google.protobuf = (function() { /** * Namespace protobuf. * @memberof google * @namespace */ var protobuf = {}; protobuf.Timestamp = (function() { /** * Properties of a Timestamp. * @memberof google.protobuf * @interface ITimestamp * @property {number|null} [seconds] Timestamp seconds * @property {number|null} [nanos] Timestamp nanos */ /** * Constructs a new Timestamp. * @memberof google.protobuf * @classdesc Represents a Timestamp. * @implements ITimestamp * @constructor * @param {google.protobuf.ITimestamp=} [properties] Properties to set */ function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * Timestamp seconds. * @member {number} seconds * @memberof google.protobuf.Timestamp * @instance */ Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** * Timestamp nanos. * @member {number} nanos * @memberof google.protobuf.Timestamp * @instance */ Timestamp.prototype.nanos = 0; return Timestamp; })(); protobuf.FileDescriptorSet = (function() { /** * Properties of a FileDescriptorSet. * @memberof google.protobuf * @interface IFileDescriptorSet * @property {Array.<google.protobuf.IFileDescriptorProto>|null} [file] FileDescriptorSet file */ /** * Constructs a new FileDescriptorSet. * @memberof google.protobuf * @classdesc Represents a FileDescriptorSet. * @implements IFileDescriptorSet * @constructor * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set */ function FileDescriptorSet(properties) { this.file = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FileDescriptorSet file. * @member {Array.<google.protobuf.IFileDescriptorProto>} file * @memberof google.protobuf.FileDescriptorSet * @instance */ FileDescriptorSet.prototype.file = $util.emptyArray; return FileDescriptorSet; })(); protobuf.FileDescriptorProto = (function() { /** * Properties of a FileDescriptorProto. * @memberof google.protobuf * @interface IFileDescriptorProto * @property {string|null} [name] FileDescriptorProto name * @property {string|null} ["package"] FileDescriptorProto package * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency * @property {Array.<number>|null} [publicDependency] FileDescriptorProto publicDependency * @property {Array.<number>|null} [weakDependency] FileDescriptorProto weakDependency * @property {Array.<google.protobuf.IDescriptorProto>|null} [messageType] FileDescriptorProto messageType * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] FileDescriptorProto enumType * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service * @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [extension] FileDescriptorProto extension * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax */ /** * Constructs a new FileDescriptorProto. * @memberof google.protobuf * @classdesc Represents a FileDescriptorProto. * @implements IFileDescriptorProto * @constructor * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set */ function FileDescriptorProto(properties) { this.dependency = []; this.publicDependency = []; this.weakDependency = []; this.messageType = []; this.enumType = []; this.service = []; this.extension = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FileDescriptorProto name. * @member {string} name * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.name = ""; /** * FileDescriptorProto package. * @member {string} package * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype["package"] = ""; /** * FileDescriptorProto dependency. * @member {Array.<string>} dependency * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.dependency = $util.emptyArray; /** * FileDescriptorProto publicDependency. * @member {Array.<number>} publicDependency * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.publicDependency = $util.emptyArray; /** * FileDescriptorProto weakDependency. * @member {Array.<number>} weakDependency * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.weakDependency = $util.emptyArray; /** * FileDescriptorProto messageType. * @member {Array.<google.protobuf.IDescriptorProto>} messageType * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.messageType = $util.emptyArray; /** * FileDescriptorProto enumType. * @member {Array.<google.protobuf.IEnumDescriptorProto>} enumType * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.enumType = $util.emptyArray; /** * FileDescriptorProto service. * @member {Array.<google.protobuf.IServiceDescriptorProto>} service * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.service = $util.emptyArray; /** * FileDescriptorProto extension. * @member {Array.<google.protobuf.IFieldDescriptorProto>} extension * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.extension = $util.emptyArray; /** * FileDescriptorProto options. * @member {google.protobuf.IFileOptions|null|undefined} options * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.options = null; /** * FileDescriptorProto sourceCodeInfo. * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.sourceCodeInfo = null; /** * FileDescriptorProto syntax. * @member {string} syntax * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.syntax = ""; return FileDescriptorProto; })(); protobuf.DescriptorProto = (function() { /** * Properties of a DescriptorProto. * @memberof google.protobuf * @interface IDescriptorProto * @property {string|null} [name] DescriptorProto name * @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [field] DescriptorProto field * @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [extension] DescriptorProto extension * @property {Array.<google.protobuf.IDescriptorProto>|null} [nestedType] DescriptorProto nestedType * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enumType] DescriptorProto enumType * @property {Array.<google.protobuf.DescriptorProto.IExtensionRange>|null} [extensionRange] DescriptorProto extensionRange * @property {Array.<google.protobuf.IOneofDescriptorProto>|null} [oneofDecl] DescriptorProto oneofDecl * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options * @property {Array.<google.protobuf.DescriptorProto.IReservedRange>|null} [reservedRange] DescriptorProto reservedRange * @property {Array.<string>|null} [reservedName] DescriptorProto reservedName */ /** * Constructs a new DescriptorProto. * @memberof google.protobuf * @classdesc Represents a DescriptorProto. * @implements IDescriptorProto * @constructor * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set */ function DescriptorProto(properties) { this.field = []; this.extension = []; this.nestedType = []; this.enumType = []; this.extensionRange = []; this.oneofDecl = []; this.reservedRange = []; this.reservedName = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * DescriptorProto name. * @member {string} name * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.name = ""; /** * DescriptorProto field. * @member {Array.<google.protobuf.IFieldDescriptorProto>} field * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.field = $util.emptyArray; /** * DescriptorProto extension. * @member {Array.<google.protobuf.IFieldDescriptorProto>} extension * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.extension = $util.emptyArray; /** * DescriptorProto nestedType. * @member {Array.<google.protobuf.IDescriptorProto>} nestedType * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.nestedType = $util.emptyArray; /** * DescriptorProto enumType. * @member {Array.<google.protobuf.IEnumDescriptorProto>} enumType * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.enumType = $util.emptyArray; /** * DescriptorProto extensionRange. * @member {Array.<google.protobuf.DescriptorProto.IExtensionRange>} extensionRange * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.extensionRange = $util.emptyArray; /** * DescriptorProto oneofDecl. * @member {Array.<google.protobuf.IOneofDescriptorProto>} oneofDecl * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.oneofDecl = $util.emptyArray; /** * DescriptorProto options. * @member {google.protobuf.IMessageOptions|null|undefined} options * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.options = null; /** * DescriptorProto reservedRange. * @member {Array.<google.protobuf.DescriptorProto.IReservedRange>} reservedRange * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.reservedRange = $util.emptyArray; /** * DescriptorProto reservedName. * @member {Array.<string>} reservedName * @memberof google.protobuf.DescriptorProto * @instance */ DescriptorProto.prototype.reservedName = $util.emptyArray; DescriptorProto.ExtensionRange = (function() { /** * Properties of an ExtensionRange. * @memberof google.protobuf.DescriptorProto * @interface IExtensionRange * @property {number|null} [start] ExtensionRange start * @property {number|null} [end] ExtensionRange end */ /** * Constructs a new ExtensionRange. * @memberof google.protobuf.DescriptorProto * @classdesc Represents an ExtensionRange. * @implements IExtensionRange * @constructor * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set */ function ExtensionRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * ExtensionRange start. * @member {number} start * @memberof google.protobuf.DescriptorProto.ExtensionRange * @instance */ ExtensionRange.prototype.start = 0; /** * ExtensionRange end. * @member {number} end * @memberof google.protobuf.DescriptorProto.ExtensionRange * @instance */ ExtensionRange.prototype.end = 0; return ExtensionRange; })(); DescriptorProto.ReservedRange = (function() { /** * Properties of a ReservedRange. * @memberof google.protobuf.DescriptorProto * @interface IReservedRange * @property {number|null} [start] ReservedRange start * @property {number|null} [end] ReservedRange end */ /** * Constructs a new ReservedRange. * @memberof google.protobuf.DescriptorProto * @classdesc Represents a ReservedRange. * @implements IReservedRange * @constructor * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set */ function ReservedRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * ReservedRange start. * @member {number} start * @memberof google.protobuf.DescriptorProto.ReservedRange * @instance */ ReservedRange.prototype.start = 0; /** * ReservedRange end. * @member {number} end * @memberof google.protobuf.DescriptorProto.ReservedRange * @instance */ ReservedRange.prototype.end = 0; return ReservedRange; })(); return DescriptorProto; })(); protobuf.FieldDescriptorProto = (function() { /** * Properties of a FieldDescriptorProto. * @memberof google.protobuf * @interface IFieldDescriptorProto * @property {string|null} [name] FieldDescriptorProto name * @property {number|null} [number] FieldDescriptorProto number * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type * @property {string|null} [typeName] FieldDescriptorProto typeName * @property {string|null} [extendee] FieldDescriptorProto extendee * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex * @property {string|null} [jsonName] FieldDescriptorProto jsonName * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options */ /** * Constructs a new FieldDescriptorProto. * @memberof google.protobuf * @classdesc Represents a FieldDescriptorProto. * @implements IFieldDescriptorProto * @constructor * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set */ function FieldDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FieldDescriptorProto name. * @member {string} name * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.name = ""; /** * FieldDescriptorProto number. * @member {number} number * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.number = 0; /** * FieldDescriptorProto label. * @member {google.protobuf.FieldDescriptorProto.Label} label * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.label = 1; /** * FieldDescriptorProto type. * @member {google.protobuf.FieldDescriptorProto.Type} type * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.type = 1; /** * FieldDescriptorProto typeName. * @member {string} typeName * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.typeName = ""; /** * FieldDescriptorProto extendee. * @member {string} extendee * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.extendee = ""; /** * FieldDescriptorProto defaultValue. * @member {string} defaultValue * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.defaultValue = ""; /** * FieldDescriptorProto oneofIndex. * @member {number} oneofIndex * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.oneofIndex = 0; /** * FieldDescriptorProto jsonName. * @member {string} jsonName * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.jsonName = ""; /** * FieldDescriptorProto options. * @member {google.protobuf.IFieldOptions|null|undefined} options * @memberof google.protobuf.FieldDescriptorProto * @instance */ FieldDescriptorProto.prototype.options = null; /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type * @enum {number} * @property {string} TYPE_DOUBLE=TYPE_DOUBLE TYPE_DOUBLE value * @property {string} TYPE_FLOAT=TYPE_FLOAT TYPE_FLOAT value * @property {string} TYPE_INT64=TYPE_INT64 TYPE_INT64 value * @property {string} TYPE_UINT64=TYPE_UINT64 TYPE_UINT64 value * @property {string} TYPE_INT32=TYPE_INT32 TYPE_INT32 value * @property {string} TYPE_FIXED64=TYPE_FIXED64 TYPE_FIXED64 value * @property {string} TYPE_FIXED32=TYPE_FIXED32 TYPE_FIXED32 value * @property {string} TYPE_BOOL=TYPE_BOOL TYPE_BOOL value * @property {string} TYPE_STRING=TYPE_STRING TYPE_STRING value * @property {string} TYPE_GROUP=TYPE_GROUP TYPE_GROUP value * @property {string} TYPE_MESSAGE=TYPE_MESSAGE TYPE_MESSAGE value * @property {string} TYPE_BYTES=TYPE_BYTES TYPE_BYTES value * @property {string} TYPE_UINT32=TYPE_UINT32 TYPE_UINT32 value * @property {string} TYPE_ENUM=TYPE_ENUM TYPE_ENUM value * @property {string} TYPE_SFIXED32=TYPE_SFIXED32 TYPE_SFIXED32 value * @property {string} TYPE_SFIXED64=TYPE_SFIXED64 TYPE_SFIXED64 value * @property {string} TYPE_SINT32=TYPE_SINT32 TYPE_SINT32 value * @property {string} TYPE_SINT64=TYPE_SINT64 TYPE_SINT64 value */ FieldDescriptorProto.Type = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[1] = "TYPE_DOUBLE"] = "TYPE_DOUBLE"; values[valuesById[2] = "TYPE_FLOAT"] = "TYPE_FLOAT"; values[valuesById[3] = "TYPE_INT64"] = "TYPE_INT64"; values[valuesById[4] = "TYPE_UINT64"] = "TYPE_UINT64"; values[valuesById[5] = "TYPE_INT32"] = "TYPE_INT32"; values[valuesById[6] = "TYPE_FIXED64"] = "TYPE_FIXED64"; values[valuesById[7] = "TYPE_FIXED32"] = "TYPE_FIXED32"; values[valuesById[8] = "TYPE_BOOL"] = "TYPE_BOOL"; values[valuesById[9] = "TYPE_STRING"] = "TYPE_STRING"; values[valuesById[10] = "TYPE_GROUP"] = "TYPE_GROUP"; values[valuesById[11] = "TYPE_MESSAGE"] = "TYPE_MESSAGE"; values[valuesById[12] = "TYPE_BYTES"] = "TYPE_BYTES"; values[valuesById[13] = "TYPE_UINT32"] = "TYPE_UINT32"; values[valuesById[14] = "TYPE_ENUM"] = "TYPE_ENUM"; values[valuesById[15] = "TYPE_SFIXED32"] = "TYPE_SFIXED32"; values[valuesById[16] = "TYPE_SFIXED64"] = "TYPE_SFIXED64"; values[valuesById[17] = "TYPE_SINT32"] = "TYPE_SINT32"; values[valuesById[18] = "TYPE_SINT64"] = "TYPE_SINT64"; return values; })(); /** * Label enum. * @name google.protobuf.FieldDescriptorProto.Label * @enum {number} * @property {string} LABEL_OPTIONAL=LABEL_OPTIONAL LABEL_OPTIONAL value * @property {string} LABEL_REQUIRED=LABEL_REQUIRED LABEL_REQUIRED value * @property {string} LABEL_REPEATED=LABEL_REPEATED LABEL_REPEATED value */ FieldDescriptorProto.Label = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[1] = "LABEL_OPTIONAL"] = "LABEL_OPTIONAL"; values[valuesById[2] = "LABEL_REQUIRED"] = "LABEL_REQUIRED"; values[valuesById[3] = "LABEL_REPEATED"] = "LABEL_REPEATED"; return values; })(); return FieldDescriptorProto; })(); protobuf.OneofDescriptorProto = (function() { /** * Properties of an OneofDescriptorProto. * @memberof google.protobuf * @interface IOneofDescriptorProto * @property {string|null} [name] OneofDescriptorProto name * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options */ /** * Constructs a new OneofDescriptorProto. * @memberof google.protobuf * @classdesc Represents an OneofDescriptorProto. * @implements IOneofDescriptorProto * @constructor * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set */ function OneofDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * OneofDescriptorProto name. * @member {string} name * @memberof google.protobuf.OneofDescriptorProto * @instance */ OneofDescriptorProto.prototype.name = ""; /** * OneofDescriptorProto options. * @member {google.protobuf.IOneofOptions|null|undefined} options * @memberof google.protobuf.OneofDescriptorProto * @instance */ OneofDescriptorProto.prototype.options = null; return OneofDescriptorProto; })(); protobuf.EnumDescriptorProto = (function() { /** * Properties of an EnumDescriptorProto. * @memberof google.protobuf * @interface IEnumDescriptorProto * @property {string|null} [name] EnumDescriptorProto name * @property {Array.<google.protobuf.IEnumValueDescriptorProto>|null} [value] EnumDescriptorProto value * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options */ /** * Constructs a new EnumDescriptorProto. * @memberof google.protobuf * @classdesc Represents an EnumDescriptorProto. * @implements IEnumDescriptorProto * @constructor * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set */ function EnumDescriptorProto(properties) { this.value = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * EnumDescriptorProto name. * @member {string} name * @memberof google.protobuf.EnumDescriptorProto * @instance */ EnumDescriptorProto.prototype.name = ""; /** * EnumDescriptorProto value. * @member {Array.<google.protobuf.IEnumValueDescriptorProto>} value * @memberof google.protobuf.EnumDescriptorProto * @instance */ EnumDescriptorProto.prototype.value = $util.emptyArray; /** * EnumDescriptorProto options. * @member {google.protobuf.IEnumOptions|null|undefined} options * @memberof google.protobuf.EnumDescriptorProto * @instance */ EnumDescriptorProto.prototype.options = null; return EnumDescriptorProto; })(); protobuf.EnumValueDescriptorProto = (function() { /** * Properties of an EnumValueDescriptorProto. * @memberof google.protobuf * @interface IEnumValueDescriptorProto * @property {string|null} [name] EnumValueDescriptorProto name * @property {number|null} [number] EnumValueDescriptorProto number * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options */ /** * Constructs a new EnumValueDescriptorProto. * @memberof google.protobuf * @classdesc Represents an EnumValueDescriptorProto. * @implements IEnumValueDescriptorProto * @constructor * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set */ function EnumValueDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * EnumValueDescriptorProto name. * @member {string} name * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ EnumValueDescriptorProto.prototype.name = ""; /** * EnumValueDescriptorProto number. * @member {number} number * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ EnumValueDescriptorProto.prototype.number = 0; /** * EnumValueDescriptorProto options. * @member {google.protobuf.IEnumValueOptions|null|undefined} options * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ EnumValueDescriptorProto.prototype.options = null; return EnumValueDescriptorProto; })(); protobuf.ServiceDescriptorProto = (function() { /** * Properties of a ServiceDescriptorProto. * @memberof google.protobuf * @interface IServiceDescriptorProto * @property {string|null} [name] ServiceDescriptorProto name * @property {Array.<google.protobuf.IMethodDescriptorProto>|null} [method] ServiceDescriptorProto method * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options */ /** * Constructs a new ServiceDescriptorProto. * @memberof google.protobuf * @classdesc Represents a ServiceDescriptorProto. * @implements IServiceDescriptorProto * @constructor * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set */ function ServiceDescriptorProto(properties) { this.method = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * ServiceDescriptorProto name. * @member {string} name * @memberof google.protobuf.ServiceDescriptorProto * @instance */ ServiceDescriptorProto.prototype.name = ""; /** * ServiceDescriptorProto method. * @member {Array.<google.protobuf.IMethodDescriptorProto>} method * @memberof google.protobuf.ServiceDescriptorProto * @instance */ ServiceDescriptorProto.prototype.method = $util.emptyArray; /** * ServiceDescriptorProto options. * @member {google.protobuf.IServiceOptions|null|undefined} options * @memberof google.protobuf.ServiceDescriptorProto * @instance */ ServiceDescriptorProto.prototype.options = null; return ServiceDescriptorProto; })(); protobuf.MethodDescriptorProto = (function() { /** * Properties of a MethodDescriptorProto. * @memberof google.protobuf * @interface IMethodDescriptorProto * @property {string|null} [name] MethodDescriptorProto name * @property {string|null} [inputType] MethodDescriptorProto inputType * @property {string|null} [outputType] MethodDescriptorProto outputType * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming */ /** * Constructs a new MethodDescriptorProto. * @memberof google.protobuf * @classdesc Represents a MethodDescriptorProto. * @implements IMethodDescriptorProto * @constructor * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * MethodDescriptorProto name. * @member {string} name * @memberof google.protobuf.MethodDescriptorProto * @instance */ MethodDescriptorProto.prototype.name = ""; /** * MethodDescriptorProto inputType. * @member {string} inputType * @memberof google.protobuf.MethodDescriptorProto * @instance */ MethodDescriptorProto.prototype.inputType = ""; /** * MethodDescriptorProto outputType. * @member {string} outputType * @memberof google.protobuf.MethodDescriptorProto * @instance */ MethodDescriptorProto.prototype.outputType = ""; /** * MethodDescriptorProto options. * @member {google.protobuf.IMethodOptions|null|undefined} options * @memberof google.protobuf.MethodDescriptorProto * @instance */ MethodDescriptorProto.prototype.options = null; /** * MethodDescriptorProto clientStreaming. * @member {boolean} clientStreaming * @memberof google.protobuf.MethodDescriptorProto * @instance */ MethodDescriptorProto.prototype.clientStreaming = false; /** * MethodDescriptorProto serverStreaming. * @member {boolean} serverStreaming * @memberof google.protobuf.MethodDescriptorProto * @instance */ MethodDescriptorProto.prototype.serverStreaming = false; return MethodDescriptorProto; })(); protobuf.FileOptions = (function() { /** * Properties of a FileOptions. * @memberof google.protobuf * @interface IFileOptions * @property {string|null} [javaPackage] FileOptions javaPackage * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor * @property {string|null} [goPackage] FileOptions goPackage * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices * @property {boolean|null} [deprecated] FileOptions deprecated * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix * @property {string|null} [csharpNamespace] FileOptions csharpNamespace * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FileOptions uninterpretedOption */ /** * Constructs a new FileOptions. * @memberof google.protobuf * @classdesc Represents a FileOptions. * @implements IFileOptions * @constructor * @param {google.protobuf.IFileOptions=} [properties] Properties to set */ function FileOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FileOptions javaPackage. * @member {string} javaPackage * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.javaPackage = ""; /** * FileOptions javaOuterClassname. * @member {string} javaOuterClassname * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.javaOuterClassname = ""; /** * FileOptions javaMultipleFiles. * @member {boolean} javaMultipleFiles * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.javaMultipleFiles = false; /** * FileOptions javaGenerateEqualsAndHash. * @member {boolean} javaGenerateEqualsAndHash * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.javaGenerateEqualsAndHash = false; /** * FileOptions javaStringCheckUtf8. * @member {boolean} javaStringCheckUtf8 * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.javaStringCheckUtf8 = false; /** * FileOptions optimizeFor. * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.optimizeFor = 1; /** * FileOptions goPackage. * @member {string} goPackage * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.goPackage = ""; /** * FileOptions ccGenericServices. * @member {boolean} ccGenericServices * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.ccGenericServices = false; /** * FileOptions javaGenericServices. * @member {boolean} javaGenericServices * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.javaGenericServices = false; /** * FileOptions pyGenericServices. * @member {boolean} pyGenericServices * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.pyGenericServices = false; /** * FileOptions deprecated. * @member {boolean} deprecated * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.deprecated = false; /** * FileOptions ccEnableArenas. * @member {boolean} ccEnableArenas * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.ccEnableArenas = false; /** * FileOptions objcClassPrefix. * @member {string} objcClassPrefix * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.objcClassPrefix = ""; /** * FileOptions csharpNamespace. * @member {string} csharpNamespace * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.csharpNamespace = ""; /** * FileOptions uninterpretedOption. * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption * @memberof google.protobuf.FileOptions * @instance */ FileOptions.prototype.uninterpretedOption = $util.emptyArray; /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode * @enum {number} * @property {string} SPEED=SPEED SPEED value * @property {string} CODE_SIZE=CODE_SIZE CODE_SIZE value * @property {string} LITE_RUNTIME=LITE_RUNTIME LITE_RUNTIME value */ FileOptions.OptimizeMode = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[1] = "SPEED"] = "SPEED"; values[valuesById[2] = "CODE_SIZE"] = "CODE_SIZE"; values[valuesById[3] = "LITE_RUNTIME"] = "LITE_RUNTIME"; return values; })(); return FileOptions; })(); protobuf.MessageOptions = (function() { /** * Properties of a MessageOptions. * @memberof google.protobuf * @interface IMessageOptions * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor * @property {boolean|null} [deprecated] MessageOptions deprecated * @property {boolean|null} [mapEntry] MessageOptions mapEntry * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption */ /** * Constructs a new MessageOptions. * @memberof google.protobuf * @classdesc Represents a MessageOptions. * @implements IMessageOptions * @constructor * @param {google.protobuf.IMessageOptions=} [properties] Properties to set */ function MessageOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * MessageOptions messageSetWireFormat. * @member {boolean} messageSetWireFormat * @memberof google.protobuf.MessageOptions * @instance */ MessageOptions.prototype.messageSetWireFormat = false; /** * MessageOptions noStandardDescriptorAccessor. * @member {boolean} noStandardDescriptorAccessor * @memberof google.protobuf.MessageOptions * @instance */ MessageOptions.prototype.noStandardDescriptorAccessor = false; /** * MessageOptions deprecated. * @member {boolean} deprecated * @memberof google.protobuf.MessageOptions * @instance */ MessageOptions.prototype.deprecated = false; /** * MessageOptions mapEntry. * @member {boolean} mapEntry * @memberof google.protobuf.MessageOptions * @instance */ MessageOptions.prototype.mapEntry = false; /** * MessageOptions uninterpretedOption. * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption * @memberof google.protobuf.MessageOptions * @instance */ MessageOptions.prototype.uninterpretedOption = $util.emptyArray; return MessageOptions; })(); protobuf.FieldOptions = (function() { /** * Properties of a FieldOptions. * @memberof google.protobuf * @interface IFieldOptions * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption */ /** * Constructs a new FieldOptions. * @memberof google.protobuf * @classdesc Represents a FieldOptions. * @implements IFieldOptions * @constructor * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ function FieldOptions(properties) { this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FieldOptions ctype. * @member {google.protobuf.FieldOptions.CType} ctype * @memberof google.protobuf.FieldOptions * @instance */ FieldOptions.prototype.ctype = 0; /** * FieldOptions packed. * @member {boolean} packed * @memberof google.protobuf.FieldOptions * @instance */ FieldOptions.prototype.packed = false; /** * FieldOptions jstype. * @member {google.protobuf.FieldOptions.JSType} jstype * @memberof google.protobuf.FieldOptions * @instance */ FieldOptions.prototype.jstype = 0; /** *