dodex-quarkus
Version:
A java asynchronous server for Dodex using quarkus
1,715 lines • 50 kB
JavaScript
// source: protos/handicap.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 = (function() { return this || window || global || self || Function('return this')(); }).call(null);
goog.exportSymbol('proto.handicap.grpc.Command', null, global);
goog.exportSymbol('proto.handicap.grpc.Course', null, global);
goog.exportSymbol('proto.handicap.grpc.Golfer', null, global);
goog.exportSymbol('proto.handicap.grpc.HandicapData', null, global);
goog.exportSymbol('proto.handicap.grpc.HandicapSetup', null, global);
goog.exportSymbol('proto.handicap.grpc.ListCoursesResponse', null, global);
goog.exportSymbol('proto.handicap.grpc.ListPublicGolfers', null, global);
goog.exportSymbol('proto.handicap.grpc.Rating', 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.handicap.grpc.HandicapSetup = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.handicap.grpc.HandicapSetup, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.HandicapSetup.displayName = 'proto.handicap.grpc.HandicapSetup';
}
/**
* 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.handicap.grpc.HandicapData = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.handicap.grpc.HandicapData, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.HandicapData.displayName = 'proto.handicap.grpc.HandicapData';
}
/**
* 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.handicap.grpc.Rating = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.handicap.grpc.Rating, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.Rating.displayName = 'proto.handicap.grpc.Rating';
}
/**
* 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.handicap.grpc.Course = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.handicap.grpc.Course.repeatedFields_, null);
};
goog.inherits(proto.handicap.grpc.Course, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.Course.displayName = 'proto.handicap.grpc.Course';
}
/**
* 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.handicap.grpc.ListCoursesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.handicap.grpc.ListCoursesResponse.repeatedFields_, null);
};
goog.inherits(proto.handicap.grpc.ListCoursesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.ListCoursesResponse.displayName = 'proto.handicap.grpc.ListCoursesResponse';
}
/**
* 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.handicap.grpc.Golfer = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.handicap.grpc.Golfer, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.Golfer.displayName = 'proto.handicap.grpc.Golfer';
}
/**
* 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.handicap.grpc.ListPublicGolfers = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.handicap.grpc.ListPublicGolfers.repeatedFields_, null);
};
goog.inherits(proto.handicap.grpc.ListPublicGolfers, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.ListPublicGolfers.displayName = 'proto.handicap.grpc.ListPublicGolfers';
}
/**
* 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.handicap.grpc.Command = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.handicap.grpc.Command, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.handicap.grpc.Command.displayName = 'proto.handicap.grpc.Command';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.HandicapSetup.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.HandicapSetup.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.handicap.grpc.HandicapSetup} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.HandicapSetup.toObject = function(includeInstance, msg) {
var f, obj = {
cmd: jspb.Message.getFieldWithDefault(msg, 1, 0),
json: jspb.Message.getFieldWithDefault(msg, 2, ""),
message: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.HandicapSetup}
*/
proto.handicap.grpc.HandicapSetup.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.HandicapSetup;
return proto.handicap.grpc.HandicapSetup.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.HandicapSetup} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.HandicapSetup}
*/
proto.handicap.grpc.HandicapSetup.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setCmd(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setJson(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.HandicapSetup.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.HandicapSetup.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.HandicapSetup} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.HandicapSetup.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCmd();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getJson();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional int32 cmd = 1;
* @return {number}
*/
proto.handicap.grpc.HandicapSetup.prototype.getCmd = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.HandicapSetup} returns this
*/
proto.handicap.grpc.HandicapSetup.prototype.setCmd = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string json = 2;
* @return {string}
*/
proto.handicap.grpc.HandicapSetup.prototype.getJson = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.HandicapSetup} returns this
*/
proto.handicap.grpc.HandicapSetup.prototype.setJson = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string message = 3;
* @return {string}
*/
proto.handicap.grpc.HandicapSetup.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.HandicapSetup} returns this
*/
proto.handicap.grpc.HandicapSetup.prototype.setMessage = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.HandicapData.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.HandicapData.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.handicap.grpc.HandicapData} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.HandicapData.toObject = function(includeInstance, msg) {
var f, obj = {
cmd: jspb.Message.getFieldWithDefault(msg, 1, 0),
json: jspb.Message.getFieldWithDefault(msg, 2, ""),
message: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.HandicapData}
*/
proto.handicap.grpc.HandicapData.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.HandicapData;
return proto.handicap.grpc.HandicapData.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.HandicapData} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.HandicapData}
*/
proto.handicap.grpc.HandicapData.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setCmd(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setJson(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.HandicapData.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.HandicapData.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.HandicapData} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.HandicapData.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCmd();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getJson();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional int32 cmd = 1;
* @return {number}
*/
proto.handicap.grpc.HandicapData.prototype.getCmd = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.HandicapData} returns this
*/
proto.handicap.grpc.HandicapData.prototype.setCmd = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string json = 2;
* @return {string}
*/
proto.handicap.grpc.HandicapData.prototype.getJson = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.HandicapData} returns this
*/
proto.handicap.grpc.HandicapData.prototype.setJson = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string message = 3;
* @return {string}
*/
proto.handicap.grpc.HandicapData.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.HandicapData} returns this
*/
proto.handicap.grpc.HandicapData.prototype.setMessage = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.Rating.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.Rating.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.handicap.grpc.Rating} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Rating.toObject = function(includeInstance, msg) {
var f, obj = {
tee: jspb.Message.getFieldWithDefault(msg, 1, 0),
rating: jspb.Message.getFieldWithDefault(msg, 2, ""),
slope: jspb.Message.getFieldWithDefault(msg, 3, 0),
par: jspb.Message.getFieldWithDefault(msg, 4, 0),
color: jspb.Message.getFieldWithDefault(msg, 5, ""),
seq: jspb.Message.getFieldWithDefault(msg, 6, 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.handicap.grpc.Rating}
*/
proto.handicap.grpc.Rating.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.Rating;
return proto.handicap.grpc.Rating.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.Rating} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.Rating}
*/
proto.handicap.grpc.Rating.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setTee(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setRating(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setSlope(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setPar(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setColor(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt32());
msg.setSeq(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.Rating.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.Rating.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.Rating} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Rating.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTee();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getRating();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSlope();
if (f !== 0) {
writer.writeInt32(
3,
f
);
}
f = message.getPar();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getColor();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getSeq();
if (f !== 0) {
writer.writeInt32(
6,
f
);
}
};
/**
* optional int32 tee = 1;
* @return {number}
*/
proto.handicap.grpc.Rating.prototype.getTee = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.Rating} returns this
*/
proto.handicap.grpc.Rating.prototype.setTee = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string rating = 2;
* @return {string}
*/
proto.handicap.grpc.Rating.prototype.getRating = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.Rating} returns this
*/
proto.handicap.grpc.Rating.prototype.setRating = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional int32 slope = 3;
* @return {number}
*/
proto.handicap.grpc.Rating.prototype.getSlope = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.Rating} returns this
*/
proto.handicap.grpc.Rating.prototype.setSlope = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional int32 par = 4;
* @return {number}
*/
proto.handicap.grpc.Rating.prototype.getPar = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.Rating} returns this
*/
proto.handicap.grpc.Rating.prototype.setPar = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional string color = 5;
* @return {string}
*/
proto.handicap.grpc.Rating.prototype.getColor = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.Rating} returns this
*/
proto.handicap.grpc.Rating.prototype.setColor = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional int32 seq = 6;
* @return {number}
*/
proto.handicap.grpc.Rating.prototype.getSeq = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.Rating} returns this
*/
proto.handicap.grpc.Rating.prototype.setSeq = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.handicap.grpc.Course.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.Course.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.Course.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.handicap.grpc.Course} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Course.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
ratingsList: jspb.Message.toObjectList(msg.getRatingsList(),
proto.handicap.grpc.Rating.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.Course}
*/
proto.handicap.grpc.Course.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.Course;
return proto.handicap.grpc.Course.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.Course} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.Course}
*/
proto.handicap.grpc.Course.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 3:
var value = new proto.handicap.grpc.Rating;
reader.readMessage(value,proto.handicap.grpc.Rating.deserializeBinaryFromReader);
msg.addRatings(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.Course.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.Course.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.Course} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Course.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getRatingsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.handicap.grpc.Rating.serializeBinaryToWriter
);
}
};
/**
* optional int32 id = 1;
* @return {number}
*/
proto.handicap.grpc.Course.prototype.getId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.Course} returns this
*/
proto.handicap.grpc.Course.prototype.setId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.handicap.grpc.Course.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.Course} returns this
*/
proto.handicap.grpc.Course.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated Rating ratings = 3;
* @return {!Array<!proto.handicap.grpc.Rating>}
*/
proto.handicap.grpc.Course.prototype.getRatingsList = function() {
return /** @type{!Array<!proto.handicap.grpc.Rating>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.handicap.grpc.Rating, 3));
};
/**
* @param {!Array<!proto.handicap.grpc.Rating>} value
* @return {!proto.handicap.grpc.Course} returns this
*/
proto.handicap.grpc.Course.prototype.setRatingsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.handicap.grpc.Rating=} opt_value
* @param {number=} opt_index
* @return {!proto.handicap.grpc.Rating}
*/
proto.handicap.grpc.Course.prototype.addRatings = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.handicap.grpc.Rating, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.handicap.grpc.Course} returns this
*/
proto.handicap.grpc.Course.prototype.clearRatingsList = function() {
return this.setRatingsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.handicap.grpc.ListCoursesResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.ListCoursesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.ListCoursesResponse.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.handicap.grpc.ListCoursesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.ListCoursesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
coursesList: jspb.Message.toObjectList(msg.getCoursesList(),
proto.handicap.grpc.Course.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.ListCoursesResponse}
*/
proto.handicap.grpc.ListCoursesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.ListCoursesResponse;
return proto.handicap.grpc.ListCoursesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.ListCoursesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.ListCoursesResponse}
*/
proto.handicap.grpc.ListCoursesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.handicap.grpc.Course;
reader.readMessage(value,proto.handicap.grpc.Course.deserializeBinaryFromReader);
msg.addCourses(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.ListCoursesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.ListCoursesResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.ListCoursesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.ListCoursesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCoursesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.handicap.grpc.Course.serializeBinaryToWriter
);
}
};
/**
* repeated Course courses = 1;
* @return {!Array<!proto.handicap.grpc.Course>}
*/
proto.handicap.grpc.ListCoursesResponse.prototype.getCoursesList = function() {
return /** @type{!Array<!proto.handicap.grpc.Course>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.handicap.grpc.Course, 1));
};
/**
* @param {!Array<!proto.handicap.grpc.Course>} value
* @return {!proto.handicap.grpc.ListCoursesResponse} returns this
*/
proto.handicap.grpc.ListCoursesResponse.prototype.setCoursesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.handicap.grpc.Course=} opt_value
* @param {number=} opt_index
* @return {!proto.handicap.grpc.Course}
*/
proto.handicap.grpc.ListCoursesResponse.prototype.addCourses = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.handicap.grpc.Course, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.handicap.grpc.ListCoursesResponse} returns this
*/
proto.handicap.grpc.ListCoursesResponse.prototype.clearCoursesList = function() {
return this.setCoursesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.Golfer.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.Golfer.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.handicap.grpc.Golfer} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Golfer.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.Golfer}
*/
proto.handicap.grpc.Golfer.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.Golfer;
return proto.handicap.grpc.Golfer.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.Golfer} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.Golfer}
*/
proto.handicap.grpc.Golfer.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.Golfer.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.Golfer.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.Golfer} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Golfer.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.handicap.grpc.Golfer.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.Golfer} returns this
*/
proto.handicap.grpc.Golfer.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.handicap.grpc.ListPublicGolfers.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.ListPublicGolfers.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.ListPublicGolfers.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.handicap.grpc.ListPublicGolfers} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.ListPublicGolfers.toObject = function(includeInstance, msg) {
var f, obj = {
golferList: jspb.Message.toObjectList(msg.getGolferList(),
proto.handicap.grpc.Golfer.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.ListPublicGolfers}
*/
proto.handicap.grpc.ListPublicGolfers.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.ListPublicGolfers;
return proto.handicap.grpc.ListPublicGolfers.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.ListPublicGolfers} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.ListPublicGolfers}
*/
proto.handicap.grpc.ListPublicGolfers.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.handicap.grpc.Golfer;
reader.readMessage(value,proto.handicap.grpc.Golfer.deserializeBinaryFromReader);
msg.addGolfer(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.ListPublicGolfers.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.ListPublicGolfers.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.ListPublicGolfers} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.ListPublicGolfers.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getGolferList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.handicap.grpc.Golfer.serializeBinaryToWriter
);
}
};
/**
* repeated Golfer golfer = 1;
* @return {!Array<!proto.handicap.grpc.Golfer>}
*/
proto.handicap.grpc.ListPublicGolfers.prototype.getGolferList = function() {
return /** @type{!Array<!proto.handicap.grpc.Golfer>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.handicap.grpc.Golfer, 1));
};
/**
* @param {!Array<!proto.handicap.grpc.Golfer>} value
* @return {!proto.handicap.grpc.ListPublicGolfers} returns this
*/
proto.handicap.grpc.ListPublicGolfers.prototype.setGolferList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.handicap.grpc.Golfer=} opt_value
* @param {number=} opt_index
* @return {!proto.handicap.grpc.Golfer}
*/
proto.handicap.grpc.ListPublicGolfers.prototype.addGolfer = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.handicap.grpc.Golfer, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.handicap.grpc.ListPublicGolfers} returns this
*/
proto.handicap.grpc.ListPublicGolfers.prototype.clearGolferList = function() {
return this.setGolferList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.handicap.grpc.Command.prototype.toObject = function(opt_includeInstance) {
return proto.handicap.grpc.Command.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.handicap.grpc.Command} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Command.toObject = function(includeInstance, msg) {
var f, obj = {
cmd: jspb.Message.getFieldWithDefault(msg, 1, 0),
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
json: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.handicap.grpc.Command}
*/
proto.handicap.grpc.Command.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.handicap.grpc.Command;
return proto.handicap.grpc.Command.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.handicap.grpc.Command} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.handicap.grpc.Command}
*/
proto.handicap.grpc.Command.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setCmd(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setKey(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setJson(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.handicap.grpc.Command.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.handicap.grpc.Command.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.handicap.grpc.Command} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.handicap.grpc.Command.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCmd();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getKey();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getJson();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional int32 cmd = 1;
* @return {number}
*/
proto.handicap.grpc.Command.prototype.getCmd = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.handicap.grpc.Command} returns this
*/
proto.handicap.grpc.Command.prototype.setCmd = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string key = 2;
* @return {string}
*/
proto.handicap.grpc.Command.prototype.getKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.Command} returns this
*/
proto.handicap.grpc.Command.prototype.setKey = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string json = 3;
* @return {string}
*/
proto.handicap.grpc.Command.prototype.getJson = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.handicap.grpc.Command} returns this
*/
proto.handicap.grpc.Command.prototype.setJson = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
goog.object.extend(exports, proto.handicap.grpc);