@sniipwebmaster/agent-billing-client-grpcweb 24.11.3020 → 24.11.3044
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3235,5 +3235,66 @@ proto.agentbillingserviceapi.AgentBillingServiceAPIServicePromiseClient.prototyp
|
|
|
3235
3235
|
};
|
|
3236
3236
|
|
|
3237
3237
|
|
|
3238
|
+
/**
|
|
3239
|
+
* @const
|
|
3240
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
3241
|
+
* !proto.agentbillingserviceapi.CreateAgentAttachmentRequest,
|
|
3242
|
+
* !proto.agentbillingserviceapi.CreateAgentAttachmentResponse>}
|
|
3243
|
+
*/
|
|
3244
|
+
const methodDescriptor_AgentBillingServiceAPIService_CreateAgentAttachment = new grpc.web.MethodDescriptor(
|
|
3245
|
+
'/agentbillingserviceapi.AgentBillingServiceAPIService/CreateAgentAttachment',
|
|
3246
|
+
grpc.web.MethodType.UNARY,
|
|
3247
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest,
|
|
3248
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse,
|
|
3249
|
+
/**
|
|
3250
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} request
|
|
3251
|
+
* @return {!Uint8Array}
|
|
3252
|
+
*/
|
|
3253
|
+
function(request) {
|
|
3254
|
+
return request.serializeBinary();
|
|
3255
|
+
},
|
|
3256
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.deserializeBinary
|
|
3257
|
+
);
|
|
3258
|
+
|
|
3259
|
+
|
|
3260
|
+
/**
|
|
3261
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} request The
|
|
3262
|
+
* request proto
|
|
3263
|
+
* @param {?Object<string, string>} metadata User defined
|
|
3264
|
+
* call metadata
|
|
3265
|
+
* @param {function(?grpc.web.RpcError, ?proto.agentbillingserviceapi.CreateAgentAttachmentResponse)}
|
|
3266
|
+
* callback The callback function(error, response)
|
|
3267
|
+
* @return {!grpc.web.ClientReadableStream<!proto.agentbillingserviceapi.CreateAgentAttachmentResponse>|undefined}
|
|
3268
|
+
* The XHR Node Readable Stream
|
|
3269
|
+
*/
|
|
3270
|
+
proto.agentbillingserviceapi.AgentBillingServiceAPIServiceClient.prototype.createAgentAttachment =
|
|
3271
|
+
function(request, metadata, callback) {
|
|
3272
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
3273
|
+
'/agentbillingserviceapi.AgentBillingServiceAPIService/CreateAgentAttachment',
|
|
3274
|
+
request,
|
|
3275
|
+
metadata || {},
|
|
3276
|
+
methodDescriptor_AgentBillingServiceAPIService_CreateAgentAttachment,
|
|
3277
|
+
callback);
|
|
3278
|
+
};
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
/**
|
|
3282
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} request The
|
|
3283
|
+
* request proto
|
|
3284
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
3285
|
+
* call metadata
|
|
3286
|
+
* @return {!Promise<!proto.agentbillingserviceapi.CreateAgentAttachmentResponse>}
|
|
3287
|
+
* Promise that resolves to the response
|
|
3288
|
+
*/
|
|
3289
|
+
proto.agentbillingserviceapi.AgentBillingServiceAPIServicePromiseClient.prototype.createAgentAttachment =
|
|
3290
|
+
function(request, metadata) {
|
|
3291
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
3292
|
+
'/agentbillingserviceapi.AgentBillingServiceAPIService/CreateAgentAttachment',
|
|
3293
|
+
request,
|
|
3294
|
+
metadata || {},
|
|
3295
|
+
methodDescriptor_AgentBillingServiceAPIService_CreateAgentAttachment);
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
|
|
3238
3299
|
module.exports = proto.agentbillingserviceapi;
|
|
3239
3300
|
|
|
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null,
|
|
|
35
35
|
goog.exportSymbol('proto.agentbillingserviceapi.CheckConnectionRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
|
|
37
37
|
goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentAttachmentRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentAttachmentResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentBillRequest', null, global);
|
|
39
41
|
goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentBillsResponse', null, global);
|
|
40
42
|
goog.exportSymbol('proto.agentbillingserviceapi.CreateAndPayDeliveryBatchRequest', null, global);
|
|
@@ -2089,6 +2091,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2089
2091
|
*/
|
|
2090
2092
|
proto.agentbillingserviceapi.DownloadReceiptsCsvForClientInPeriodRequest.displayName = 'proto.agentbillingserviceapi.DownloadReceiptsCsvForClientInPeriodRequest';
|
|
2091
2093
|
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Generated by JsPbCodeGenerator.
|
|
2096
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2097
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2098
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2099
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2100
|
+
* valid.
|
|
2101
|
+
* @extends {jspb.Message}
|
|
2102
|
+
* @constructor
|
|
2103
|
+
*/
|
|
2104
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest = function(opt_data) {
|
|
2105
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2106
|
+
};
|
|
2107
|
+
goog.inherits(proto.agentbillingserviceapi.CreateAgentAttachmentRequest, jspb.Message);
|
|
2108
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2109
|
+
/**
|
|
2110
|
+
* @public
|
|
2111
|
+
* @override
|
|
2112
|
+
*/
|
|
2113
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.displayName = 'proto.agentbillingserviceapi.CreateAgentAttachmentRequest';
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* Generated by JsPbCodeGenerator.
|
|
2117
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2118
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2119
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2120
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2121
|
+
* valid.
|
|
2122
|
+
* @extends {jspb.Message}
|
|
2123
|
+
* @constructor
|
|
2124
|
+
*/
|
|
2125
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse = function(opt_data) {
|
|
2126
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2127
|
+
};
|
|
2128
|
+
goog.inherits(proto.agentbillingserviceapi.CreateAgentAttachmentResponse, jspb.Message);
|
|
2129
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2130
|
+
/**
|
|
2131
|
+
* @public
|
|
2132
|
+
* @override
|
|
2133
|
+
*/
|
|
2134
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.displayName = 'proto.agentbillingserviceapi.CreateAgentAttachmentResponse';
|
|
2135
|
+
}
|
|
2092
2136
|
|
|
2093
2137
|
|
|
2094
2138
|
|
|
@@ -26082,6 +26126,437 @@ proto.agentbillingserviceapi.DownloadReceiptsCsvForClientInPeriodRequest.prototy
|
|
|
26082
26126
|
};
|
|
26083
26127
|
|
|
26084
26128
|
|
|
26129
|
+
|
|
26130
|
+
|
|
26131
|
+
|
|
26132
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
26133
|
+
/**
|
|
26134
|
+
* Creates an object representation of this proto.
|
|
26135
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
26136
|
+
* Optional fields that are not set will be set to undefined.
|
|
26137
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
26138
|
+
* For the list of reserved names please see:
|
|
26139
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
26140
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
26141
|
+
* JSPB instance for transitional soy proto support:
|
|
26142
|
+
* http://goto/soy-param-migration
|
|
26143
|
+
* @return {!Object}
|
|
26144
|
+
*/
|
|
26145
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.toObject = function(opt_includeInstance) {
|
|
26146
|
+
return proto.agentbillingserviceapi.CreateAgentAttachmentRequest.toObject(opt_includeInstance, this);
|
|
26147
|
+
};
|
|
26148
|
+
|
|
26149
|
+
|
|
26150
|
+
/**
|
|
26151
|
+
* Static version of the {@see toObject} method.
|
|
26152
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
26153
|
+
* the JSPB instance for transitional soy proto support:
|
|
26154
|
+
* http://goto/soy-param-migration
|
|
26155
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} msg The msg instance to transform.
|
|
26156
|
+
* @return {!Object}
|
|
26157
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26158
|
+
*/
|
|
26159
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.toObject = function(includeInstance, msg) {
|
|
26160
|
+
var f, obj = {
|
|
26161
|
+
attachmentid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
26162
|
+
agentid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
26163
|
+
clientid: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
26164
|
+
uploadbatchid: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
26165
|
+
filename: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
26166
|
+
};
|
|
26167
|
+
|
|
26168
|
+
if (includeInstance) {
|
|
26169
|
+
obj.$jspbMessageInstance = msg;
|
|
26170
|
+
}
|
|
26171
|
+
return obj;
|
|
26172
|
+
};
|
|
26173
|
+
}
|
|
26174
|
+
|
|
26175
|
+
|
|
26176
|
+
/**
|
|
26177
|
+
* Deserializes binary data (in protobuf wire format).
|
|
26178
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
26179
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest}
|
|
26180
|
+
*/
|
|
26181
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.deserializeBinary = function(bytes) {
|
|
26182
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
26183
|
+
var msg = new proto.agentbillingserviceapi.CreateAgentAttachmentRequest;
|
|
26184
|
+
return proto.agentbillingserviceapi.CreateAgentAttachmentRequest.deserializeBinaryFromReader(msg, reader);
|
|
26185
|
+
};
|
|
26186
|
+
|
|
26187
|
+
|
|
26188
|
+
/**
|
|
26189
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
26190
|
+
* given reader into the given message object.
|
|
26191
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} msg The message object to deserialize into.
|
|
26192
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
26193
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest}
|
|
26194
|
+
*/
|
|
26195
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
26196
|
+
while (reader.nextField()) {
|
|
26197
|
+
if (reader.isEndGroup()) {
|
|
26198
|
+
break;
|
|
26199
|
+
}
|
|
26200
|
+
var field = reader.getFieldNumber();
|
|
26201
|
+
switch (field) {
|
|
26202
|
+
case 1:
|
|
26203
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
26204
|
+
msg.setAttachmentid(value);
|
|
26205
|
+
break;
|
|
26206
|
+
case 2:
|
|
26207
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
26208
|
+
msg.setAgentid(value);
|
|
26209
|
+
break;
|
|
26210
|
+
case 3:
|
|
26211
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
26212
|
+
msg.setClientid(value);
|
|
26213
|
+
break;
|
|
26214
|
+
case 4:
|
|
26215
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
26216
|
+
msg.setUploadbatchid(value);
|
|
26217
|
+
break;
|
|
26218
|
+
case 5:
|
|
26219
|
+
var value = /** @type {string} */ (reader.readString());
|
|
26220
|
+
msg.setFilename(value);
|
|
26221
|
+
break;
|
|
26222
|
+
default:
|
|
26223
|
+
reader.skipField();
|
|
26224
|
+
break;
|
|
26225
|
+
}
|
|
26226
|
+
}
|
|
26227
|
+
return msg;
|
|
26228
|
+
};
|
|
26229
|
+
|
|
26230
|
+
|
|
26231
|
+
/**
|
|
26232
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
26233
|
+
* @return {!Uint8Array}
|
|
26234
|
+
*/
|
|
26235
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.serializeBinary = function() {
|
|
26236
|
+
var writer = new jspb.BinaryWriter();
|
|
26237
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.serializeBinaryToWriter(this, writer);
|
|
26238
|
+
return writer.getResultBuffer();
|
|
26239
|
+
};
|
|
26240
|
+
|
|
26241
|
+
|
|
26242
|
+
/**
|
|
26243
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
26244
|
+
* format), writing to the given BinaryWriter.
|
|
26245
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} message
|
|
26246
|
+
* @param {!jspb.BinaryWriter} writer
|
|
26247
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26248
|
+
*/
|
|
26249
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.serializeBinaryToWriter = function(message, writer) {
|
|
26250
|
+
var f = undefined;
|
|
26251
|
+
f = message.getAttachmentid();
|
|
26252
|
+
if (f !== 0) {
|
|
26253
|
+
writer.writeInt64(
|
|
26254
|
+
1,
|
|
26255
|
+
f
|
|
26256
|
+
);
|
|
26257
|
+
}
|
|
26258
|
+
f = message.getAgentid();
|
|
26259
|
+
if (f !== 0) {
|
|
26260
|
+
writer.writeInt64(
|
|
26261
|
+
2,
|
|
26262
|
+
f
|
|
26263
|
+
);
|
|
26264
|
+
}
|
|
26265
|
+
f = message.getClientid();
|
|
26266
|
+
if (f !== 0) {
|
|
26267
|
+
writer.writeInt64(
|
|
26268
|
+
3,
|
|
26269
|
+
f
|
|
26270
|
+
);
|
|
26271
|
+
}
|
|
26272
|
+
f = message.getUploadbatchid();
|
|
26273
|
+
if (f !== 0) {
|
|
26274
|
+
writer.writeInt64(
|
|
26275
|
+
4,
|
|
26276
|
+
f
|
|
26277
|
+
);
|
|
26278
|
+
}
|
|
26279
|
+
f = message.getFilename();
|
|
26280
|
+
if (f.length > 0) {
|
|
26281
|
+
writer.writeString(
|
|
26282
|
+
5,
|
|
26283
|
+
f
|
|
26284
|
+
);
|
|
26285
|
+
}
|
|
26286
|
+
};
|
|
26287
|
+
|
|
26288
|
+
|
|
26289
|
+
/**
|
|
26290
|
+
* optional int64 attachmentId = 1;
|
|
26291
|
+
* @return {number}
|
|
26292
|
+
*/
|
|
26293
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.getAttachmentid = function() {
|
|
26294
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
26295
|
+
};
|
|
26296
|
+
|
|
26297
|
+
|
|
26298
|
+
/**
|
|
26299
|
+
* @param {number} value
|
|
26300
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} returns this
|
|
26301
|
+
*/
|
|
26302
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.setAttachmentid = function(value) {
|
|
26303
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
26304
|
+
};
|
|
26305
|
+
|
|
26306
|
+
|
|
26307
|
+
/**
|
|
26308
|
+
* optional int64 agentId = 2;
|
|
26309
|
+
* @return {number}
|
|
26310
|
+
*/
|
|
26311
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.getAgentid = function() {
|
|
26312
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
26313
|
+
};
|
|
26314
|
+
|
|
26315
|
+
|
|
26316
|
+
/**
|
|
26317
|
+
* @param {number} value
|
|
26318
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} returns this
|
|
26319
|
+
*/
|
|
26320
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.setAgentid = function(value) {
|
|
26321
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
26322
|
+
};
|
|
26323
|
+
|
|
26324
|
+
|
|
26325
|
+
/**
|
|
26326
|
+
* optional int64 clientId = 3;
|
|
26327
|
+
* @return {number}
|
|
26328
|
+
*/
|
|
26329
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.getClientid = function() {
|
|
26330
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
26331
|
+
};
|
|
26332
|
+
|
|
26333
|
+
|
|
26334
|
+
/**
|
|
26335
|
+
* @param {number} value
|
|
26336
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} returns this
|
|
26337
|
+
*/
|
|
26338
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.setClientid = function(value) {
|
|
26339
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
26340
|
+
};
|
|
26341
|
+
|
|
26342
|
+
|
|
26343
|
+
/**
|
|
26344
|
+
* optional int64 uploadBatchId = 4;
|
|
26345
|
+
* @return {number}
|
|
26346
|
+
*/
|
|
26347
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.getUploadbatchid = function() {
|
|
26348
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
26349
|
+
};
|
|
26350
|
+
|
|
26351
|
+
|
|
26352
|
+
/**
|
|
26353
|
+
* @param {number} value
|
|
26354
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} returns this
|
|
26355
|
+
*/
|
|
26356
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.setUploadbatchid = function(value) {
|
|
26357
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
26358
|
+
};
|
|
26359
|
+
|
|
26360
|
+
|
|
26361
|
+
/**
|
|
26362
|
+
* optional string fileName = 5;
|
|
26363
|
+
* @return {string}
|
|
26364
|
+
*/
|
|
26365
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.getFilename = function() {
|
|
26366
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
26367
|
+
};
|
|
26368
|
+
|
|
26369
|
+
|
|
26370
|
+
/**
|
|
26371
|
+
* @param {string} value
|
|
26372
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentRequest} returns this
|
|
26373
|
+
*/
|
|
26374
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentRequest.prototype.setFilename = function(value) {
|
|
26375
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
26376
|
+
};
|
|
26377
|
+
|
|
26378
|
+
|
|
26379
|
+
|
|
26380
|
+
|
|
26381
|
+
|
|
26382
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
26383
|
+
/**
|
|
26384
|
+
* Creates an object representation of this proto.
|
|
26385
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
26386
|
+
* Optional fields that are not set will be set to undefined.
|
|
26387
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
26388
|
+
* For the list of reserved names please see:
|
|
26389
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
26390
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
26391
|
+
* JSPB instance for transitional soy proto support:
|
|
26392
|
+
* http://goto/soy-param-migration
|
|
26393
|
+
* @return {!Object}
|
|
26394
|
+
*/
|
|
26395
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.toObject = function(opt_includeInstance) {
|
|
26396
|
+
return proto.agentbillingserviceapi.CreateAgentAttachmentResponse.toObject(opt_includeInstance, this);
|
|
26397
|
+
};
|
|
26398
|
+
|
|
26399
|
+
|
|
26400
|
+
/**
|
|
26401
|
+
* Static version of the {@see toObject} method.
|
|
26402
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
26403
|
+
* the JSPB instance for transitional soy proto support:
|
|
26404
|
+
* http://goto/soy-param-migration
|
|
26405
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse} msg The msg instance to transform.
|
|
26406
|
+
* @return {!Object}
|
|
26407
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26408
|
+
*/
|
|
26409
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.toObject = function(includeInstance, msg) {
|
|
26410
|
+
var f, obj = {
|
|
26411
|
+
responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
26412
|
+
agentattachmentid: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
26413
|
+
};
|
|
26414
|
+
|
|
26415
|
+
if (includeInstance) {
|
|
26416
|
+
obj.$jspbMessageInstance = msg;
|
|
26417
|
+
}
|
|
26418
|
+
return obj;
|
|
26419
|
+
};
|
|
26420
|
+
}
|
|
26421
|
+
|
|
26422
|
+
|
|
26423
|
+
/**
|
|
26424
|
+
* Deserializes binary data (in protobuf wire format).
|
|
26425
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
26426
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse}
|
|
26427
|
+
*/
|
|
26428
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.deserializeBinary = function(bytes) {
|
|
26429
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
26430
|
+
var msg = new proto.agentbillingserviceapi.CreateAgentAttachmentResponse;
|
|
26431
|
+
return proto.agentbillingserviceapi.CreateAgentAttachmentResponse.deserializeBinaryFromReader(msg, reader);
|
|
26432
|
+
};
|
|
26433
|
+
|
|
26434
|
+
|
|
26435
|
+
/**
|
|
26436
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
26437
|
+
* given reader into the given message object.
|
|
26438
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse} msg The message object to deserialize into.
|
|
26439
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
26440
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse}
|
|
26441
|
+
*/
|
|
26442
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
26443
|
+
while (reader.nextField()) {
|
|
26444
|
+
if (reader.isEndGroup()) {
|
|
26445
|
+
break;
|
|
26446
|
+
}
|
|
26447
|
+
var field = reader.getFieldNumber();
|
|
26448
|
+
switch (field) {
|
|
26449
|
+
case 1:
|
|
26450
|
+
var value = new proto.agentbillingserviceapi.ResponseCode;
|
|
26451
|
+
reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
26452
|
+
msg.setResponsecode(value);
|
|
26453
|
+
break;
|
|
26454
|
+
case 2:
|
|
26455
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
26456
|
+
msg.setAgentattachmentid(value);
|
|
26457
|
+
break;
|
|
26458
|
+
default:
|
|
26459
|
+
reader.skipField();
|
|
26460
|
+
break;
|
|
26461
|
+
}
|
|
26462
|
+
}
|
|
26463
|
+
return msg;
|
|
26464
|
+
};
|
|
26465
|
+
|
|
26466
|
+
|
|
26467
|
+
/**
|
|
26468
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
26469
|
+
* @return {!Uint8Array}
|
|
26470
|
+
*/
|
|
26471
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.serializeBinary = function() {
|
|
26472
|
+
var writer = new jspb.BinaryWriter();
|
|
26473
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.serializeBinaryToWriter(this, writer);
|
|
26474
|
+
return writer.getResultBuffer();
|
|
26475
|
+
};
|
|
26476
|
+
|
|
26477
|
+
|
|
26478
|
+
/**
|
|
26479
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
26480
|
+
* format), writing to the given BinaryWriter.
|
|
26481
|
+
* @param {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse} message
|
|
26482
|
+
* @param {!jspb.BinaryWriter} writer
|
|
26483
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26484
|
+
*/
|
|
26485
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.serializeBinaryToWriter = function(message, writer) {
|
|
26486
|
+
var f = undefined;
|
|
26487
|
+
f = message.getResponsecode();
|
|
26488
|
+
if (f != null) {
|
|
26489
|
+
writer.writeMessage(
|
|
26490
|
+
1,
|
|
26491
|
+
f,
|
|
26492
|
+
proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
|
|
26493
|
+
);
|
|
26494
|
+
}
|
|
26495
|
+
f = message.getAgentattachmentid();
|
|
26496
|
+
if (f !== 0) {
|
|
26497
|
+
writer.writeInt64(
|
|
26498
|
+
2,
|
|
26499
|
+
f
|
|
26500
|
+
);
|
|
26501
|
+
}
|
|
26502
|
+
};
|
|
26503
|
+
|
|
26504
|
+
|
|
26505
|
+
/**
|
|
26506
|
+
* optional ResponseCode responseCode = 1;
|
|
26507
|
+
* @return {?proto.agentbillingserviceapi.ResponseCode}
|
|
26508
|
+
*/
|
|
26509
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.getResponsecode = function() {
|
|
26510
|
+
return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
|
|
26511
|
+
jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
|
|
26512
|
+
};
|
|
26513
|
+
|
|
26514
|
+
|
|
26515
|
+
/**
|
|
26516
|
+
* @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
|
|
26517
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse} returns this
|
|
26518
|
+
*/
|
|
26519
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.setResponsecode = function(value) {
|
|
26520
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
26521
|
+
};
|
|
26522
|
+
|
|
26523
|
+
|
|
26524
|
+
/**
|
|
26525
|
+
* Clears the message field making it undefined.
|
|
26526
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse} returns this
|
|
26527
|
+
*/
|
|
26528
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.clearResponsecode = function() {
|
|
26529
|
+
return this.setResponsecode(undefined);
|
|
26530
|
+
};
|
|
26531
|
+
|
|
26532
|
+
|
|
26533
|
+
/**
|
|
26534
|
+
* Returns whether this field is set.
|
|
26535
|
+
* @return {boolean}
|
|
26536
|
+
*/
|
|
26537
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.hasResponsecode = function() {
|
|
26538
|
+
return jspb.Message.getField(this, 1) != null;
|
|
26539
|
+
};
|
|
26540
|
+
|
|
26541
|
+
|
|
26542
|
+
/**
|
|
26543
|
+
* optional int64 agentAttachmentId = 2;
|
|
26544
|
+
* @return {number}
|
|
26545
|
+
*/
|
|
26546
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.getAgentattachmentid = function() {
|
|
26547
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
26548
|
+
};
|
|
26549
|
+
|
|
26550
|
+
|
|
26551
|
+
/**
|
|
26552
|
+
* @param {number} value
|
|
26553
|
+
* @return {!proto.agentbillingserviceapi.CreateAgentAttachmentResponse} returns this
|
|
26554
|
+
*/
|
|
26555
|
+
proto.agentbillingserviceapi.CreateAgentAttachmentResponse.prototype.setAgentattachmentid = function(value) {
|
|
26556
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
26557
|
+
};
|
|
26558
|
+
|
|
26559
|
+
|
|
26085
26560
|
/**
|
|
26086
26561
|
* @enum {number}
|
|
26087
26562
|
*/
|