diff --git a/src/Point/IPoint.cs b/src/Point/IPoint.cs index c5cbed2..31fdb49 100644 --- a/src/Point/IPoint.cs +++ b/src/Point/IPoint.cs @@ -11,7 +11,7 @@ public interface IPoint { void EnableTimeoutLeft(bool enableMovementFailed); void EnableTimeoutRight(bool enableMovementFailed); - void EnableInitializationTimeout(bool enableInitializationFailed); + void EnableInitializationTimeout(bool enableInitializationTimeout); void PreventLeftEndPosition(PreventedPositionMessage request); void PreventRightEndPosition(PreventedPositionMessage request); Task PutIntoUnintendedPosition(DegradedPositionMessage request); diff --git a/src/Point/Services/PointService.cs b/src/Point/Services/PointService.cs index 44ee377..a41f41d 100644 --- a/src/Point/Services/PointService.cs +++ b/src/Point/Services/PointService.cs @@ -53,9 +53,9 @@ public override async Task OverrideSciMessage(SciMessage request, ServerC return new Empty(); } - public override Task ScheduleInitializationFailed(EnableInitializationFailedMessage request, ServerCallContext context) + public override Task ScheduleInitializationTimeout(EnableInitializationTimeoutMessage request, ServerCallContext context) { - _point.EnableInitializationTimeout(request.EnableInitializationFailed); + _point.EnableInitializationTimeout(request.EnableInitializationTimeout); return Task.FromResult(new Empty()); } diff --git a/src/Point/rasta-point-web/src/Point.tsx b/src/Point/rasta-point-web/src/Point.tsx index 1413088..c4463aa 100644 --- a/src/Point/rasta-point-web/src/Point.tsx +++ b/src/Point/rasta-point-web/src/Point.tsx @@ -6,7 +6,7 @@ import { PointClient } from './proto/PointServiceClientPb'; import { PreventedPosition, AbilityToMoveMessage, AbilityToMove, PreventedPositionMessage, DegradedPositionMessage, EnableMovementFailedMessage, - EnableInitializationFailedMessage, + EnableInitializationTimeoutMessage, } from './proto/point_pb'; import { PointState, SimulatedPointState, SimulatorConfiguration } from './App'; @@ -374,7 +374,7 @@ function Point({ label="Enable Initialization Timeout" active={simulatedPointState?.simulateInitializationTimeout || false} onChange={ - (enable) => sendCommand((client) => client.scheduleInitializationFailed(new EnableInitializationFailedMessage().setEnableinitializationfailed(enable), null)) + (enable) => sendCommand((client) => client.scheduleInitializationTimeout(new EnableInitializationTimeoutMessage().setEnableinitializationtimeout(enable), null)) } /> diff --git a/src/Point/rasta-point-web/src/proto/PointServiceClientPb.ts b/src/Point/rasta-point-web/src/proto/PointServiceClientPb.ts index 15d8fac..370f6ba 100644 --- a/src/Point/rasta-point-web/src/proto/PointServiceClientPb.ts +++ b/src/Point/rasta-point-web/src/proto/PointServiceClientPb.ts @@ -513,47 +513,47 @@ export class PointClient { this.methodDescriptorScheduleTimeoutLeft); } - methodDescriptorScheduleInitializationFailed = new grpcWeb.MethodDescriptor( - '/point.Point/ScheduleInitializationFailed', + methodDescriptorScheduleInitializationTimeout = new grpcWeb.MethodDescriptor( + '/point.Point/ScheduleInitializationTimeout', grpcWeb.MethodType.UNARY, - point_pb.EnableInitializationFailedMessage, + point_pb.EnableInitializationTimeoutMessage, google_protobuf_empty_pb.Empty, - (request: point_pb.EnableInitializationFailedMessage) => { + (request: point_pb.EnableInitializationTimeoutMessage) => { return request.serializeBinary(); }, google_protobuf_empty_pb.Empty.deserializeBinary ); - scheduleInitializationFailed( - request: point_pb.EnableInitializationFailedMessage, + scheduleInitializationTimeout( + request: point_pb.EnableInitializationTimeoutMessage, metadata: grpcWeb.Metadata | null): Promise; - scheduleInitializationFailed( - request: point_pb.EnableInitializationFailedMessage, + scheduleInitializationTimeout( + request: point_pb.EnableInitializationTimeoutMessage, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; - scheduleInitializationFailed( - request: point_pb.EnableInitializationFailedMessage, + scheduleInitializationTimeout( + request: point_pb.EnableInitializationTimeoutMessage, metadata: grpcWeb.Metadata | null, callback?: (err: grpcWeb.RpcError, response: google_protobuf_empty_pb.Empty) => void) { if (callback !== undefined) { return this.client_.rpcCall( this.hostname_ + - '/point.Point/ScheduleInitializationFailed', + '/point.Point/ScheduleInitializationTimeout', request, metadata || {}, - this.methodDescriptorScheduleInitializationFailed, + this.methodDescriptorScheduleInitializationTimeout, callback); } return this.client_.unaryCall( this.hostname_ + - '/point.Point/ScheduleInitializationFailed', + '/point.Point/ScheduleInitializationTimeout', request, metadata || {}, - this.methodDescriptorScheduleInitializationFailed); + this.methodDescriptorScheduleInitializationTimeout); } methodDescriptorReset = new grpcWeb.MethodDescriptor( diff --git a/src/Point/rasta-point-web/src/proto/point_pb.d.ts b/src/Point/rasta-point-web/src/proto/point_pb.d.ts index 3ca05ad..a13676b 100644 --- a/src/Point/rasta-point-web/src/proto/point_pb.d.ts +++ b/src/Point/rasta-point-web/src/proto/point_pb.d.ts @@ -99,21 +99,21 @@ export namespace EnableMovementFailedMessage { } } -export class EnableInitializationFailedMessage extends jspb.Message { - getEnableinitializationfailed(): boolean; - setEnableinitializationfailed(value: boolean): EnableInitializationFailedMessage; +export class EnableInitializationTimeoutMessage extends jspb.Message { + getEnableinitializationtimeout(): boolean; + setEnableinitializationtimeout(value: boolean): EnableInitializationTimeoutMessage; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): EnableInitializationFailedMessage.AsObject; - static toObject(includeInstance: boolean, msg: EnableInitializationFailedMessage): EnableInitializationFailedMessage.AsObject; - static serializeBinaryToWriter(message: EnableInitializationFailedMessage, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): EnableInitializationFailedMessage; - static deserializeBinaryFromReader(message: EnableInitializationFailedMessage, reader: jspb.BinaryReader): EnableInitializationFailedMessage; + toObject(includeInstance?: boolean): EnableInitializationTimeoutMessage.AsObject; + static toObject(includeInstance: boolean, msg: EnableInitializationTimeoutMessage): EnableInitializationTimeoutMessage.AsObject; + static serializeBinaryToWriter(message: EnableInitializationTimeoutMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableInitializationTimeoutMessage; + static deserializeBinaryFromReader(message: EnableInitializationTimeoutMessage, reader: jspb.BinaryReader): EnableInitializationTimeoutMessage; } -export namespace EnableInitializationFailedMessage { +export namespace EnableInitializationTimeoutMessage { export type AsObject = { - enableinitializationfailed: boolean, + enableinitializationtimeout: boolean, } } diff --git a/src/Point/rasta-point-web/src/proto/point_pb.js b/src/Point/rasta-point-web/src/proto/point_pb.js index ec8d16e..5b4eedc 100644 --- a/src/Point/rasta-point-web/src/proto/point_pb.js +++ b/src/Point/rasta-point-web/src/proto/point_pb.js @@ -26,7 +26,7 @@ goog.object.extend(proto, google_protobuf_empty_pb); goog.exportSymbol('proto.point.AbilityToMove', null, global); goog.exportSymbol('proto.point.AbilityToMoveMessage', null, global); goog.exportSymbol('proto.point.DegradedPositionMessage', null, global); -goog.exportSymbol('proto.point.EnableInitializationFailedMessage', null, global); +goog.exportSymbol('proto.point.EnableInitializationTimeoutMessage', null, global); goog.exportSymbol('proto.point.EnableMovementFailedMessage', null, global); goog.exportSymbol('proto.point.PointDegradedPosition', null, global); goog.exportSymbol('proto.point.PointDegradedPositionMessage', null, global); @@ -150,16 +150,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.point.EnableInitializationFailedMessage = function(opt_data) { +proto.point.EnableInitializationTimeoutMessage = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.point.EnableInitializationFailedMessage, jspb.Message); +goog.inherits(proto.point.EnableInitializationTimeoutMessage, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.point.EnableInitializationFailedMessage.displayName = 'proto.point.EnableInitializationFailedMessage'; + proto.point.EnableInitializationTimeoutMessage.displayName = 'proto.point.EnableInitializationTimeoutMessage'; } /** * Generated by JsPbCodeGenerator. @@ -923,8 +923,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.point.EnableInitializationFailedMessage.prototype.toObject = function(opt_includeInstance) { - return proto.point.EnableInitializationFailedMessage.toObject(opt_includeInstance, this); +proto.point.EnableInitializationTimeoutMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.EnableInitializationTimeoutMessage.toObject(opt_includeInstance, this); }; @@ -933,13 +933,13 @@ proto.point.EnableInitializationFailedMessage.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.point.EnableInitializationFailedMessage} msg The msg instance to transform. + * @param {!proto.point.EnableInitializationTimeoutMessage} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.point.EnableInitializationFailedMessage.toObject = function(includeInstance, msg) { +proto.point.EnableInitializationTimeoutMessage.toObject = function(includeInstance, msg) { var f, obj = { - enableinitializationfailed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + enableinitializationtimeout: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -953,23 +953,23 @@ proto.point.EnableInitializationFailedMessage.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.point.EnableInitializationFailedMessage} + * @return {!proto.point.EnableInitializationTimeoutMessage} */ -proto.point.EnableInitializationFailedMessage.deserializeBinary = function(bytes) { +proto.point.EnableInitializationTimeoutMessage.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.point.EnableInitializationFailedMessage; - return proto.point.EnableInitializationFailedMessage.deserializeBinaryFromReader(msg, reader); + var msg = new proto.point.EnableInitializationTimeoutMessage; + return proto.point.EnableInitializationTimeoutMessage.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.point.EnableInitializationFailedMessage} msg The message object to deserialize into. + * @param {!proto.point.EnableInitializationTimeoutMessage} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.point.EnableInitializationFailedMessage} + * @return {!proto.point.EnableInitializationTimeoutMessage} */ -proto.point.EnableInitializationFailedMessage.deserializeBinaryFromReader = function(msg, reader) { +proto.point.EnableInitializationTimeoutMessage.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -978,7 +978,7 @@ proto.point.EnableInitializationFailedMessage.deserializeBinaryFromReader = func switch (field) { case 1: var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnableinitializationfailed(value); + msg.setEnableinitializationtimeout(value); break; default: reader.skipField(); @@ -993,9 +993,9 @@ proto.point.EnableInitializationFailedMessage.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.point.EnableInitializationFailedMessage.prototype.serializeBinary = function() { +proto.point.EnableInitializationTimeoutMessage.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.point.EnableInitializationFailedMessage.serializeBinaryToWriter(this, writer); + proto.point.EnableInitializationTimeoutMessage.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1003,13 +1003,13 @@ proto.point.EnableInitializationFailedMessage.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.point.EnableInitializationFailedMessage} message + * @param {!proto.point.EnableInitializationTimeoutMessage} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.point.EnableInitializationFailedMessage.serializeBinaryToWriter = function(message, writer) { +proto.point.EnableInitializationTimeoutMessage.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEnableinitializationfailed(); + f = message.getEnableinitializationtimeout(); if (f) { writer.writeBool( 1, @@ -1020,19 +1020,19 @@ proto.point.EnableInitializationFailedMessage.serializeBinaryToWriter = function /** - * optional bool EnableInitializationFailed = 1; + * optional bool EnableInitializationTimeout = 1; * @return {boolean} */ -proto.point.EnableInitializationFailedMessage.prototype.getEnableinitializationfailed = function() { +proto.point.EnableInitializationTimeoutMessage.prototype.getEnableinitializationtimeout = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.point.EnableInitializationFailedMessage} returns this + * @return {!proto.point.EnableInitializationTimeoutMessage} returns this */ -proto.point.EnableInitializationFailedMessage.prototype.setEnableinitializationfailed = function(value) { +proto.point.EnableInitializationTimeoutMessage.prototype.setEnableinitializationtimeout = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; diff --git a/src/ProtobufInterfaces/PointServiceClientPb.ts b/src/ProtobufInterfaces/PointServiceClientPb.ts new file mode 100644 index 0000000..370f6ba --- /dev/null +++ b/src/ProtobufInterfaces/PointServiceClientPb.ts @@ -0,0 +1,603 @@ +/** + * @fileoverview gRPC-Web generated client stub for point + * @enhanceable + * @public + */ + +// Code generated by protoc-gen-grpc-web. DO NOT EDIT. +// versions: +// protoc-gen-grpc-web v1.4.2 +// protoc v4.25.0 +// source: point.proto + + +/* eslint-disable */ +// @ts-nocheck + + +import * as grpcWeb from 'grpc-web'; + +import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; +import * as point_pb from './point_pb'; + + +export class PointClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname.replace(/\/+$/, ''); + this.credentials_ = credentials; + this.options_ = options; + } + + methodDescriptorGetPointPosition = new grpcWeb.MethodDescriptor( + '/point.Point/GetPointPosition', + grpcWeb.MethodType.UNARY, + google_protobuf_empty_pb.Empty, + point_pb.PointPositionMessage, + (request: google_protobuf_empty_pb.Empty) => { + return request.serializeBinary(); + }, + point_pb.PointPositionMessage.deserializeBinary + ); + + getPointPosition( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null): Promise; + + getPointPosition( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: point_pb.PointPositionMessage) => void): grpcWeb.ClientReadableStream; + + getPointPosition( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: point_pb.PointPositionMessage) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/GetPointPosition', + request, + metadata || {}, + this.methodDescriptorGetPointPosition, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/GetPointPosition', + request, + metadata || {}, + this.methodDescriptorGetPointPosition); + } + + methodDescriptorGetDegradedPointPosition = new grpcWeb.MethodDescriptor( + '/point.Point/GetDegradedPointPosition', + grpcWeb.MethodType.UNARY, + google_protobuf_empty_pb.Empty, + point_pb.PointDegradedPositionMessage, + (request: google_protobuf_empty_pb.Empty) => { + return request.serializeBinary(); + }, + point_pb.PointDegradedPositionMessage.deserializeBinary + ); + + getDegradedPointPosition( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null): Promise; + + getDegradedPointPosition( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: point_pb.PointDegradedPositionMessage) => void): grpcWeb.ClientReadableStream; + + getDegradedPointPosition( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: point_pb.PointDegradedPositionMessage) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/GetDegradedPointPosition', + request, + metadata || {}, + this.methodDescriptorGetDegradedPointPosition, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/GetDegradedPointPosition', + request, + metadata || {}, + this.methodDescriptorGetDegradedPointPosition); + } + + methodDescriptorPutIntoUnintendedPosition = new grpcWeb.MethodDescriptor( + '/point.Point/PutIntoUnintendedPosition', + grpcWeb.MethodType.UNARY, + point_pb.DegradedPositionMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.DegradedPositionMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + putIntoUnintendedPosition( + request: point_pb.DegradedPositionMessage, + metadata: grpcWeb.Metadata | null): Promise; + + putIntoUnintendedPosition( + request: point_pb.DegradedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + putIntoUnintendedPosition( + request: point_pb.DegradedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/PutIntoUnintendedPosition', + request, + metadata || {}, + this.methodDescriptorPutIntoUnintendedPosition, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/PutIntoUnintendedPosition', + request, + metadata || {}, + this.methodDescriptorPutIntoUnintendedPosition); + } + + methodDescriptorPutIntoTrailedPosition = new grpcWeb.MethodDescriptor( + '/point.Point/PutIntoTrailedPosition', + grpcWeb.MethodType.UNARY, + point_pb.DegradedPositionMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.DegradedPositionMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + putIntoTrailedPosition( + request: point_pb.DegradedPositionMessage, + metadata: grpcWeb.Metadata | null): Promise; + + putIntoTrailedPosition( + request: point_pb.DegradedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + putIntoTrailedPosition( + request: point_pb.DegradedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/PutIntoTrailedPosition', + request, + metadata || {}, + this.methodDescriptorPutIntoTrailedPosition, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/PutIntoTrailedPosition', + request, + metadata || {}, + this.methodDescriptorPutIntoTrailedPosition); + } + + methodDescriptorSetAbilityToMove = new grpcWeb.MethodDescriptor( + '/point.Point/SetAbilityToMove', + grpcWeb.MethodType.UNARY, + point_pb.AbilityToMoveMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.AbilityToMoveMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + setAbilityToMove( + request: point_pb.AbilityToMoveMessage, + metadata: grpcWeb.Metadata | null): Promise; + + setAbilityToMove( + request: point_pb.AbilityToMoveMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + setAbilityToMove( + request: point_pb.AbilityToMoveMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/SetAbilityToMove', + request, + metadata || {}, + this.methodDescriptorSetAbilityToMove, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/SetAbilityToMove', + request, + metadata || {}, + this.methodDescriptorSetAbilityToMove); + } + + methodDescriptorSendSciMessage = new grpcWeb.MethodDescriptor( + '/point.Point/SendSciMessage', + grpcWeb.MethodType.UNARY, + point_pb.SciMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.SciMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + sendSciMessage( + request: point_pb.SciMessage, + metadata: grpcWeb.Metadata | null): Promise; + + sendSciMessage( + request: point_pb.SciMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + sendSciMessage( + request: point_pb.SciMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/SendSciMessage', + request, + metadata || {}, + this.methodDescriptorSendSciMessage, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/SendSciMessage', + request, + metadata || {}, + this.methodDescriptorSendSciMessage); + } + + methodDescriptorOverrideSciMessage = new grpcWeb.MethodDescriptor( + '/point.Point/OverrideSciMessage', + grpcWeb.MethodType.UNARY, + point_pb.SciMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.SciMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + overrideSciMessage( + request: point_pb.SciMessage, + metadata: grpcWeb.Metadata | null): Promise; + + overrideSciMessage( + request: point_pb.SciMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + overrideSciMessage( + request: point_pb.SciMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/OverrideSciMessage', + request, + metadata || {}, + this.methodDescriptorOverrideSciMessage, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/OverrideSciMessage', + request, + metadata || {}, + this.methodDescriptorOverrideSciMessage); + } + + methodDescriptorSchedulePreventRightEndPosition = new grpcWeb.MethodDescriptor( + '/point.Point/SchedulePreventRightEndPosition', + grpcWeb.MethodType.UNARY, + point_pb.PreventedPositionMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.PreventedPositionMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + schedulePreventRightEndPosition( + request: point_pb.PreventedPositionMessage, + metadata: grpcWeb.Metadata | null): Promise; + + schedulePreventRightEndPosition( + request: point_pb.PreventedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + schedulePreventRightEndPosition( + request: point_pb.PreventedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/SchedulePreventRightEndPosition', + request, + metadata || {}, + this.methodDescriptorSchedulePreventRightEndPosition, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/SchedulePreventRightEndPosition', + request, + metadata || {}, + this.methodDescriptorSchedulePreventRightEndPosition); + } + + methodDescriptorSchedulePreventLeftEndPosition = new grpcWeb.MethodDescriptor( + '/point.Point/SchedulePreventLeftEndPosition', + grpcWeb.MethodType.UNARY, + point_pb.PreventedPositionMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.PreventedPositionMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + schedulePreventLeftEndPosition( + request: point_pb.PreventedPositionMessage, + metadata: grpcWeb.Metadata | null): Promise; + + schedulePreventLeftEndPosition( + request: point_pb.PreventedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + schedulePreventLeftEndPosition( + request: point_pb.PreventedPositionMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/SchedulePreventLeftEndPosition', + request, + metadata || {}, + this.methodDescriptorSchedulePreventLeftEndPosition, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/SchedulePreventLeftEndPosition', + request, + metadata || {}, + this.methodDescriptorSchedulePreventLeftEndPosition); + } + + methodDescriptorScheduleTimeoutRight = new grpcWeb.MethodDescriptor( + '/point.Point/ScheduleTimeoutRight', + grpcWeb.MethodType.UNARY, + point_pb.EnableMovementFailedMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.EnableMovementFailedMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + scheduleTimeoutRight( + request: point_pb.EnableMovementFailedMessage, + metadata: grpcWeb.Metadata | null): Promise; + + scheduleTimeoutRight( + request: point_pb.EnableMovementFailedMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + scheduleTimeoutRight( + request: point_pb.EnableMovementFailedMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/ScheduleTimeoutRight', + request, + metadata || {}, + this.methodDescriptorScheduleTimeoutRight, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/ScheduleTimeoutRight', + request, + metadata || {}, + this.methodDescriptorScheduleTimeoutRight); + } + + methodDescriptorScheduleTimeoutLeft = new grpcWeb.MethodDescriptor( + '/point.Point/ScheduleTimeoutLeft', + grpcWeb.MethodType.UNARY, + point_pb.EnableMovementFailedMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.EnableMovementFailedMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + scheduleTimeoutLeft( + request: point_pb.EnableMovementFailedMessage, + metadata: grpcWeb.Metadata | null): Promise; + + scheduleTimeoutLeft( + request: point_pb.EnableMovementFailedMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + scheduleTimeoutLeft( + request: point_pb.EnableMovementFailedMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/ScheduleTimeoutLeft', + request, + metadata || {}, + this.methodDescriptorScheduleTimeoutLeft, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/ScheduleTimeoutLeft', + request, + metadata || {}, + this.methodDescriptorScheduleTimeoutLeft); + } + + methodDescriptorScheduleInitializationTimeout = new grpcWeb.MethodDescriptor( + '/point.Point/ScheduleInitializationTimeout', + grpcWeb.MethodType.UNARY, + point_pb.EnableInitializationTimeoutMessage, + google_protobuf_empty_pb.Empty, + (request: point_pb.EnableInitializationTimeoutMessage) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + scheduleInitializationTimeout( + request: point_pb.EnableInitializationTimeoutMessage, + metadata: grpcWeb.Metadata | null): Promise; + + scheduleInitializationTimeout( + request: point_pb.EnableInitializationTimeoutMessage, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + scheduleInitializationTimeout( + request: point_pb.EnableInitializationTimeoutMessage, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/ScheduleInitializationTimeout', + request, + metadata || {}, + this.methodDescriptorScheduleInitializationTimeout, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/ScheduleInitializationTimeout', + request, + metadata || {}, + this.methodDescriptorScheduleInitializationTimeout); + } + + methodDescriptorReset = new grpcWeb.MethodDescriptor( + '/point.Point/Reset', + grpcWeb.MethodType.UNARY, + google_protobuf_empty_pb.Empty, + google_protobuf_empty_pb.Empty, + (request: google_protobuf_empty_pb.Empty) => { + return request.serializeBinary(); + }, + google_protobuf_empty_pb.Empty.deserializeBinary + ); + + reset( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null): Promise; + + reset( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void): grpcWeb.ClientReadableStream; + + reset( + request: google_protobuf_empty_pb.Empty, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.RpcError, + response: google_protobuf_empty_pb.Empty) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/point.Point/Reset', + request, + metadata || {}, + this.methodDescriptorReset, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/point.Point/Reset', + request, + metadata || {}, + this.methodDescriptorReset); + } + +} + diff --git a/src/ProtobufInterfaces/point_pb.d.ts b/src/ProtobufInterfaces/point_pb.d.ts new file mode 100644 index 0000000..a13676b --- /dev/null +++ b/src/ProtobufInterfaces/point_pb.d.ts @@ -0,0 +1,176 @@ +import * as jspb from 'google-protobuf' + +import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; + + +export class AbilityToMoveMessage extends jspb.Message { + getAbility(): AbilityToMove; + setAbility(value: AbilityToMove): AbilityToMoveMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AbilityToMoveMessage.AsObject; + static toObject(includeInstance: boolean, msg: AbilityToMoveMessage): AbilityToMoveMessage.AsObject; + static serializeBinaryToWriter(message: AbilityToMoveMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AbilityToMoveMessage; + static deserializeBinaryFromReader(message: AbilityToMoveMessage, reader: jspb.BinaryReader): AbilityToMoveMessage; +} + +export namespace AbilityToMoveMessage { + export type AsObject = { + ability: AbilityToMove, + } +} + +export class SciMessage extends jspb.Message { + getMessage(): Uint8Array | string; + getMessage_asU8(): Uint8Array; + getMessage_asB64(): string; + setMessage(value: Uint8Array | string): SciMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SciMessage.AsObject; + static toObject(includeInstance: boolean, msg: SciMessage): SciMessage.AsObject; + static serializeBinaryToWriter(message: SciMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SciMessage; + static deserializeBinaryFromReader(message: SciMessage, reader: jspb.BinaryReader): SciMessage; +} + +export namespace SciMessage { + export type AsObject = { + message: Uint8Array | string, + } +} + +export class PreventedPositionMessage extends jspb.Message { + getPosition(): PreventedPosition; + setPosition(value: PreventedPosition): PreventedPositionMessage; + + getDegradedposition(): boolean; + setDegradedposition(value: boolean): PreventedPositionMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PreventedPositionMessage.AsObject; + static toObject(includeInstance: boolean, msg: PreventedPositionMessage): PreventedPositionMessage.AsObject; + static serializeBinaryToWriter(message: PreventedPositionMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PreventedPositionMessage; + static deserializeBinaryFromReader(message: PreventedPositionMessage, reader: jspb.BinaryReader): PreventedPositionMessage; +} + +export namespace PreventedPositionMessage { + export type AsObject = { + position: PreventedPosition, + degradedposition: boolean, + } +} + +export class DegradedPositionMessage extends jspb.Message { + getDegradedposition(): boolean; + setDegradedposition(value: boolean): DegradedPositionMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DegradedPositionMessage.AsObject; + static toObject(includeInstance: boolean, msg: DegradedPositionMessage): DegradedPositionMessage.AsObject; + static serializeBinaryToWriter(message: DegradedPositionMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DegradedPositionMessage; + static deserializeBinaryFromReader(message: DegradedPositionMessage, reader: jspb.BinaryReader): DegradedPositionMessage; +} + +export namespace DegradedPositionMessage { + export type AsObject = { + degradedposition: boolean, + } +} + +export class EnableMovementFailedMessage extends jspb.Message { + getEnablemovementfailed(): boolean; + setEnablemovementfailed(value: boolean): EnableMovementFailedMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableMovementFailedMessage.AsObject; + static toObject(includeInstance: boolean, msg: EnableMovementFailedMessage): EnableMovementFailedMessage.AsObject; + static serializeBinaryToWriter(message: EnableMovementFailedMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableMovementFailedMessage; + static deserializeBinaryFromReader(message: EnableMovementFailedMessage, reader: jspb.BinaryReader): EnableMovementFailedMessage; +} + +export namespace EnableMovementFailedMessage { + export type AsObject = { + enablemovementfailed: boolean, + } +} + +export class EnableInitializationTimeoutMessage extends jspb.Message { + getEnableinitializationtimeout(): boolean; + setEnableinitializationtimeout(value: boolean): EnableInitializationTimeoutMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableInitializationTimeoutMessage.AsObject; + static toObject(includeInstance: boolean, msg: EnableInitializationTimeoutMessage): EnableInitializationTimeoutMessage.AsObject; + static serializeBinaryToWriter(message: EnableInitializationTimeoutMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableInitializationTimeoutMessage; + static deserializeBinaryFromReader(message: EnableInitializationTimeoutMessage, reader: jspb.BinaryReader): EnableInitializationTimeoutMessage; +} + +export namespace EnableInitializationTimeoutMessage { + export type AsObject = { + enableinitializationtimeout: boolean, + } +} + +export class PointPositionMessage extends jspb.Message { + getPosition(): PointPosition; + setPosition(value: PointPosition): PointPositionMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PointPositionMessage.AsObject; + static toObject(includeInstance: boolean, msg: PointPositionMessage): PointPositionMessage.AsObject; + static serializeBinaryToWriter(message: PointPositionMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PointPositionMessage; + static deserializeBinaryFromReader(message: PointPositionMessage, reader: jspb.BinaryReader): PointPositionMessage; +} + +export namespace PointPositionMessage { + export type AsObject = { + position: PointPosition, + } +} + +export class PointDegradedPositionMessage extends jspb.Message { + getPosition(): PointDegradedPosition; + setPosition(value: PointDegradedPosition): PointDegradedPositionMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PointDegradedPositionMessage.AsObject; + static toObject(includeInstance: boolean, msg: PointDegradedPositionMessage): PointDegradedPositionMessage.AsObject; + static serializeBinaryToWriter(message: PointDegradedPositionMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PointDegradedPositionMessage; + static deserializeBinaryFromReader(message: PointDegradedPositionMessage, reader: jspb.BinaryReader): PointDegradedPositionMessage; +} + +export namespace PointDegradedPositionMessage { + export type AsObject = { + position: PointDegradedPosition, + } +} + +export enum PointPosition { + RIGHT = 0, + LEFT = 1, + NOENDPOSITION = 2, + UNINTENDEDPOSITION = 3, +} +export enum PointDegradedPosition { + DEGRADEDRIGHT = 0, + DEGRADEDLEFT = 1, + NOTDEGRADED = 2, + NOTAPPLICABLE = 3, +} +export enum PreventedPosition { + DONOTPREVENT = 0, + SETUNINTENDEDORTRAILED = 1, + SETNOENDPOSITION = 2, +} +export enum AbilityToMove { + ABLE_TO_MOVE = 0, + UNABLE_TO_MOVE = 1, +} diff --git a/src/ProtobufInterfaces/point_pb.js b/src/ProtobufInterfaces/point_pb.js new file mode 100644 index 0000000..5b4eedc --- /dev/null +++ b/src/ProtobufInterfaces/point_pb.js @@ -0,0 +1,1337 @@ +// source: point.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); +goog.object.extend(proto, google_protobuf_empty_pb); +goog.exportSymbol('proto.point.AbilityToMove', null, global); +goog.exportSymbol('proto.point.AbilityToMoveMessage', null, global); +goog.exportSymbol('proto.point.DegradedPositionMessage', null, global); +goog.exportSymbol('proto.point.EnableInitializationTimeoutMessage', null, global); +goog.exportSymbol('proto.point.EnableMovementFailedMessage', null, global); +goog.exportSymbol('proto.point.PointDegradedPosition', null, global); +goog.exportSymbol('proto.point.PointDegradedPositionMessage', null, global); +goog.exportSymbol('proto.point.PointPosition', null, global); +goog.exportSymbol('proto.point.PointPositionMessage', null, global); +goog.exportSymbol('proto.point.PreventedPosition', null, global); +goog.exportSymbol('proto.point.PreventedPositionMessage', null, global); +goog.exportSymbol('proto.point.SciMessage', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.point.AbilityToMoveMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.AbilityToMoveMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.AbilityToMoveMessage.displayName = 'proto.point.AbilityToMoveMessage'; +} +/** + * 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.point.SciMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.SciMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.SciMessage.displayName = 'proto.point.SciMessage'; +} +/** + * 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.point.PreventedPositionMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.PreventedPositionMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.PreventedPositionMessage.displayName = 'proto.point.PreventedPositionMessage'; +} +/** + * 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.point.DegradedPositionMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.DegradedPositionMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.DegradedPositionMessage.displayName = 'proto.point.DegradedPositionMessage'; +} +/** + * 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.point.EnableMovementFailedMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.EnableMovementFailedMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.EnableMovementFailedMessage.displayName = 'proto.point.EnableMovementFailedMessage'; +} +/** + * 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.point.EnableInitializationTimeoutMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.EnableInitializationTimeoutMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.EnableInitializationTimeoutMessage.displayName = 'proto.point.EnableInitializationTimeoutMessage'; +} +/** + * 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.point.PointPositionMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.PointPositionMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.PointPositionMessage.displayName = 'proto.point.PointPositionMessage'; +} +/** + * 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.point.PointDegradedPositionMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.point.PointDegradedPositionMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.point.PointDegradedPositionMessage.displayName = 'proto.point.PointDegradedPositionMessage'; +} + + + +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.point.AbilityToMoveMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.AbilityToMoveMessage.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.point.AbilityToMoveMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.AbilityToMoveMessage.toObject = function(includeInstance, msg) { + var f, obj = { + ability: jspb.Message.getFieldWithDefault(msg, 1, 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.point.AbilityToMoveMessage} + */ +proto.point.AbilityToMoveMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.AbilityToMoveMessage; + return proto.point.AbilityToMoveMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.AbilityToMoveMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.AbilityToMoveMessage} + */ +proto.point.AbilityToMoveMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.point.AbilityToMove} */ (reader.readEnum()); + msg.setAbility(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.AbilityToMoveMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.AbilityToMoveMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.AbilityToMoveMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.AbilityToMoveMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAbility(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } +}; + + +/** + * optional AbilityToMove ability = 1; + * @return {!proto.point.AbilityToMove} + */ +proto.point.AbilityToMoveMessage.prototype.getAbility = function() { + return /** @type {!proto.point.AbilityToMove} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.point.AbilityToMove} value + * @return {!proto.point.AbilityToMoveMessage} returns this + */ +proto.point.AbilityToMoveMessage.prototype.setAbility = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.SciMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.SciMessage.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.point.SciMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.SciMessage.toObject = function(includeInstance, msg) { + var f, obj = { + message: msg.getMessage_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.point.SciMessage} + */ +proto.point.SciMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.SciMessage; + return proto.point.SciMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.SciMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.SciMessage} + */ +proto.point.SciMessage.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.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.SciMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.SciMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.SciMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.SciMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMessage_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes message = 1; + * @return {string} + */ +proto.point.SciMessage.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes message = 1; + * This is a type-conversion wrapper around `getMessage()` + * @return {string} + */ +proto.point.SciMessage.prototype.getMessage_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getMessage())); +}; + + +/** + * optional bytes message = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getMessage()` + * @return {!Uint8Array} + */ +proto.point.SciMessage.prototype.getMessage_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getMessage())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.point.SciMessage} returns this + */ +proto.point.SciMessage.prototype.setMessage = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.PreventedPositionMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.PreventedPositionMessage.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.point.PreventedPositionMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.PreventedPositionMessage.toObject = function(includeInstance, msg) { + var f, obj = { + position: jspb.Message.getFieldWithDefault(msg, 1, 0), + degradedposition: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.point.PreventedPositionMessage} + */ +proto.point.PreventedPositionMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.PreventedPositionMessage; + return proto.point.PreventedPositionMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.PreventedPositionMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.PreventedPositionMessage} + */ +proto.point.PreventedPositionMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.point.PreventedPosition} */ (reader.readEnum()); + msg.setPosition(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDegradedposition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.PreventedPositionMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.PreventedPositionMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.PreventedPositionMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.PreventedPositionMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPosition(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getDegradedposition(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional PreventedPosition position = 1; + * @return {!proto.point.PreventedPosition} + */ +proto.point.PreventedPositionMessage.prototype.getPosition = function() { + return /** @type {!proto.point.PreventedPosition} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.point.PreventedPosition} value + * @return {!proto.point.PreventedPositionMessage} returns this + */ +proto.point.PreventedPositionMessage.prototype.setPosition = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional bool degradedPosition = 2; + * @return {boolean} + */ +proto.point.PreventedPositionMessage.prototype.getDegradedposition = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.point.PreventedPositionMessage} returns this + */ +proto.point.PreventedPositionMessage.prototype.setDegradedposition = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.DegradedPositionMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.DegradedPositionMessage.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.point.DegradedPositionMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.DegradedPositionMessage.toObject = function(includeInstance, msg) { + var f, obj = { + degradedposition: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.point.DegradedPositionMessage} + */ +proto.point.DegradedPositionMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.DegradedPositionMessage; + return proto.point.DegradedPositionMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.DegradedPositionMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.DegradedPositionMessage} + */ +proto.point.DegradedPositionMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDegradedposition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.DegradedPositionMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.DegradedPositionMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.DegradedPositionMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.DegradedPositionMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDegradedposition(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool degradedPosition = 1; + * @return {boolean} + */ +proto.point.DegradedPositionMessage.prototype.getDegradedposition = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.point.DegradedPositionMessage} returns this + */ +proto.point.DegradedPositionMessage.prototype.setDegradedposition = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.EnableMovementFailedMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.EnableMovementFailedMessage.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.point.EnableMovementFailedMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.EnableMovementFailedMessage.toObject = function(includeInstance, msg) { + var f, obj = { + enablemovementfailed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.point.EnableMovementFailedMessage} + */ +proto.point.EnableMovementFailedMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.EnableMovementFailedMessage; + return proto.point.EnableMovementFailedMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.EnableMovementFailedMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.EnableMovementFailedMessage} + */ +proto.point.EnableMovementFailedMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setEnablemovementfailed(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.EnableMovementFailedMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.EnableMovementFailedMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.EnableMovementFailedMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.EnableMovementFailedMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnablemovementfailed(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool enableMovementFailed = 1; + * @return {boolean} + */ +proto.point.EnableMovementFailedMessage.prototype.getEnablemovementfailed = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.point.EnableMovementFailedMessage} returns this + */ +proto.point.EnableMovementFailedMessage.prototype.setEnablemovementfailed = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.EnableInitializationTimeoutMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.EnableInitializationTimeoutMessage.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.point.EnableInitializationTimeoutMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.EnableInitializationTimeoutMessage.toObject = function(includeInstance, msg) { + var f, obj = { + enableinitializationtimeout: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.point.EnableInitializationTimeoutMessage} + */ +proto.point.EnableInitializationTimeoutMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.EnableInitializationTimeoutMessage; + return proto.point.EnableInitializationTimeoutMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.EnableInitializationTimeoutMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.EnableInitializationTimeoutMessage} + */ +proto.point.EnableInitializationTimeoutMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setEnableinitializationtimeout(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.EnableInitializationTimeoutMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.EnableInitializationTimeoutMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.EnableInitializationTimeoutMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.EnableInitializationTimeoutMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnableinitializationtimeout(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool EnableInitializationTimeout = 1; + * @return {boolean} + */ +proto.point.EnableInitializationTimeoutMessage.prototype.getEnableinitializationtimeout = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.point.EnableInitializationTimeoutMessage} returns this + */ +proto.point.EnableInitializationTimeoutMessage.prototype.setEnableinitializationtimeout = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.PointPositionMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.PointPositionMessage.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.point.PointPositionMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.PointPositionMessage.toObject = function(includeInstance, msg) { + var f, obj = { + position: jspb.Message.getFieldWithDefault(msg, 1, 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.point.PointPositionMessage} + */ +proto.point.PointPositionMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.PointPositionMessage; + return proto.point.PointPositionMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.PointPositionMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.PointPositionMessage} + */ +proto.point.PointPositionMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.point.PointPosition} */ (reader.readEnum()); + msg.setPosition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.PointPositionMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.PointPositionMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.PointPositionMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.PointPositionMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPosition(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } +}; + + +/** + * optional PointPosition position = 1; + * @return {!proto.point.PointPosition} + */ +proto.point.PointPositionMessage.prototype.getPosition = function() { + return /** @type {!proto.point.PointPosition} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.point.PointPosition} value + * @return {!proto.point.PointPositionMessage} returns this + */ +proto.point.PointPositionMessage.prototype.setPosition = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.point.PointDegradedPositionMessage.prototype.toObject = function(opt_includeInstance) { + return proto.point.PointDegradedPositionMessage.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.point.PointDegradedPositionMessage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.PointDegradedPositionMessage.toObject = function(includeInstance, msg) { + var f, obj = { + position: jspb.Message.getFieldWithDefault(msg, 1, 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.point.PointDegradedPositionMessage} + */ +proto.point.PointDegradedPositionMessage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.point.PointDegradedPositionMessage; + return proto.point.PointDegradedPositionMessage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.point.PointDegradedPositionMessage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.point.PointDegradedPositionMessage} + */ +proto.point.PointDegradedPositionMessage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.point.PointDegradedPosition} */ (reader.readEnum()); + msg.setPosition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.point.PointDegradedPositionMessage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.point.PointDegradedPositionMessage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.point.PointDegradedPositionMessage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.point.PointDegradedPositionMessage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPosition(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } +}; + + +/** + * optional PointDegradedPosition position = 1; + * @return {!proto.point.PointDegradedPosition} + */ +proto.point.PointDegradedPositionMessage.prototype.getPosition = function() { + return /** @type {!proto.point.PointDegradedPosition} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.point.PointDegradedPosition} value + * @return {!proto.point.PointDegradedPositionMessage} returns this + */ +proto.point.PointDegradedPositionMessage.prototype.setPosition = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * @enum {number} + */ +proto.point.PointPosition = { + RIGHT: 0, + LEFT: 1, + NOENDPOSITION: 2, + UNINTENDEDPOSITION: 3 +}; + +/** + * @enum {number} + */ +proto.point.PointDegradedPosition = { + DEGRADEDRIGHT: 0, + DEGRADEDLEFT: 1, + NOTDEGRADED: 2, + NOTAPPLICABLE: 3 +}; + +/** + * @enum {number} + */ +proto.point.PreventedPosition = { + DONOTPREVENT: 0, + SETUNINTENDEDORTRAILED: 1, + SETNOENDPOSITION: 2 +}; + +/** + * @enum {number} + */ +proto.point.AbilityToMove = { + ABLE_TO_MOVE: 0, + UNABLE_TO_MOVE: 1 +}; + +goog.object.extend(exports, proto.point); diff --git a/src/ProtobufInterfaces/proto/point.proto b/src/ProtobufInterfaces/proto/point.proto index b8f662b..c755d5a 100644 --- a/src/ProtobufInterfaces/proto/point.proto +++ b/src/ProtobufInterfaces/proto/point.proto @@ -41,7 +41,7 @@ service Point { rpc ScheduleTimeoutRight (EnableMovementFailedMessage) returns (google.protobuf.Empty) {} rpc ScheduleTimeoutLeft (EnableMovementFailedMessage) returns (google.protobuf.Empty) {} - rpc ScheduleInitializationFailed (EnableInitializationFailedMessage) returns (google.protobuf.Empty) {} + rpc ScheduleInitializationTimeout (EnableInitializationTimeoutMessage) returns (google.protobuf.Empty) {} rpc Reset (google.protobuf.Empty) returns (google.protobuf.Empty) {} } @@ -71,8 +71,8 @@ message EnableMovementFailedMessage { bool enableMovementFailed = 1; } -message EnableInitializationFailedMessage { - bool EnableInitializationFailed = 1; +message EnableInitializationTimeoutMessage { + bool EnableInitializationTimeout = 1; } message PointPositionMessage {