|
| 1 | +// source: cs3/app/provider/v1beta1/resources.proto |
| 2 | +/** |
| 3 | + * @fileoverview |
| 4 | + * @enhanceable |
| 5 | + * @suppress {missingRequire} reports error on implicit type usages. |
| 6 | + * @suppress {messageConventions} JS Compiler reports an error if a variable or |
| 7 | + * field starts with 'MSG_' and isn't a translatable message. |
| 8 | + * @public |
| 9 | + */ |
| 10 | +// GENERATED CODE -- DO NOT EDIT! |
| 11 | +/* eslint-disable */ |
| 12 | +// @ts-nocheck |
| 13 | + |
| 14 | +var jspb = require('google-protobuf'); |
| 15 | +var goog = jspb; |
| 16 | +var global = Function('return this')(); |
| 17 | + |
| 18 | +goog.exportSymbol('proto.cs3.app.provider.v1beta1.OpenInAppURL', null, global); |
| 19 | +/** |
| 20 | + * Generated by JsPbCodeGenerator. |
| 21 | + * @param {Array=} opt_data Optional initial data array, typically from a |
| 22 | + * server response, or constructed directly in Javascript. The array is used |
| 23 | + * in place and becomes part of the constructed object. It is not cloned. |
| 24 | + * If no data is provided, the constructed object will be empty, but still |
| 25 | + * valid. |
| 26 | + * @extends {jspb.Message} |
| 27 | + * @constructor |
| 28 | + */ |
| 29 | +proto.cs3.app.provider.v1beta1.OpenInAppURL = function(opt_data) { |
| 30 | + jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 31 | +}; |
| 32 | +goog.inherits(proto.cs3.app.provider.v1beta1.OpenInAppURL, jspb.Message); |
| 33 | +if (goog.DEBUG && !COMPILED) { |
| 34 | + /** |
| 35 | + * @public |
| 36 | + * @override |
| 37 | + */ |
| 38 | + proto.cs3.app.provider.v1beta1.OpenInAppURL.displayName = 'proto.cs3.app.provider.v1beta1.OpenInAppURL'; |
| 39 | +} |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +if (jspb.Message.GENERATE_TO_OBJECT) { |
| 44 | +/** |
| 45 | + * Creates an object representation of this proto. |
| 46 | + * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 47 | + * Optional fields that are not set will be set to undefined. |
| 48 | + * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 49 | + * For the list of reserved names please see: |
| 50 | + * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 51 | + * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 52 | + * JSPB instance for transitional soy proto support: |
| 53 | + * http://goto/soy-param-migration |
| 54 | + * @return {!Object} |
| 55 | + */ |
| 56 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.toObject = function(opt_includeInstance) { |
| 57 | + return proto.cs3.app.provider.v1beta1.OpenInAppURL.toObject(opt_includeInstance, this); |
| 58 | +}; |
| 59 | + |
| 60 | + |
| 61 | +/** |
| 62 | + * Static version of the {@see toObject} method. |
| 63 | + * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 64 | + * the JSPB instance for transitional soy proto support: |
| 65 | + * http://goto/soy-param-migration |
| 66 | + * @param {!proto.cs3.app.provider.v1beta1.OpenInAppURL} msg The msg instance to transform. |
| 67 | + * @return {!Object} |
| 68 | + * @suppress {unusedLocalVariables} f is only used for nested messages |
| 69 | + */ |
| 70 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.toObject = function(includeInstance, msg) { |
| 71 | + var f, obj = { |
| 72 | + appUrl: jspb.Message.getFieldWithDefault(msg, 1, ""), |
| 73 | + method: jspb.Message.getFieldWithDefault(msg, 2, ""), |
| 74 | + formParametersMap: (f = msg.getFormParametersMap()) ? f.toObject(includeInstance, undefined) : [], |
| 75 | + headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : [] |
| 76 | + }; |
| 77 | + |
| 78 | + if (includeInstance) { |
| 79 | + obj.$jspbMessageInstance = msg; |
| 80 | + } |
| 81 | + return obj; |
| 82 | +}; |
| 83 | +} |
| 84 | + |
| 85 | + |
| 86 | +/** |
| 87 | + * Deserializes binary data (in protobuf wire format). |
| 88 | + * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 89 | + * @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} |
| 90 | + */ |
| 91 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.deserializeBinary = function(bytes) { |
| 92 | + var reader = new jspb.BinaryReader(bytes); |
| 93 | + var msg = new proto.cs3.app.provider.v1beta1.OpenInAppURL; |
| 94 | + return proto.cs3.app.provider.v1beta1.OpenInAppURL.deserializeBinaryFromReader(msg, reader); |
| 95 | +}; |
| 96 | + |
| 97 | + |
| 98 | +/** |
| 99 | + * Deserializes binary data (in protobuf wire format) from the |
| 100 | + * given reader into the given message object. |
| 101 | + * @param {!proto.cs3.app.provider.v1beta1.OpenInAppURL} msg The message object to deserialize into. |
| 102 | + * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 103 | + * @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} |
| 104 | + */ |
| 105 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.deserializeBinaryFromReader = function(msg, reader) { |
| 106 | + while (reader.nextField()) { |
| 107 | + if (reader.isEndGroup()) { |
| 108 | + break; |
| 109 | + } |
| 110 | + var field = reader.getFieldNumber(); |
| 111 | + switch (field) { |
| 112 | + case 1: |
| 113 | + var value = /** @type {string} */ (reader.readString()); |
| 114 | + msg.setAppUrl(value); |
| 115 | + break; |
| 116 | + case 2: |
| 117 | + var value = /** @type {string} */ (reader.readString()); |
| 118 | + msg.setMethod(value); |
| 119 | + break; |
| 120 | + case 3: |
| 121 | + var value = msg.getFormParametersMap(); |
| 122 | + reader.readMessage(value, function(message, reader) { |
| 123 | + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); |
| 124 | + }); |
| 125 | + break; |
| 126 | + case 4: |
| 127 | + var value = msg.getHeadersMap(); |
| 128 | + reader.readMessage(value, function(message, reader) { |
| 129 | + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); |
| 130 | + }); |
| 131 | + break; |
| 132 | + default: |
| 133 | + reader.skipField(); |
| 134 | + break; |
| 135 | + } |
| 136 | + } |
| 137 | + return msg; |
| 138 | +}; |
| 139 | + |
| 140 | + |
| 141 | +/** |
| 142 | + * Serializes the message to binary data (in protobuf wire format). |
| 143 | + * @return {!Uint8Array} |
| 144 | + */ |
| 145 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.serializeBinary = function() { |
| 146 | + var writer = new jspb.BinaryWriter(); |
| 147 | + proto.cs3.app.provider.v1beta1.OpenInAppURL.serializeBinaryToWriter(this, writer); |
| 148 | + return writer.getResultBuffer(); |
| 149 | +}; |
| 150 | + |
| 151 | + |
| 152 | +/** |
| 153 | + * Serializes the given message to binary data (in protobuf wire |
| 154 | + * format), writing to the given BinaryWriter. |
| 155 | + * @param {!proto.cs3.app.provider.v1beta1.OpenInAppURL} message |
| 156 | + * @param {!jspb.BinaryWriter} writer |
| 157 | + * @suppress {unusedLocalVariables} f is only used for nested messages |
| 158 | + */ |
| 159 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.serializeBinaryToWriter = function(message, writer) { |
| 160 | + var f = undefined; |
| 161 | + f = message.getAppUrl(); |
| 162 | + if (f.length > 0) { |
| 163 | + writer.writeString( |
| 164 | + 1, |
| 165 | + f |
| 166 | + ); |
| 167 | + } |
| 168 | + f = message.getMethod(); |
| 169 | + if (f.length > 0) { |
| 170 | + writer.writeString( |
| 171 | + 2, |
| 172 | + f |
| 173 | + ); |
| 174 | + } |
| 175 | + f = message.getFormParametersMap(true); |
| 176 | + if (f && f.getLength() > 0) { |
| 177 | + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); |
| 178 | + } |
| 179 | + f = message.getHeadersMap(true); |
| 180 | + if (f && f.getLength() > 0) { |
| 181 | + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); |
| 182 | + } |
| 183 | +}; |
| 184 | + |
| 185 | + |
| 186 | +/** |
| 187 | + * optional string app_url = 1; |
| 188 | + * @return {string} |
| 189 | + */ |
| 190 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getAppUrl = function() { |
| 191 | + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 192 | +}; |
| 193 | + |
| 194 | + |
| 195 | +/** |
| 196 | + * @param {string} value |
| 197 | + * @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this |
| 198 | + */ |
| 199 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.setAppUrl = function(value) { |
| 200 | + return jspb.Message.setProto3StringField(this, 1, value); |
| 201 | +}; |
| 202 | + |
| 203 | + |
| 204 | +/** |
| 205 | + * optional string method = 2; |
| 206 | + * @return {string} |
| 207 | + */ |
| 208 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getMethod = function() { |
| 209 | + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); |
| 210 | +}; |
| 211 | + |
| 212 | + |
| 213 | +/** |
| 214 | + * @param {string} value |
| 215 | + * @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this |
| 216 | + */ |
| 217 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.setMethod = function(value) { |
| 218 | + return jspb.Message.setProto3StringField(this, 2, value); |
| 219 | +}; |
| 220 | + |
| 221 | + |
| 222 | +/** |
| 223 | + * map<string, string> form_parameters = 3; |
| 224 | + * @param {boolean=} opt_noLazyCreate Do not create the map if |
| 225 | + * empty, instead returning `undefined` |
| 226 | + * @return {!jspb.Map<string,string>} |
| 227 | + */ |
| 228 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getFormParametersMap = function(opt_noLazyCreate) { |
| 229 | + return /** @type {!jspb.Map<string,string>} */ ( |
| 230 | + jspb.Message.getMapField(this, 3, opt_noLazyCreate, |
| 231 | + null)); |
| 232 | +}; |
| 233 | + |
| 234 | + |
| 235 | +/** |
| 236 | + * Clears values from the map. The map will be non-null. |
| 237 | + * @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this |
| 238 | + */ |
| 239 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.clearFormParametersMap = function() { |
| 240 | + this.getFormParametersMap().clear(); |
| 241 | + return this;}; |
| 242 | + |
| 243 | + |
| 244 | +/** |
| 245 | + * map<string, string> headers = 4; |
| 246 | + * @param {boolean=} opt_noLazyCreate Do not create the map if |
| 247 | + * empty, instead returning `undefined` |
| 248 | + * @return {!jspb.Map<string,string>} |
| 249 | + */ |
| 250 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getHeadersMap = function(opt_noLazyCreate) { |
| 251 | + return /** @type {!jspb.Map<string,string>} */ ( |
| 252 | + jspb.Message.getMapField(this, 4, opt_noLazyCreate, |
| 253 | + null)); |
| 254 | +}; |
| 255 | + |
| 256 | + |
| 257 | +/** |
| 258 | + * Clears values from the map. The map will be non-null. |
| 259 | + * @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this |
| 260 | + */ |
| 261 | +proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.clearHeadersMap = function() { |
| 262 | + this.getHeadersMap().clear(); |
| 263 | + return this;}; |
| 264 | + |
| 265 | + |
| 266 | +goog.object.extend(exports, proto.cs3.app.provider.v1beta1); |
0 commit comments