|
@@ -22,7 +22,9 @@ var global = (function() {
|
|
|
}.call(null));
|
|
|
|
|
|
goog.exportSymbol('proto.auth.AuthorizationHeader', null, global);
|
|
|
+goog.exportSymbol('proto.auth.ConnectionValidationResponse', null, global);
|
|
|
goog.exportSymbol('proto.auth.SessionValidationResponse', null, global);
|
|
|
+goog.exportSymbol('proto.auth.WebsocketConnectionAuthorizationHeader', null, global);
|
|
|
/**
|
|
|
* Generated by JsPbCodeGenerator.
|
|
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -65,6 +67,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
*/
|
|
|
proto.auth.SessionValidationResponse.displayName = 'proto.auth.SessionValidationResponse';
|
|
|
}
|
|
|
+/**
|
|
|
+ * 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.auth.WebsocketConnectionAuthorizationHeader = function(opt_data) {
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
+};
|
|
|
+goog.inherits(proto.auth.WebsocketConnectionAuthorizationHeader, jspb.Message);
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
+ /**
|
|
|
+ * @public
|
|
|
+ * @override
|
|
|
+ */
|
|
|
+ proto.auth.WebsocketConnectionAuthorizationHeader.displayName = 'proto.auth.WebsocketConnectionAuthorizationHeader';
|
|
|
+}
|
|
|
+/**
|
|
|
+ * 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.auth.ConnectionValidationResponse = function(opt_data) {
|
|
|
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
+};
|
|
|
+goog.inherits(proto.auth.ConnectionValidationResponse, jspb.Message);
|
|
|
+if (goog.DEBUG && !COMPILED) {
|
|
|
+ /**
|
|
|
+ * @public
|
|
|
+ * @override
|
|
|
+ */
|
|
|
+ proto.auth.ConnectionValidationResponse.displayName = 'proto.auth.ConnectionValidationResponse';
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
@@ -325,4 +369,264 @@ proto.auth.SessionValidationResponse.prototype.setCrossServiceToken = function(v
|
|
|
};
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+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.auth.WebsocketConnectionAuthorizationHeader.prototype.toObject = function(opt_includeInstance) {
|
|
|
+ return proto.auth.WebsocketConnectionAuthorizationHeader.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.auth.WebsocketConnectionAuthorizationHeader} msg The msg instance to transform.
|
|
|
+ * @return {!Object}
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.toObject = function(includeInstance, msg) {
|
|
|
+ var f, obj = {
|
|
|
+ token: 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.auth.WebsocketConnectionAuthorizationHeader}
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.deserializeBinary = function(bytes) {
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
+ var msg = new proto.auth.WebsocketConnectionAuthorizationHeader;
|
|
|
+ return proto.auth.WebsocketConnectionAuthorizationHeader.deserializeBinaryFromReader(msg, reader);
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
+ * given reader into the given message object.
|
|
|
+ * @param {!proto.auth.WebsocketConnectionAuthorizationHeader} msg The message object to deserialize into.
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
+ * @return {!proto.auth.WebsocketConnectionAuthorizationHeader}
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.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.setToken(value);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ reader.skipField();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return msg;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
+ * @return {!Uint8Array}
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.prototype.serializeBinary = function() {
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
+ proto.auth.WebsocketConnectionAuthorizationHeader.serializeBinaryToWriter(this, writer);
|
|
|
+ return writer.getResultBuffer();
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
+ * @param {!proto.auth.WebsocketConnectionAuthorizationHeader} message
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.serializeBinaryToWriter = function(message, writer) {
|
|
|
+ var f = undefined;
|
|
|
+ f = message.getToken();
|
|
|
+ if (f.length > 0) {
|
|
|
+ writer.writeString(
|
|
|
+ 1,
|
|
|
+ f
|
|
|
+ );
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * optional string token = 1;
|
|
|
+ * @return {string}
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.prototype.getToken = function() {
|
|
|
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @param {string} value
|
|
|
+ * @return {!proto.auth.WebsocketConnectionAuthorizationHeader} returns this
|
|
|
+ */
|
|
|
+proto.auth.WebsocketConnectionAuthorizationHeader.prototype.setToken = function(value) {
|
|
|
+ return jspb.Message.setProto3StringField(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_<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.auth.ConnectionValidationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
+ return proto.auth.ConnectionValidationResponse.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.auth.ConnectionValidationResponse} msg The msg instance to transform.
|
|
|
+ * @return {!Object}
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.toObject = function(includeInstance, msg) {
|
|
|
+ var f, obj = {
|
|
|
+ crossServiceToken: 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.auth.ConnectionValidationResponse}
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.deserializeBinary = function(bytes) {
|
|
|
+ var reader = new jspb.BinaryReader(bytes);
|
|
|
+ var msg = new proto.auth.ConnectionValidationResponse;
|
|
|
+ return proto.auth.ConnectionValidationResponse.deserializeBinaryFromReader(msg, reader);
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Deserializes binary data (in protobuf wire format) from the
|
|
|
+ * given reader into the given message object.
|
|
|
+ * @param {!proto.auth.ConnectionValidationResponse} msg The message object to deserialize into.
|
|
|
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
|
+ * @return {!proto.auth.ConnectionValidationResponse}
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.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.setCrossServiceToken(value);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ reader.skipField();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return msg;
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Serializes the message to binary data (in protobuf wire format).
|
|
|
+ * @return {!Uint8Array}
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.prototype.serializeBinary = function() {
|
|
|
+ var writer = new jspb.BinaryWriter();
|
|
|
+ proto.auth.ConnectionValidationResponse.serializeBinaryToWriter(this, writer);
|
|
|
+ return writer.getResultBuffer();
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Serializes the given message to binary data (in protobuf wire
|
|
|
+ * format), writing to the given BinaryWriter.
|
|
|
+ * @param {!proto.auth.ConnectionValidationResponse} message
|
|
|
+ * @param {!jspb.BinaryWriter} writer
|
|
|
+ * @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
|
+ var f = undefined;
|
|
|
+ f = message.getCrossServiceToken();
|
|
|
+ if (f.length > 0) {
|
|
|
+ writer.writeString(
|
|
|
+ 1,
|
|
|
+ f
|
|
|
+ );
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * optional string cross_service_token = 1;
|
|
|
+ * @return {string}
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.prototype.getCrossServiceToken = function() {
|
|
|
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @param {string} value
|
|
|
+ * @return {!proto.auth.ConnectionValidationResponse} returns this
|
|
|
+ */
|
|
|
+proto.auth.ConnectionValidationResponse.prototype.setCrossServiceToken = function(value) {
|
|
|
+ return jspb.Message.setProto3StringField(this, 1, value);
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
goog.object.extend(exports, proto.auth);
|