@sniipwebmaster/loyalty-program-client-grpcweb 22.16.121 → 22.16.137
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.
|
@@ -74,6 +74,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient =
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @const
|
|
79
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
80
|
+
* !proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest,
|
|
81
|
+
* !proto.loyaltyprogramserviceapi.ProgramDetailResponse>}
|
|
82
|
+
*/
|
|
83
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_CreateLoyaltyProgram = new grpc.web.MethodDescriptor(
|
|
84
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CreateLoyaltyProgram',
|
|
85
|
+
grpc.web.MethodType.UNARY,
|
|
86
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest,
|
|
87
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse,
|
|
88
|
+
/**
|
|
89
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} request
|
|
90
|
+
* @return {!Uint8Array}
|
|
91
|
+
*/
|
|
92
|
+
function(request) {
|
|
93
|
+
return request.serializeBinary();
|
|
94
|
+
},
|
|
95
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.deserializeBinary
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @const
|
|
101
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
102
|
+
* !proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest,
|
|
103
|
+
* !proto.loyaltyprogramserviceapi.ProgramDetailResponse>}
|
|
104
|
+
*/
|
|
105
|
+
const methodInfo_LoyaltyProgramServiceAPIService_CreateLoyaltyProgram = new grpc.web.AbstractClientBase.MethodInfo(
|
|
106
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse,
|
|
107
|
+
/**
|
|
108
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} request
|
|
109
|
+
* @return {!Uint8Array}
|
|
110
|
+
*/
|
|
111
|
+
function(request) {
|
|
112
|
+
return request.serializeBinary();
|
|
113
|
+
},
|
|
114
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.deserializeBinary
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} request The
|
|
120
|
+
* request proto
|
|
121
|
+
* @param {?Object<string, string>} metadata User defined
|
|
122
|
+
* call metadata
|
|
123
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ProgramDetailResponse)}
|
|
124
|
+
* callback The callback function(error, response)
|
|
125
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ProgramDetailResponse>|undefined}
|
|
126
|
+
* The XHR Node Readable Stream
|
|
127
|
+
*/
|
|
128
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.createLoyaltyProgram =
|
|
129
|
+
function(request, metadata, callback) {
|
|
130
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
131
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CreateLoyaltyProgram',
|
|
132
|
+
request,
|
|
133
|
+
metadata || {},
|
|
134
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_CreateLoyaltyProgram,
|
|
135
|
+
callback);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} request The
|
|
141
|
+
* request proto
|
|
142
|
+
* @param {?Object<string, string>} metadata User defined
|
|
143
|
+
* call metadata
|
|
144
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.ProgramDetailResponse>}
|
|
145
|
+
* Promise that resolves to the response
|
|
146
|
+
*/
|
|
147
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.createLoyaltyProgram =
|
|
148
|
+
function(request, metadata) {
|
|
149
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
150
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CreateLoyaltyProgram',
|
|
151
|
+
request,
|
|
152
|
+
metadata || {},
|
|
153
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_CreateLoyaltyProgram);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
77
157
|
/**
|
|
78
158
|
* @const
|
|
79
159
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -11,9 +11,12 @@ var global = Function('return this')();
|
|
|
11
11
|
|
|
12
12
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
13
13
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
14
|
-
goog.exportSymbol('proto.loyaltyprogramserviceapi.
|
|
15
|
-
goog.exportSymbol('proto.loyaltyprogramserviceapi.
|
|
14
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest', null, global);
|
|
15
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest', null, global);
|
|
16
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType', null, global);
|
|
16
17
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail', null, global);
|
|
18
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType', null, global);
|
|
19
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailResponse', null, global);
|
|
17
20
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailsResponse', null, global);
|
|
18
21
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ResponseCode', null, global);
|
|
19
22
|
|
|
@@ -27,12 +30,12 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.ResponseCode', null, global);
|
|
|
27
30
|
* @extends {jspb.Message}
|
|
28
31
|
* @constructor
|
|
29
32
|
*/
|
|
30
|
-
proto.loyaltyprogramserviceapi.
|
|
33
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest = function(opt_data) {
|
|
31
34
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
32
35
|
};
|
|
33
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
36
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest, jspb.Message);
|
|
34
37
|
if (goog.DEBUG && !COMPILED) {
|
|
35
|
-
proto.loyaltyprogramserviceapi.
|
|
38
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest';
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
|
|
@@ -47,8 +50,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
47
50
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
48
51
|
* @return {!Object}
|
|
49
52
|
*/
|
|
50
|
-
proto.loyaltyprogramserviceapi.
|
|
51
|
-
return proto.loyaltyprogramserviceapi.
|
|
53
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.toObject = function(opt_includeInstance) {
|
|
54
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.toObject(opt_includeInstance, this);
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
|
|
@@ -57,16 +60,12 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.prototype.toObject = funct
|
|
|
57
60
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
58
61
|
* instance for transitional soy proto support:
|
|
59
62
|
* http://goto/soy-param-migration
|
|
60
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
63
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} msg The msg instance to transform.
|
|
61
64
|
* @return {!Object}
|
|
62
65
|
*/
|
|
63
|
-
proto.loyaltyprogramserviceapi.
|
|
66
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.toObject = function(includeInstance, msg) {
|
|
64
67
|
var f, obj = {
|
|
65
|
-
|
|
66
|
-
length: msg.getLength(),
|
|
67
|
-
type: msg.getType(),
|
|
68
|
-
termsandconditionsurl: msg.getTermsandconditionsurl(),
|
|
69
|
-
externalurl: msg.getExternalurl()
|
|
68
|
+
data: (f = msg.getData()) && proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject(includeInstance, f)
|
|
70
69
|
};
|
|
71
70
|
|
|
72
71
|
if (includeInstance) {
|
|
@@ -80,23 +79,23 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.toObject = function(includ
|
|
|
80
79
|
/**
|
|
81
80
|
* Deserializes binary data (in protobuf wire format).
|
|
82
81
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
83
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
82
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest}
|
|
84
83
|
*/
|
|
85
|
-
proto.loyaltyprogramserviceapi.
|
|
84
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinary = function(bytes) {
|
|
86
85
|
var reader = new jspb.BinaryReader(bytes);
|
|
87
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
88
|
-
return proto.loyaltyprogramserviceapi.
|
|
86
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest;
|
|
87
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinaryFromReader(msg, reader);
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
92
|
* Deserializes binary data (in protobuf wire format) from the
|
|
94
93
|
* given reader into the given message object.
|
|
95
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
94
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} msg The message object to deserialize into.
|
|
96
95
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
97
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
96
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest}
|
|
98
97
|
*/
|
|
99
|
-
proto.loyaltyprogramserviceapi.
|
|
98
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
100
99
|
while (reader.nextField()) {
|
|
101
100
|
if (reader.isEndGroup()) {
|
|
102
101
|
break;
|
|
@@ -104,22 +103,217 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.deserializeBinaryFromReade
|
|
|
104
103
|
var field = reader.getFieldNumber();
|
|
105
104
|
switch (field) {
|
|
106
105
|
case 1:
|
|
107
|
-
var value =
|
|
108
|
-
|
|
106
|
+
var value = new proto.loyaltyprogramserviceapi.CreateProgramRequest;
|
|
107
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader);
|
|
108
|
+
msg.setData(value);
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
reader.skipField();
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return msg;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Class method variant: serializes the given message to binary data
|
|
121
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
122
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} message
|
|
123
|
+
* @param {!jspb.BinaryWriter} writer
|
|
124
|
+
*/
|
|
125
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.serializeBinaryToWriter = function(message, writer) {
|
|
126
|
+
message.serializeBinaryToWriter(writer);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
132
|
+
* @return {!Uint8Array}
|
|
133
|
+
*/
|
|
134
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.serializeBinary = function() {
|
|
135
|
+
var writer = new jspb.BinaryWriter();
|
|
136
|
+
this.serializeBinaryToWriter(writer);
|
|
137
|
+
return writer.getResultBuffer();
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
143
|
+
* writing to the given BinaryWriter.
|
|
144
|
+
* @param {!jspb.BinaryWriter} writer
|
|
145
|
+
*/
|
|
146
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
147
|
+
var f = undefined;
|
|
148
|
+
f = this.getData();
|
|
149
|
+
if (f != null) {
|
|
150
|
+
writer.writeMessage(
|
|
151
|
+
1,
|
|
152
|
+
f,
|
|
153
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.serializeBinaryToWriter
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
161
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} The clone.
|
|
162
|
+
*/
|
|
163
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.cloneMessage = function() {
|
|
164
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} */ (jspb.Message.cloneMessage(this));
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* optional CreateProgramRequest data = 1;
|
|
170
|
+
* @return {proto.loyaltyprogramserviceapi.CreateProgramRequest}
|
|
171
|
+
*/
|
|
172
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.getData = function() {
|
|
173
|
+
return /** @type{proto.loyaltyprogramserviceapi.CreateProgramRequest} */ (
|
|
174
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.CreateProgramRequest, 1));
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/** @param {proto.loyaltyprogramserviceapi.CreateProgramRequest|undefined} value */
|
|
179
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.setData = function(value) {
|
|
180
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.clearData = function() {
|
|
185
|
+
this.setData(undefined);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Returns whether this field is set.
|
|
191
|
+
* @return{!boolean}
|
|
192
|
+
*/
|
|
193
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.hasData = function() {
|
|
194
|
+
return jspb.Message.getField(this, 1) != null;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Generated by JsPbCodeGenerator.
|
|
201
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
202
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
203
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
204
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
205
|
+
* valid.
|
|
206
|
+
* @extends {jspb.Message}
|
|
207
|
+
* @constructor
|
|
208
|
+
*/
|
|
209
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest = function(opt_data) {
|
|
210
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
211
|
+
};
|
|
212
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateProgramRequest, jspb.Message);
|
|
213
|
+
if (goog.DEBUG && !COMPILED) {
|
|
214
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateProgramRequest';
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
219
|
+
/**
|
|
220
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
221
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
222
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
223
|
+
* For the list of reserved names please see:
|
|
224
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
225
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
226
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
227
|
+
* @return {!Object}
|
|
228
|
+
*/
|
|
229
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.toObject = function(opt_includeInstance) {
|
|
230
|
+
return proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject(opt_includeInstance, this);
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Static version of the {@see toObject} method.
|
|
236
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
237
|
+
* instance for transitional soy proto support:
|
|
238
|
+
* http://goto/soy-param-migration
|
|
239
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest} msg The msg instance to transform.
|
|
240
|
+
* @return {!Object}
|
|
241
|
+
*/
|
|
242
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject = function(includeInstance, msg) {
|
|
243
|
+
var f, obj = {
|
|
244
|
+
name: msg.getName(),
|
|
245
|
+
logourl: msg.getLogourl(),
|
|
246
|
+
earnedamount: msg.getEarnedamount(),
|
|
247
|
+
spentamount: msg.getSpentamount(),
|
|
248
|
+
membershipnumberlength: msg.getMembershipnumberlength(),
|
|
249
|
+
membershipnumbertype: msg.getMembershipnumbertype(),
|
|
250
|
+
termsandconditionsurl: msg.getTermsandconditionsurl(),
|
|
251
|
+
externalurl: msg.getExternalurl()
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
if (includeInstance) {
|
|
255
|
+
obj.$jspbMessageInstance = msg;
|
|
256
|
+
}
|
|
257
|
+
return obj;
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Deserializes binary data (in protobuf wire format).
|
|
264
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
265
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest}
|
|
266
|
+
*/
|
|
267
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinary = function(bytes) {
|
|
268
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
269
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateProgramRequest;
|
|
270
|
+
return proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader(msg, reader);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
276
|
+
* given reader into the given message object.
|
|
277
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest} msg The message object to deserialize into.
|
|
278
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
279
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest}
|
|
280
|
+
*/
|
|
281
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
282
|
+
while (reader.nextField()) {
|
|
283
|
+
if (reader.isEndGroup()) {
|
|
109
284
|
break;
|
|
285
|
+
}
|
|
286
|
+
var field = reader.getFieldNumber();
|
|
287
|
+
switch (field) {
|
|
110
288
|
case 2:
|
|
111
|
-
var value = /** @type {
|
|
112
|
-
msg.
|
|
289
|
+
var value = /** @type {string} */ (reader.readString());
|
|
290
|
+
msg.setName(value);
|
|
113
291
|
break;
|
|
114
292
|
case 3:
|
|
115
|
-
var value = /** @type {
|
|
116
|
-
msg.
|
|
293
|
+
var value = /** @type {string} */ (reader.readString());
|
|
294
|
+
msg.setLogourl(value);
|
|
117
295
|
break;
|
|
118
296
|
case 4:
|
|
297
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
298
|
+
msg.setEarnedamount(value);
|
|
299
|
+
break;
|
|
300
|
+
case 5:
|
|
301
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
302
|
+
msg.setSpentamount(value);
|
|
303
|
+
break;
|
|
304
|
+
case 6:
|
|
305
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
306
|
+
msg.setMembershipnumberlength(value);
|
|
307
|
+
break;
|
|
308
|
+
case 7:
|
|
309
|
+
var value = /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} */ (reader.readEnum());
|
|
310
|
+
msg.setMembershipnumbertype(value);
|
|
311
|
+
break;
|
|
312
|
+
case 8:
|
|
119
313
|
var value = /** @type {string} */ (reader.readString());
|
|
120
314
|
msg.setTermsandconditionsurl(value);
|
|
121
315
|
break;
|
|
122
|
-
case
|
|
316
|
+
case 9:
|
|
123
317
|
var value = /** @type {string} */ (reader.readString());
|
|
124
318
|
msg.setExternalurl(value);
|
|
125
319
|
break;
|
|
@@ -135,10 +329,10 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.deserializeBinaryFromReade
|
|
|
135
329
|
/**
|
|
136
330
|
* Class method variant: serializes the given message to binary data
|
|
137
331
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
138
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
332
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest} message
|
|
139
333
|
* @param {!jspb.BinaryWriter} writer
|
|
140
334
|
*/
|
|
141
|
-
proto.loyaltyprogramserviceapi.
|
|
335
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.serializeBinaryToWriter = function(message, writer) {
|
|
142
336
|
message.serializeBinaryToWriter(writer);
|
|
143
337
|
};
|
|
144
338
|
|
|
@@ -147,7 +341,7 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.serializeBinaryToWriter =
|
|
|
147
341
|
* Serializes the message to binary data (in protobuf wire format).
|
|
148
342
|
* @return {!Uint8Array}
|
|
149
343
|
*/
|
|
150
|
-
proto.loyaltyprogramserviceapi.
|
|
344
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.serializeBinary = function() {
|
|
151
345
|
var writer = new jspb.BinaryWriter();
|
|
152
346
|
this.serializeBinaryToWriter(writer);
|
|
153
347
|
return writer.getResultBuffer();
|
|
@@ -159,40 +353,61 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.prototype.serializeBinary
|
|
|
159
353
|
* writing to the given BinaryWriter.
|
|
160
354
|
* @param {!jspb.BinaryWriter} writer
|
|
161
355
|
*/
|
|
162
|
-
proto.loyaltyprogramserviceapi.
|
|
356
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
163
357
|
var f = undefined;
|
|
164
|
-
f = this.
|
|
358
|
+
f = this.getName();
|
|
359
|
+
if (f.length > 0) {
|
|
360
|
+
writer.writeString(
|
|
361
|
+
2,
|
|
362
|
+
f
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
f = this.getLogourl();
|
|
366
|
+
if (f.length > 0) {
|
|
367
|
+
writer.writeString(
|
|
368
|
+
3,
|
|
369
|
+
f
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
f = this.getEarnedamount();
|
|
165
373
|
if (f !== 0) {
|
|
166
|
-
writer.
|
|
167
|
-
|
|
374
|
+
writer.writeInt32(
|
|
375
|
+
4,
|
|
168
376
|
f
|
|
169
377
|
);
|
|
170
378
|
}
|
|
171
|
-
f = this.
|
|
379
|
+
f = this.getSpentamount();
|
|
172
380
|
if (f !== 0) {
|
|
173
381
|
writer.writeInt32(
|
|
174
|
-
|
|
382
|
+
5,
|
|
175
383
|
f
|
|
176
384
|
);
|
|
177
385
|
}
|
|
178
|
-
f = this.
|
|
386
|
+
f = this.getMembershipnumberlength();
|
|
387
|
+
if (f !== 0) {
|
|
388
|
+
writer.writeInt32(
|
|
389
|
+
6,
|
|
390
|
+
f
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
f = this.getMembershipnumbertype();
|
|
179
394
|
if (f !== 0.0) {
|
|
180
395
|
writer.writeEnum(
|
|
181
|
-
|
|
396
|
+
7,
|
|
182
397
|
f
|
|
183
398
|
);
|
|
184
399
|
}
|
|
185
400
|
f = this.getTermsandconditionsurl();
|
|
186
401
|
if (f.length > 0) {
|
|
187
402
|
writer.writeString(
|
|
188
|
-
|
|
403
|
+
8,
|
|
189
404
|
f
|
|
190
405
|
);
|
|
191
406
|
}
|
|
192
407
|
f = this.getExternalurl();
|
|
193
408
|
if (f.length > 0) {
|
|
194
409
|
writer.writeString(
|
|
195
|
-
|
|
410
|
+
9,
|
|
196
411
|
f
|
|
197
412
|
);
|
|
198
413
|
}
|
|
@@ -201,95 +416,140 @@ proto.loyaltyprogramserviceapi.MembershipNumberConfig.prototype.serializeBinaryT
|
|
|
201
416
|
|
|
202
417
|
/**
|
|
203
418
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
204
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
419
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest} The clone.
|
|
205
420
|
*/
|
|
206
|
-
proto.loyaltyprogramserviceapi.
|
|
207
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
421
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.cloneMessage = function() {
|
|
422
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest} */ (jspb.Message.cloneMessage(this));
|
|
208
423
|
};
|
|
209
424
|
|
|
210
425
|
|
|
211
426
|
/**
|
|
212
|
-
* optional
|
|
427
|
+
* optional string name = 2;
|
|
428
|
+
* @return {string}
|
|
429
|
+
*/
|
|
430
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getName = function() {
|
|
431
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
/** @param {string} value */
|
|
436
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setName = function(value) {
|
|
437
|
+
jspb.Message.setField(this, 2, value);
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* optional string logoUrl = 3;
|
|
443
|
+
* @return {string}
|
|
444
|
+
*/
|
|
445
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getLogourl = function() {
|
|
446
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
/** @param {string} value */
|
|
451
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setLogourl = function(value) {
|
|
452
|
+
jspb.Message.setField(this, 3, value);
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* optional int32 earnedAmount = 4;
|
|
213
458
|
* @return {number}
|
|
214
459
|
*/
|
|
215
|
-
proto.loyaltyprogramserviceapi.
|
|
216
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this,
|
|
460
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getEarnedamount = function() {
|
|
461
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
217
462
|
};
|
|
218
463
|
|
|
219
464
|
|
|
220
465
|
/** @param {number} value */
|
|
221
|
-
proto.loyaltyprogramserviceapi.
|
|
222
|
-
jspb.Message.setField(this,
|
|
466
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setEarnedamount = function(value) {
|
|
467
|
+
jspb.Message.setField(this, 4, value);
|
|
223
468
|
};
|
|
224
469
|
|
|
225
470
|
|
|
226
471
|
/**
|
|
227
|
-
* optional int32
|
|
472
|
+
* optional int32 spentAmount = 5;
|
|
228
473
|
* @return {number}
|
|
229
474
|
*/
|
|
230
|
-
proto.loyaltyprogramserviceapi.
|
|
231
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this,
|
|
475
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getSpentamount = function() {
|
|
476
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
232
477
|
};
|
|
233
478
|
|
|
234
479
|
|
|
235
480
|
/** @param {number} value */
|
|
236
|
-
proto.loyaltyprogramserviceapi.
|
|
237
|
-
jspb.Message.setField(this,
|
|
481
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setSpentamount = function(value) {
|
|
482
|
+
jspb.Message.setField(this, 5, value);
|
|
238
483
|
};
|
|
239
484
|
|
|
240
485
|
|
|
241
486
|
/**
|
|
242
|
-
* optional
|
|
243
|
-
* @return {
|
|
487
|
+
* optional int32 membershipNumberLength = 6;
|
|
488
|
+
* @return {number}
|
|
244
489
|
*/
|
|
245
|
-
proto.loyaltyprogramserviceapi.
|
|
246
|
-
return /** @type {
|
|
490
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getMembershipnumberlength = function() {
|
|
491
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
247
492
|
};
|
|
248
493
|
|
|
249
494
|
|
|
250
|
-
/** @param {
|
|
251
|
-
proto.loyaltyprogramserviceapi.
|
|
252
|
-
jspb.Message.setField(this,
|
|
495
|
+
/** @param {number} value */
|
|
496
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setMembershipnumberlength = function(value) {
|
|
497
|
+
jspb.Message.setField(this, 6, value);
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* optional CreateProgramRequestMembershipNumberType membershipNumberType = 7;
|
|
503
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType}
|
|
504
|
+
*/
|
|
505
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getMembershipnumbertype = function() {
|
|
506
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
/** @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} value */
|
|
511
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setMembershipnumbertype = function(value) {
|
|
512
|
+
jspb.Message.setField(this, 7, value);
|
|
253
513
|
};
|
|
254
514
|
|
|
255
515
|
|
|
256
516
|
/**
|
|
257
|
-
* optional string termsAndConditionsUrl =
|
|
517
|
+
* optional string termsAndConditionsUrl = 8;
|
|
258
518
|
* @return {string}
|
|
259
519
|
*/
|
|
260
|
-
proto.loyaltyprogramserviceapi.
|
|
261
|
-
return /** @type {string} */ (jspb.Message.getFieldProto3(this,
|
|
520
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getTermsandconditionsurl = function() {
|
|
521
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
|
|
262
522
|
};
|
|
263
523
|
|
|
264
524
|
|
|
265
525
|
/** @param {string} value */
|
|
266
|
-
proto.loyaltyprogramserviceapi.
|
|
267
|
-
jspb.Message.setField(this,
|
|
526
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setTermsandconditionsurl = function(value) {
|
|
527
|
+
jspb.Message.setField(this, 8, value);
|
|
268
528
|
};
|
|
269
529
|
|
|
270
530
|
|
|
271
531
|
/**
|
|
272
|
-
* optional string externalUrl =
|
|
532
|
+
* optional string externalUrl = 9;
|
|
273
533
|
* @return {string}
|
|
274
534
|
*/
|
|
275
|
-
proto.loyaltyprogramserviceapi.
|
|
276
|
-
return /** @type {string} */ (jspb.Message.getFieldProto3(this,
|
|
535
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getExternalurl = function() {
|
|
536
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 9, ""));
|
|
277
537
|
};
|
|
278
538
|
|
|
279
539
|
|
|
280
540
|
/** @param {string} value */
|
|
281
|
-
proto.loyaltyprogramserviceapi.
|
|
282
|
-
jspb.Message.setField(this,
|
|
541
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setExternalurl = function(value) {
|
|
542
|
+
jspb.Message.setField(this, 9, value);
|
|
283
543
|
};
|
|
284
544
|
|
|
285
545
|
|
|
286
546
|
/**
|
|
287
547
|
* @enum {number}
|
|
288
548
|
*/
|
|
289
|
-
proto.loyaltyprogramserviceapi.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
549
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType = {
|
|
550
|
+
CREATE_PROGRAM_REQUEST_MEMBERSHIP_NUMBER_TYPE_ONLY_NUMBERS: 0,
|
|
551
|
+
CREATE_PROGRAM_REQUEST_MEMBERSHIP_NUMBER_TYPE_ONLY_LETTERS: 1,
|
|
552
|
+
CREATE_PROGRAM_REQUEST_MEMBERSHIP_NUMBER_TYPE_NUMBERS_AND_LETTERS: 2
|
|
293
553
|
};
|
|
294
554
|
|
|
295
555
|
|
|
@@ -343,7 +603,10 @@ proto.loyaltyprogramserviceapi.ProgramDetail.toObject = function(includeInstance
|
|
|
343
603
|
logourl: msg.getLogourl(),
|
|
344
604
|
earnedamount: msg.getEarnedamount(),
|
|
345
605
|
spentamount: msg.getSpentamount(),
|
|
346
|
-
|
|
606
|
+
membershipnumberlength: msg.getMembershipnumberlength(),
|
|
607
|
+
membershipnumbertype: msg.getMembershipnumbertype(),
|
|
608
|
+
termsandconditionsurl: msg.getTermsandconditionsurl(),
|
|
609
|
+
externalurl: msg.getExternalurl()
|
|
347
610
|
};
|
|
348
611
|
|
|
349
612
|
if (includeInstance) {
|
|
@@ -401,9 +664,20 @@ proto.loyaltyprogramserviceapi.ProgramDetail.deserializeBinaryFromReader = funct
|
|
|
401
664
|
msg.setSpentamount(value);
|
|
402
665
|
break;
|
|
403
666
|
case 6:
|
|
404
|
-
var value =
|
|
405
|
-
|
|
406
|
-
|
|
667
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
668
|
+
msg.setMembershipnumberlength(value);
|
|
669
|
+
break;
|
|
670
|
+
case 7:
|
|
671
|
+
var value = /** @type {!proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType} */ (reader.readEnum());
|
|
672
|
+
msg.setMembershipnumbertype(value);
|
|
673
|
+
break;
|
|
674
|
+
case 8:
|
|
675
|
+
var value = /** @type {string} */ (reader.readString());
|
|
676
|
+
msg.setTermsandconditionsurl(value);
|
|
677
|
+
break;
|
|
678
|
+
case 9:
|
|
679
|
+
var value = /** @type {string} */ (reader.readString());
|
|
680
|
+
msg.setExternalurl(value);
|
|
407
681
|
break;
|
|
408
682
|
default:
|
|
409
683
|
reader.skipField();
|
|
@@ -478,12 +752,32 @@ proto.loyaltyprogramserviceapi.ProgramDetail.prototype.serializeBinaryToWriter =
|
|
|
478
752
|
f
|
|
479
753
|
);
|
|
480
754
|
}
|
|
481
|
-
f = this.
|
|
482
|
-
if (f
|
|
483
|
-
writer.
|
|
755
|
+
f = this.getMembershipnumberlength();
|
|
756
|
+
if (f !== 0) {
|
|
757
|
+
writer.writeInt32(
|
|
484
758
|
6,
|
|
485
|
-
f
|
|
486
|
-
|
|
759
|
+
f
|
|
760
|
+
);
|
|
761
|
+
}
|
|
762
|
+
f = this.getMembershipnumbertype();
|
|
763
|
+
if (f !== 0.0) {
|
|
764
|
+
writer.writeEnum(
|
|
765
|
+
7,
|
|
766
|
+
f
|
|
767
|
+
);
|
|
768
|
+
}
|
|
769
|
+
f = this.getTermsandconditionsurl();
|
|
770
|
+
if (f.length > 0) {
|
|
771
|
+
writer.writeString(
|
|
772
|
+
8,
|
|
773
|
+
f
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
f = this.getExternalurl();
|
|
777
|
+
if (f.length > 0) {
|
|
778
|
+
writer.writeString(
|
|
779
|
+
9,
|
|
780
|
+
f
|
|
487
781
|
);
|
|
488
782
|
}
|
|
489
783
|
};
|
|
@@ -574,23 +868,282 @@ proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setSpentamount = function
|
|
|
574
868
|
|
|
575
869
|
|
|
576
870
|
/**
|
|
577
|
-
* optional
|
|
578
|
-
* @return {
|
|
871
|
+
* optional int32 membershipNumberLength = 6;
|
|
872
|
+
* @return {number}
|
|
873
|
+
*/
|
|
874
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.getMembershipnumberlength = function() {
|
|
875
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
/** @param {number} value */
|
|
880
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setMembershipnumberlength = function(value) {
|
|
881
|
+
jspb.Message.setField(this, 6, value);
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* optional ProgramDetailMembershipNumberType membershipNumberType = 7;
|
|
887
|
+
* @return {!proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType}
|
|
888
|
+
*/
|
|
889
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.getMembershipnumbertype = function() {
|
|
890
|
+
return /** @type {!proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
/** @param {!proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType} value */
|
|
895
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setMembershipnumbertype = function(value) {
|
|
896
|
+
jspb.Message.setField(this, 7, value);
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* optional string termsAndConditionsUrl = 8;
|
|
902
|
+
* @return {string}
|
|
903
|
+
*/
|
|
904
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.getTermsandconditionsurl = function() {
|
|
905
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
/** @param {string} value */
|
|
910
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setTermsandconditionsurl = function(value) {
|
|
911
|
+
jspb.Message.setField(this, 8, value);
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* optional string externalUrl = 9;
|
|
917
|
+
* @return {string}
|
|
918
|
+
*/
|
|
919
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.getExternalurl = function() {
|
|
920
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 9, ""));
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
/** @param {string} value */
|
|
925
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setExternalurl = function(value) {
|
|
926
|
+
jspb.Message.setField(this, 9, value);
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* @enum {number}
|
|
932
|
+
*/
|
|
933
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType = {
|
|
934
|
+
PROGRAM_DETAIL_MEMBERSHIP_NUMBER_TYPE_ONLY_NUMBERS: 0,
|
|
935
|
+
PROGRAM_DETAIL_MEMBERSHIP_NUMBER_TYPE_ONLY_LETTERS: 1,
|
|
936
|
+
PROGRAM_DETAIL_MEMBERSHIP_NUMBER_TYPE_NUMBERS_AND_LETTERS: 2
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Generated by JsPbCodeGenerator.
|
|
942
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
943
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
944
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
945
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
946
|
+
* valid.
|
|
947
|
+
* @extends {jspb.Message}
|
|
948
|
+
* @constructor
|
|
949
|
+
*/
|
|
950
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse = function(opt_data) {
|
|
951
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
952
|
+
};
|
|
953
|
+
goog.inherits(proto.loyaltyprogramserviceapi.ProgramDetailResponse, jspb.Message);
|
|
954
|
+
if (goog.DEBUG && !COMPILED) {
|
|
955
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.displayName = 'proto.loyaltyprogramserviceapi.ProgramDetailResponse';
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
960
|
+
/**
|
|
961
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
962
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
963
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
964
|
+
* For the list of reserved names please see:
|
|
965
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
966
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
967
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
968
|
+
* @return {!Object}
|
|
969
|
+
*/
|
|
970
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.toObject = function(opt_includeInstance) {
|
|
971
|
+
return proto.loyaltyprogramserviceapi.ProgramDetailResponse.toObject(opt_includeInstance, this);
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Static version of the {@see toObject} method.
|
|
977
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
978
|
+
* instance for transitional soy proto support:
|
|
979
|
+
* http://goto/soy-param-migration
|
|
980
|
+
* @param {!proto.loyaltyprogramserviceapi.ProgramDetailResponse} msg The msg instance to transform.
|
|
981
|
+
* @return {!Object}
|
|
982
|
+
*/
|
|
983
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.toObject = function(includeInstance, msg) {
|
|
984
|
+
var f, obj = {
|
|
985
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
986
|
+
program: (f = msg.getProgram()) && proto.loyaltyprogramserviceapi.ProgramDetail.toObject(includeInstance, f)
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
if (includeInstance) {
|
|
990
|
+
obj.$jspbMessageInstance = msg;
|
|
991
|
+
}
|
|
992
|
+
return obj;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Deserializes binary data (in protobuf wire format).
|
|
999
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1000
|
+
* @return {!proto.loyaltyprogramserviceapi.ProgramDetailResponse}
|
|
1001
|
+
*/
|
|
1002
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.deserializeBinary = function(bytes) {
|
|
1003
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1004
|
+
var msg = new proto.loyaltyprogramserviceapi.ProgramDetailResponse;
|
|
1005
|
+
return proto.loyaltyprogramserviceapi.ProgramDetailResponse.deserializeBinaryFromReader(msg, reader);
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1011
|
+
* given reader into the given message object.
|
|
1012
|
+
* @param {!proto.loyaltyprogramserviceapi.ProgramDetailResponse} msg The message object to deserialize into.
|
|
1013
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1014
|
+
* @return {!proto.loyaltyprogramserviceapi.ProgramDetailResponse}
|
|
1015
|
+
*/
|
|
1016
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1017
|
+
while (reader.nextField()) {
|
|
1018
|
+
if (reader.isEndGroup()) {
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
var field = reader.getFieldNumber();
|
|
1022
|
+
switch (field) {
|
|
1023
|
+
case 1:
|
|
1024
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
1025
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
1026
|
+
msg.setResponsecode(value);
|
|
1027
|
+
break;
|
|
1028
|
+
case 2:
|
|
1029
|
+
var value = new proto.loyaltyprogramserviceapi.ProgramDetail;
|
|
1030
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ProgramDetail.deserializeBinaryFromReader);
|
|
1031
|
+
msg.setProgram(value);
|
|
1032
|
+
break;
|
|
1033
|
+
default:
|
|
1034
|
+
reader.skipField();
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
return msg;
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Class method variant: serializes the given message to binary data
|
|
1044
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1045
|
+
* @param {!proto.loyaltyprogramserviceapi.ProgramDetailResponse} message
|
|
1046
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1047
|
+
*/
|
|
1048
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1049
|
+
message.serializeBinaryToWriter(writer);
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1055
|
+
* @return {!Uint8Array}
|
|
1056
|
+
*/
|
|
1057
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.serializeBinary = function() {
|
|
1058
|
+
var writer = new jspb.BinaryWriter();
|
|
1059
|
+
this.serializeBinaryToWriter(writer);
|
|
1060
|
+
return writer.getResultBuffer();
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1066
|
+
* writing to the given BinaryWriter.
|
|
1067
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1068
|
+
*/
|
|
1069
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
1070
|
+
var f = undefined;
|
|
1071
|
+
f = this.getResponsecode();
|
|
1072
|
+
if (f != null) {
|
|
1073
|
+
writer.writeMessage(
|
|
1074
|
+
1,
|
|
1075
|
+
f,
|
|
1076
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
1077
|
+
);
|
|
1078
|
+
}
|
|
1079
|
+
f = this.getProgram();
|
|
1080
|
+
if (f != null) {
|
|
1081
|
+
writer.writeMessage(
|
|
1082
|
+
2,
|
|
1083
|
+
f,
|
|
1084
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.serializeBinaryToWriter
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1092
|
+
* @return {!proto.loyaltyprogramserviceapi.ProgramDetailResponse} The clone.
|
|
1093
|
+
*/
|
|
1094
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.cloneMessage = function() {
|
|
1095
|
+
return /** @type {!proto.loyaltyprogramserviceapi.ProgramDetailResponse} */ (jspb.Message.cloneMessage(this));
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* optional ResponseCode responseCode = 1;
|
|
1101
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
1102
|
+
*/
|
|
1103
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.getResponsecode = function() {
|
|
1104
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
1105
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
1110
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.setResponsecode = function(value) {
|
|
1111
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.clearResponsecode = function() {
|
|
1116
|
+
this.setResponsecode(undefined);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Returns whether this field is set.
|
|
1122
|
+
* @return{!boolean}
|
|
1123
|
+
*/
|
|
1124
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.hasResponsecode = function() {
|
|
1125
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* optional ProgramDetail program = 2;
|
|
1131
|
+
* @return {proto.loyaltyprogramserviceapi.ProgramDetail}
|
|
579
1132
|
*/
|
|
580
|
-
proto.loyaltyprogramserviceapi.
|
|
581
|
-
return /** @type{proto.loyaltyprogramserviceapi.
|
|
582
|
-
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.
|
|
1133
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.getProgram = function() {
|
|
1134
|
+
return /** @type{proto.loyaltyprogramserviceapi.ProgramDetail} */ (
|
|
1135
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ProgramDetail, 2));
|
|
583
1136
|
};
|
|
584
1137
|
|
|
585
1138
|
|
|
586
|
-
/** @param {proto.loyaltyprogramserviceapi.
|
|
587
|
-
proto.loyaltyprogramserviceapi.
|
|
588
|
-
jspb.Message.setWrapperField(this,
|
|
1139
|
+
/** @param {proto.loyaltyprogramserviceapi.ProgramDetail|undefined} value */
|
|
1140
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.setProgram = function(value) {
|
|
1141
|
+
jspb.Message.setWrapperField(this, 2, value);
|
|
589
1142
|
};
|
|
590
1143
|
|
|
591
1144
|
|
|
592
|
-
proto.loyaltyprogramserviceapi.
|
|
593
|
-
this.
|
|
1145
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.clearProgram = function() {
|
|
1146
|
+
this.setProgram(undefined);
|
|
594
1147
|
};
|
|
595
1148
|
|
|
596
1149
|
|
|
@@ -598,8 +1151,8 @@ proto.loyaltyprogramserviceapi.ProgramDetail.prototype.clearMembershipnumberconf
|
|
|
598
1151
|
* Returns whether this field is set.
|
|
599
1152
|
* @return{!boolean}
|
|
600
1153
|
*/
|
|
601
|
-
proto.loyaltyprogramserviceapi.
|
|
602
|
-
return jspb.Message.getField(this,
|
|
1154
|
+
proto.loyaltyprogramserviceapi.ProgramDetailResponse.prototype.hasProgram = function() {
|
|
1155
|
+
return jspb.Message.getField(this, 2) != null;
|
|
603
1156
|
};
|
|
604
1157
|
|
|
605
1158
|
|