@sellout/models 0.0.427 → 0.0.428
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.
- package/.dist/graphql/mutations/createTag.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createTag.mutation.js +15 -0
- package/.dist/graphql/mutations/createTag.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteTag.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteTag.mutation.js +10 -0
- package/.dist/graphql/mutations/deleteTag.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateTag.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateTag.mutation.js +15 -0
- package/.dist/graphql/mutations/updateTag.mutation.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +1 -0
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/events.query.js +1 -0
- package/.dist/graphql/queries/events.query.js.map +1 -1
- package/.dist/graphql/queries/eventsListOptimized.query.js +1 -0
- package/.dist/graphql/queries/eventsListOptimized.query.js.map +1 -1
- package/.dist/graphql/queries/tags.query.d.ts +2 -0
- package/.dist/graphql/queries/tags.query.js +15 -0
- package/.dist/graphql/queries/tags.query.js.map +1 -0
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/ITag.d.ts +6 -0
- package/.dist/interfaces/ITag.js +3 -0
- package/.dist/interfaces/ITag.js.map +1 -0
- package/.dist/schemas/Event.d.ts +5 -0
- package/.dist/schemas/Event.js +5 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Tag.d.ts +20 -0
- package/.dist/schemas/Tag.js +26 -0
- package/.dist/schemas/Tag.js.map +1 -0
- package/.dist/sellout-proto.js +2787 -254
- package/package.json +3 -3
- package/src/graphql/mutations/createTag.mutation.ts +14 -0
- package/src/graphql/mutations/deleteTag.mutation.ts +9 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +1 -0
- package/src/graphql/mutations/updateTag.mutation.ts +14 -0
- package/src/graphql/queries/event.query.ts +1 -0
- package/src/graphql/queries/events.query.ts +1 -0
- package/src/graphql/queries/eventsListOptimized.query.ts +1 -0
- package/src/graphql/queries/tags.query.ts +14 -0
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/ITag.ts +6 -0
- package/src/proto/event.proto +58 -0
- package/src/schemas/Event.ts +5 -0
- package/src/schemas/Tag.ts +21 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -101672,6 +101672,7 @@ $root.Event = (function() {
|
|
|
101672
101672
|
* @property {string|null} [googleWalletClassId] Event googleWalletClassId
|
|
101673
101673
|
* @property {boolean|null} [isEventTegIntegration] Event isEventTegIntegration
|
|
101674
101674
|
* @property {Array.<string>|null} [additionalPhotos] Event additionalPhotos
|
|
101675
|
+
* @property {Array.<string>|null} [tagIds] Event tagIds
|
|
101675
101676
|
*/
|
|
101676
101677
|
|
|
101677
101678
|
/**
|
|
@@ -101692,6 +101693,7 @@ $root.Event = (function() {
|
|
|
101692
101693
|
this.subscription = [];
|
|
101693
101694
|
this.waitList = [];
|
|
101694
101695
|
this.additionalPhotos = [];
|
|
101696
|
+
this.tagIds = [];
|
|
101695
101697
|
if (properties)
|
|
101696
101698
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
101697
101699
|
if (properties[keys[i]] != null)
|
|
@@ -102082,6 +102084,14 @@ $root.Event = (function() {
|
|
|
102082
102084
|
*/
|
|
102083
102085
|
Event.prototype.additionalPhotos = $util.emptyArray;
|
|
102084
102086
|
|
|
102087
|
+
/**
|
|
102088
|
+
* Event tagIds.
|
|
102089
|
+
* @member {Array.<string>} tagIds
|
|
102090
|
+
* @memberof Event
|
|
102091
|
+
* @instance
|
|
102092
|
+
*/
|
|
102093
|
+
Event.prototype.tagIds = $util.emptyArray;
|
|
102094
|
+
|
|
102085
102095
|
/**
|
|
102086
102096
|
* Creates a new Event instance using the specified properties.
|
|
102087
102097
|
* @function create
|
|
@@ -102211,6 +102221,9 @@ $root.Event = (function() {
|
|
|
102211
102221
|
if (message.additionalPhotos != null && message.additionalPhotos.length)
|
|
102212
102222
|
for (var i = 0; i < message.additionalPhotos.length; ++i)
|
|
102213
102223
|
writer.uint32(/* id 48, wireType 2 =*/386).string(message.additionalPhotos[i]);
|
|
102224
|
+
if (message.tagIds != null && message.tagIds.length)
|
|
102225
|
+
for (var i = 0; i < message.tagIds.length; ++i)
|
|
102226
|
+
writer.uint32(/* id 49, wireType 2 =*/394).string(message.tagIds[i]);
|
|
102214
102227
|
return writer;
|
|
102215
102228
|
};
|
|
102216
102229
|
|
|
@@ -102407,6 +102420,11 @@ $root.Event = (function() {
|
|
|
102407
102420
|
message.additionalPhotos = [];
|
|
102408
102421
|
message.additionalPhotos.push(reader.string());
|
|
102409
102422
|
break;
|
|
102423
|
+
case 49:
|
|
102424
|
+
if (!(message.tagIds && message.tagIds.length))
|
|
102425
|
+
message.tagIds = [];
|
|
102426
|
+
message.tagIds.push(reader.string());
|
|
102427
|
+
break;
|
|
102410
102428
|
default:
|
|
102411
102429
|
reader.skipType(tag & 7);
|
|
102412
102430
|
break;
|
|
@@ -102648,6 +102666,13 @@ $root.Event = (function() {
|
|
|
102648
102666
|
if (!$util.isString(message.additionalPhotos[i]))
|
|
102649
102667
|
return "additionalPhotos: string[] expected";
|
|
102650
102668
|
}
|
|
102669
|
+
if (message.tagIds != null && message.hasOwnProperty("tagIds")) {
|
|
102670
|
+
if (!Array.isArray(message.tagIds))
|
|
102671
|
+
return "tagIds: array expected";
|
|
102672
|
+
for (var i = 0; i < message.tagIds.length; ++i)
|
|
102673
|
+
if (!$util.isString(message.tagIds[i]))
|
|
102674
|
+
return "tagIds: string[] expected";
|
|
102675
|
+
}
|
|
102651
102676
|
return null;
|
|
102652
102677
|
};
|
|
102653
102678
|
|
|
@@ -102843,6 +102868,13 @@ $root.Event = (function() {
|
|
|
102843
102868
|
for (var i = 0; i < object.additionalPhotos.length; ++i)
|
|
102844
102869
|
message.additionalPhotos[i] = String(object.additionalPhotos[i]);
|
|
102845
102870
|
}
|
|
102871
|
+
if (object.tagIds) {
|
|
102872
|
+
if (!Array.isArray(object.tagIds))
|
|
102873
|
+
throw TypeError(".Event.tagIds: array expected");
|
|
102874
|
+
message.tagIds = [];
|
|
102875
|
+
for (var i = 0; i < object.tagIds.length; ++i)
|
|
102876
|
+
message.tagIds[i] = String(object.tagIds[i]);
|
|
102877
|
+
}
|
|
102846
102878
|
return message;
|
|
102847
102879
|
};
|
|
102848
102880
|
|
|
@@ -102869,6 +102901,7 @@ $root.Event = (function() {
|
|
|
102869
102901
|
object.subscription = [];
|
|
102870
102902
|
object.waitList = [];
|
|
102871
102903
|
object.additionalPhotos = [];
|
|
102904
|
+
object.tagIds = [];
|
|
102872
102905
|
}
|
|
102873
102906
|
if (options.defaults) {
|
|
102874
102907
|
object._id = "";
|
|
@@ -103034,6 +103067,11 @@ $root.Event = (function() {
|
|
|
103034
103067
|
for (var j = 0; j < message.additionalPhotos.length; ++j)
|
|
103035
103068
|
object.additionalPhotos[j] = message.additionalPhotos[j];
|
|
103036
103069
|
}
|
|
103070
|
+
if (message.tagIds && message.tagIds.length) {
|
|
103071
|
+
object.tagIds = [];
|
|
103072
|
+
for (var j = 0; j < message.tagIds.length; ++j)
|
|
103073
|
+
object.tagIds[j] = message.tagIds[j];
|
|
103074
|
+
}
|
|
103037
103075
|
return object;
|
|
103038
103076
|
};
|
|
103039
103077
|
|
|
@@ -103089,6 +103127,7 @@ $root.PublicEvent = (function() {
|
|
|
103089
103127
|
* @property {Array.<IEventTaskTypes>|null} [ticketTypes] PublicEvent ticketTypes
|
|
103090
103128
|
* @property {boolean|null} [isMultipleDays] PublicEvent isMultipleDays
|
|
103091
103129
|
* @property {Array.<IPerformance>|null} [performances] PublicEvent performances
|
|
103130
|
+
* @property {Array.<ITag>|null} [tags] PublicEvent tags
|
|
103092
103131
|
*/
|
|
103093
103132
|
|
|
103094
103133
|
/**
|
|
@@ -103102,6 +103141,7 @@ $root.PublicEvent = (function() {
|
|
|
103102
103141
|
function PublicEvent(properties) {
|
|
103103
103142
|
this.ticketTypes = [];
|
|
103104
103143
|
this.performances = [];
|
|
103144
|
+
this.tags = [];
|
|
103105
103145
|
if (properties)
|
|
103106
103146
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
103107
103147
|
if (properties[keys[i]] != null)
|
|
@@ -103364,6 +103404,14 @@ $root.PublicEvent = (function() {
|
|
|
103364
103404
|
*/
|
|
103365
103405
|
PublicEvent.prototype.performances = $util.emptyArray;
|
|
103366
103406
|
|
|
103407
|
+
/**
|
|
103408
|
+
* PublicEvent tags.
|
|
103409
|
+
* @member {Array.<ITag>} tags
|
|
103410
|
+
* @memberof PublicEvent
|
|
103411
|
+
* @instance
|
|
103412
|
+
*/
|
|
103413
|
+
PublicEvent.prototype.tags = $util.emptyArray;
|
|
103414
|
+
|
|
103367
103415
|
/**
|
|
103368
103416
|
* Creates a new PublicEvent instance using the specified properties.
|
|
103369
103417
|
* @function create
|
|
@@ -103454,6 +103502,9 @@ $root.PublicEvent = (function() {
|
|
|
103454
103502
|
if (message.performances != null && message.performances.length)
|
|
103455
103503
|
for (var i = 0; i < message.performances.length; ++i)
|
|
103456
103504
|
$root.Performance.encode(message.performances[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
|
|
103505
|
+
if (message.tags != null && message.tags.length)
|
|
103506
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
103507
|
+
$root.Tag.encode(message.tags[i], writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
|
|
103457
103508
|
return writer;
|
|
103458
103509
|
};
|
|
103459
103510
|
|
|
@@ -103588,6 +103639,11 @@ $root.PublicEvent = (function() {
|
|
|
103588
103639
|
message.performances = [];
|
|
103589
103640
|
message.performances.push($root.Performance.decode(reader, reader.uint32()));
|
|
103590
103641
|
break;
|
|
103642
|
+
case 33:
|
|
103643
|
+
if (!(message.tags && message.tags.length))
|
|
103644
|
+
message.tags = [];
|
|
103645
|
+
message.tags.push($root.Tag.decode(reader, reader.uint32()));
|
|
103646
|
+
break;
|
|
103591
103647
|
default:
|
|
103592
103648
|
reader.skipType(tag & 7);
|
|
103593
103649
|
break;
|
|
@@ -103737,6 +103793,15 @@ $root.PublicEvent = (function() {
|
|
|
103737
103793
|
return "performances." + error;
|
|
103738
103794
|
}
|
|
103739
103795
|
}
|
|
103796
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
103797
|
+
if (!Array.isArray(message.tags))
|
|
103798
|
+
return "tags: array expected";
|
|
103799
|
+
for (var i = 0; i < message.tags.length; ++i) {
|
|
103800
|
+
var error = $root.Tag.verify(message.tags[i]);
|
|
103801
|
+
if (error)
|
|
103802
|
+
return "tags." + error;
|
|
103803
|
+
}
|
|
103804
|
+
}
|
|
103740
103805
|
return null;
|
|
103741
103806
|
};
|
|
103742
103807
|
|
|
@@ -103841,6 +103906,16 @@ $root.PublicEvent = (function() {
|
|
|
103841
103906
|
message.performances[i] = $root.Performance.fromObject(object.performances[i]);
|
|
103842
103907
|
}
|
|
103843
103908
|
}
|
|
103909
|
+
if (object.tags) {
|
|
103910
|
+
if (!Array.isArray(object.tags))
|
|
103911
|
+
throw TypeError(".PublicEvent.tags: array expected");
|
|
103912
|
+
message.tags = [];
|
|
103913
|
+
for (var i = 0; i < object.tags.length; ++i) {
|
|
103914
|
+
if (typeof object.tags[i] !== "object")
|
|
103915
|
+
throw TypeError(".PublicEvent.tags: object expected");
|
|
103916
|
+
message.tags[i] = $root.Tag.fromObject(object.tags[i]);
|
|
103917
|
+
}
|
|
103918
|
+
}
|
|
103844
103919
|
return message;
|
|
103845
103920
|
};
|
|
103846
103921
|
|
|
@@ -103860,6 +103935,7 @@ $root.PublicEvent = (function() {
|
|
|
103860
103935
|
if (options.arrays || options.defaults) {
|
|
103861
103936
|
object.ticketTypes = [];
|
|
103862
103937
|
object.performances = [];
|
|
103938
|
+
object.tags = [];
|
|
103863
103939
|
}
|
|
103864
103940
|
if (options.defaults) {
|
|
103865
103941
|
object._id = "";
|
|
@@ -103963,6 +104039,11 @@ $root.PublicEvent = (function() {
|
|
|
103963
104039
|
for (var j = 0; j < message.performances.length; ++j)
|
|
103964
104040
|
object.performances[j] = $root.Performance.toObject(message.performances[j], options);
|
|
103965
104041
|
}
|
|
104042
|
+
if (message.tags && message.tags.length) {
|
|
104043
|
+
object.tags = [];
|
|
104044
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
104045
|
+
object.tags[j] = $root.Tag.toObject(message.tags[j], options);
|
|
104046
|
+
}
|
|
103966
104047
|
return object;
|
|
103967
104048
|
};
|
|
103968
104049
|
|
|
@@ -128513,41 +128594,2592 @@ $root.SendAnvilCloseEventResponse = (function() {
|
|
|
128513
128594
|
}
|
|
128514
128595
|
if (object.errors) {
|
|
128515
128596
|
if (!Array.isArray(object.errors))
|
|
128516
|
-
throw TypeError(".SendAnvilCloseEventResponse.errors: array expected");
|
|
128597
|
+
throw TypeError(".SendAnvilCloseEventResponse.errors: array expected");
|
|
128598
|
+
message.errors = [];
|
|
128599
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
128600
|
+
if (typeof object.errors[i] !== "object")
|
|
128601
|
+
throw TypeError(".SendAnvilCloseEventResponse.errors: object expected");
|
|
128602
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
128603
|
+
}
|
|
128604
|
+
}
|
|
128605
|
+
if (object.processed != null)
|
|
128606
|
+
message.processed = object.processed | 0;
|
|
128607
|
+
if (object.sent != null)
|
|
128608
|
+
message.sent = object.sent | 0;
|
|
128609
|
+
return message;
|
|
128610
|
+
};
|
|
128611
|
+
|
|
128612
|
+
/**
|
|
128613
|
+
* Creates a plain object from a SendAnvilCloseEventResponse message. Also converts values to other types if specified.
|
|
128614
|
+
* @function toObject
|
|
128615
|
+
* @memberof SendAnvilCloseEventResponse
|
|
128616
|
+
* @static
|
|
128617
|
+
* @param {SendAnvilCloseEventResponse} message SendAnvilCloseEventResponse
|
|
128618
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
128619
|
+
* @returns {Object.<string,*>} Plain object
|
|
128620
|
+
*/
|
|
128621
|
+
SendAnvilCloseEventResponse.toObject = function toObject(message, options) {
|
|
128622
|
+
if (!options)
|
|
128623
|
+
options = {};
|
|
128624
|
+
var object = {};
|
|
128625
|
+
if (options.arrays || options.defaults)
|
|
128626
|
+
object.errors = [];
|
|
128627
|
+
if (options.defaults) {
|
|
128628
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
128629
|
+
object.processed = 0;
|
|
128630
|
+
object.sent = 0;
|
|
128631
|
+
}
|
|
128632
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
128633
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
128634
|
+
if (message.errors && message.errors.length) {
|
|
128635
|
+
object.errors = [];
|
|
128636
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
128637
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
128638
|
+
}
|
|
128639
|
+
if (message.processed != null && message.hasOwnProperty("processed"))
|
|
128640
|
+
object.processed = message.processed;
|
|
128641
|
+
if (message.sent != null && message.hasOwnProperty("sent"))
|
|
128642
|
+
object.sent = message.sent;
|
|
128643
|
+
return object;
|
|
128644
|
+
};
|
|
128645
|
+
|
|
128646
|
+
/**
|
|
128647
|
+
* Converts this SendAnvilCloseEventResponse to JSON.
|
|
128648
|
+
* @function toJSON
|
|
128649
|
+
* @memberof SendAnvilCloseEventResponse
|
|
128650
|
+
* @instance
|
|
128651
|
+
* @returns {Object.<string,*>} JSON object
|
|
128652
|
+
*/
|
|
128653
|
+
SendAnvilCloseEventResponse.prototype.toJSON = function toJSON() {
|
|
128654
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
128655
|
+
};
|
|
128656
|
+
|
|
128657
|
+
return SendAnvilCloseEventResponse;
|
|
128658
|
+
})();
|
|
128659
|
+
|
|
128660
|
+
$root.PosterImageUrl = (function() {
|
|
128661
|
+
|
|
128662
|
+
/**
|
|
128663
|
+
* Properties of a PosterImageUrl.
|
|
128664
|
+
* @exports IPosterImageUrl
|
|
128665
|
+
* @interface IPosterImageUrl
|
|
128666
|
+
* @property {string|null} [original] PosterImageUrl original
|
|
128667
|
+
* @property {string|null} [medium] PosterImageUrl medium
|
|
128668
|
+
* @property {string|null} [small] PosterImageUrl small
|
|
128669
|
+
*/
|
|
128670
|
+
|
|
128671
|
+
/**
|
|
128672
|
+
* Constructs a new PosterImageUrl.
|
|
128673
|
+
* @exports PosterImageUrl
|
|
128674
|
+
* @classdesc Represents a PosterImageUrl.
|
|
128675
|
+
* @implements IPosterImageUrl
|
|
128676
|
+
* @constructor
|
|
128677
|
+
* @param {IPosterImageUrl=} [properties] Properties to set
|
|
128678
|
+
*/
|
|
128679
|
+
function PosterImageUrl(properties) {
|
|
128680
|
+
if (properties)
|
|
128681
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
128682
|
+
if (properties[keys[i]] != null)
|
|
128683
|
+
this[keys[i]] = properties[keys[i]];
|
|
128684
|
+
}
|
|
128685
|
+
|
|
128686
|
+
/**
|
|
128687
|
+
* PosterImageUrl original.
|
|
128688
|
+
* @member {string} original
|
|
128689
|
+
* @memberof PosterImageUrl
|
|
128690
|
+
* @instance
|
|
128691
|
+
*/
|
|
128692
|
+
PosterImageUrl.prototype.original = "";
|
|
128693
|
+
|
|
128694
|
+
/**
|
|
128695
|
+
* PosterImageUrl medium.
|
|
128696
|
+
* @member {string} medium
|
|
128697
|
+
* @memberof PosterImageUrl
|
|
128698
|
+
* @instance
|
|
128699
|
+
*/
|
|
128700
|
+
PosterImageUrl.prototype.medium = "";
|
|
128701
|
+
|
|
128702
|
+
/**
|
|
128703
|
+
* PosterImageUrl small.
|
|
128704
|
+
* @member {string} small
|
|
128705
|
+
* @memberof PosterImageUrl
|
|
128706
|
+
* @instance
|
|
128707
|
+
*/
|
|
128708
|
+
PosterImageUrl.prototype.small = "";
|
|
128709
|
+
|
|
128710
|
+
/**
|
|
128711
|
+
* Creates a new PosterImageUrl instance using the specified properties.
|
|
128712
|
+
* @function create
|
|
128713
|
+
* @memberof PosterImageUrl
|
|
128714
|
+
* @static
|
|
128715
|
+
* @param {IPosterImageUrl=} [properties] Properties to set
|
|
128716
|
+
* @returns {PosterImageUrl} PosterImageUrl instance
|
|
128717
|
+
*/
|
|
128718
|
+
PosterImageUrl.create = function create(properties) {
|
|
128719
|
+
return new PosterImageUrl(properties);
|
|
128720
|
+
};
|
|
128721
|
+
|
|
128722
|
+
/**
|
|
128723
|
+
* Encodes the specified PosterImageUrl message. Does not implicitly {@link PosterImageUrl.verify|verify} messages.
|
|
128724
|
+
* @function encode
|
|
128725
|
+
* @memberof PosterImageUrl
|
|
128726
|
+
* @static
|
|
128727
|
+
* @param {IPosterImageUrl} message PosterImageUrl message or plain object to encode
|
|
128728
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
128729
|
+
* @returns {$protobuf.Writer} Writer
|
|
128730
|
+
*/
|
|
128731
|
+
PosterImageUrl.encode = function encode(message, writer) {
|
|
128732
|
+
if (!writer)
|
|
128733
|
+
writer = $Writer.create();
|
|
128734
|
+
if (message.original != null && Object.hasOwnProperty.call(message, "original"))
|
|
128735
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.original);
|
|
128736
|
+
if (message.medium != null && Object.hasOwnProperty.call(message, "medium"))
|
|
128737
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.medium);
|
|
128738
|
+
if (message.small != null && Object.hasOwnProperty.call(message, "small"))
|
|
128739
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.small);
|
|
128740
|
+
return writer;
|
|
128741
|
+
};
|
|
128742
|
+
|
|
128743
|
+
/**
|
|
128744
|
+
* Encodes the specified PosterImageUrl message, length delimited. Does not implicitly {@link PosterImageUrl.verify|verify} messages.
|
|
128745
|
+
* @function encodeDelimited
|
|
128746
|
+
* @memberof PosterImageUrl
|
|
128747
|
+
* @static
|
|
128748
|
+
* @param {IPosterImageUrl} message PosterImageUrl message or plain object to encode
|
|
128749
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
128750
|
+
* @returns {$protobuf.Writer} Writer
|
|
128751
|
+
*/
|
|
128752
|
+
PosterImageUrl.encodeDelimited = function encodeDelimited(message, writer) {
|
|
128753
|
+
return this.encode(message, writer).ldelim();
|
|
128754
|
+
};
|
|
128755
|
+
|
|
128756
|
+
/**
|
|
128757
|
+
* Decodes a PosterImageUrl message from the specified reader or buffer.
|
|
128758
|
+
* @function decode
|
|
128759
|
+
* @memberof PosterImageUrl
|
|
128760
|
+
* @static
|
|
128761
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
128762
|
+
* @param {number} [length] Message length if known beforehand
|
|
128763
|
+
* @returns {PosterImageUrl} PosterImageUrl
|
|
128764
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
128765
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
128766
|
+
*/
|
|
128767
|
+
PosterImageUrl.decode = function decode(reader, length) {
|
|
128768
|
+
if (!(reader instanceof $Reader))
|
|
128769
|
+
reader = $Reader.create(reader);
|
|
128770
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PosterImageUrl();
|
|
128771
|
+
while (reader.pos < end) {
|
|
128772
|
+
var tag = reader.uint32();
|
|
128773
|
+
switch (tag >>> 3) {
|
|
128774
|
+
case 0:
|
|
128775
|
+
message.original = reader.string();
|
|
128776
|
+
break;
|
|
128777
|
+
case 1:
|
|
128778
|
+
message.medium = reader.string();
|
|
128779
|
+
break;
|
|
128780
|
+
case 2:
|
|
128781
|
+
message.small = reader.string();
|
|
128782
|
+
break;
|
|
128783
|
+
default:
|
|
128784
|
+
reader.skipType(tag & 7);
|
|
128785
|
+
break;
|
|
128786
|
+
}
|
|
128787
|
+
}
|
|
128788
|
+
return message;
|
|
128789
|
+
};
|
|
128790
|
+
|
|
128791
|
+
/**
|
|
128792
|
+
* Decodes a PosterImageUrl message from the specified reader or buffer, length delimited.
|
|
128793
|
+
* @function decodeDelimited
|
|
128794
|
+
* @memberof PosterImageUrl
|
|
128795
|
+
* @static
|
|
128796
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
128797
|
+
* @returns {PosterImageUrl} PosterImageUrl
|
|
128798
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
128799
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
128800
|
+
*/
|
|
128801
|
+
PosterImageUrl.decodeDelimited = function decodeDelimited(reader) {
|
|
128802
|
+
if (!(reader instanceof $Reader))
|
|
128803
|
+
reader = new $Reader(reader);
|
|
128804
|
+
return this.decode(reader, reader.uint32());
|
|
128805
|
+
};
|
|
128806
|
+
|
|
128807
|
+
/**
|
|
128808
|
+
* Verifies a PosterImageUrl message.
|
|
128809
|
+
* @function verify
|
|
128810
|
+
* @memberof PosterImageUrl
|
|
128811
|
+
* @static
|
|
128812
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
128813
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
128814
|
+
*/
|
|
128815
|
+
PosterImageUrl.verify = function verify(message) {
|
|
128816
|
+
if (typeof message !== "object" || message === null)
|
|
128817
|
+
return "object expected";
|
|
128818
|
+
if (message.original != null && message.hasOwnProperty("original"))
|
|
128819
|
+
if (!$util.isString(message.original))
|
|
128820
|
+
return "original: string expected";
|
|
128821
|
+
if (message.medium != null && message.hasOwnProperty("medium"))
|
|
128822
|
+
if (!$util.isString(message.medium))
|
|
128823
|
+
return "medium: string expected";
|
|
128824
|
+
if (message.small != null && message.hasOwnProperty("small"))
|
|
128825
|
+
if (!$util.isString(message.small))
|
|
128826
|
+
return "small: string expected";
|
|
128827
|
+
return null;
|
|
128828
|
+
};
|
|
128829
|
+
|
|
128830
|
+
/**
|
|
128831
|
+
* Creates a PosterImageUrl message from a plain object. Also converts values to their respective internal types.
|
|
128832
|
+
* @function fromObject
|
|
128833
|
+
* @memberof PosterImageUrl
|
|
128834
|
+
* @static
|
|
128835
|
+
* @param {Object.<string,*>} object Plain object
|
|
128836
|
+
* @returns {PosterImageUrl} PosterImageUrl
|
|
128837
|
+
*/
|
|
128838
|
+
PosterImageUrl.fromObject = function fromObject(object) {
|
|
128839
|
+
if (object instanceof $root.PosterImageUrl)
|
|
128840
|
+
return object;
|
|
128841
|
+
var message = new $root.PosterImageUrl();
|
|
128842
|
+
if (object.original != null)
|
|
128843
|
+
message.original = String(object.original);
|
|
128844
|
+
if (object.medium != null)
|
|
128845
|
+
message.medium = String(object.medium);
|
|
128846
|
+
if (object.small != null)
|
|
128847
|
+
message.small = String(object.small);
|
|
128848
|
+
return message;
|
|
128849
|
+
};
|
|
128850
|
+
|
|
128851
|
+
/**
|
|
128852
|
+
* Creates a plain object from a PosterImageUrl message. Also converts values to other types if specified.
|
|
128853
|
+
* @function toObject
|
|
128854
|
+
* @memberof PosterImageUrl
|
|
128855
|
+
* @static
|
|
128856
|
+
* @param {PosterImageUrl} message PosterImageUrl
|
|
128857
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
128858
|
+
* @returns {Object.<string,*>} Plain object
|
|
128859
|
+
*/
|
|
128860
|
+
PosterImageUrl.toObject = function toObject(message, options) {
|
|
128861
|
+
if (!options)
|
|
128862
|
+
options = {};
|
|
128863
|
+
var object = {};
|
|
128864
|
+
if (options.defaults) {
|
|
128865
|
+
object.original = "";
|
|
128866
|
+
object.medium = "";
|
|
128867
|
+
object.small = "";
|
|
128868
|
+
}
|
|
128869
|
+
if (message.original != null && message.hasOwnProperty("original"))
|
|
128870
|
+
object.original = message.original;
|
|
128871
|
+
if (message.medium != null && message.hasOwnProperty("medium"))
|
|
128872
|
+
object.medium = message.medium;
|
|
128873
|
+
if (message.small != null && message.hasOwnProperty("small"))
|
|
128874
|
+
object.small = message.small;
|
|
128875
|
+
return object;
|
|
128876
|
+
};
|
|
128877
|
+
|
|
128878
|
+
/**
|
|
128879
|
+
* Converts this PosterImageUrl to JSON.
|
|
128880
|
+
* @function toJSON
|
|
128881
|
+
* @memberof PosterImageUrl
|
|
128882
|
+
* @instance
|
|
128883
|
+
* @returns {Object.<string,*>} JSON object
|
|
128884
|
+
*/
|
|
128885
|
+
PosterImageUrl.prototype.toJSON = function toJSON() {
|
|
128886
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
128887
|
+
};
|
|
128888
|
+
|
|
128889
|
+
return PosterImageUrl;
|
|
128890
|
+
})();
|
|
128891
|
+
|
|
128892
|
+
$root.Tag = (function() {
|
|
128893
|
+
|
|
128894
|
+
/**
|
|
128895
|
+
* Properties of a Tag.
|
|
128896
|
+
* @exports ITag
|
|
128897
|
+
* @interface ITag
|
|
128898
|
+
* @property {string|null} [_id] Tag _id
|
|
128899
|
+
* @property {string|null} [name] Tag name
|
|
128900
|
+
* @property {number|null} [createdAt] Tag createdAt
|
|
128901
|
+
* @property {number|null} [updatedAt] Tag updatedAt
|
|
128902
|
+
*/
|
|
128903
|
+
|
|
128904
|
+
/**
|
|
128905
|
+
* Constructs a new Tag.
|
|
128906
|
+
* @exports Tag
|
|
128907
|
+
* @classdesc Represents a Tag.
|
|
128908
|
+
* @implements ITag
|
|
128909
|
+
* @constructor
|
|
128910
|
+
* @param {ITag=} [properties] Properties to set
|
|
128911
|
+
*/
|
|
128912
|
+
function Tag(properties) {
|
|
128913
|
+
if (properties)
|
|
128914
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
128915
|
+
if (properties[keys[i]] != null)
|
|
128916
|
+
this[keys[i]] = properties[keys[i]];
|
|
128917
|
+
}
|
|
128918
|
+
|
|
128919
|
+
/**
|
|
128920
|
+
* Tag _id.
|
|
128921
|
+
* @member {string} _id
|
|
128922
|
+
* @memberof Tag
|
|
128923
|
+
* @instance
|
|
128924
|
+
*/
|
|
128925
|
+
Tag.prototype._id = "";
|
|
128926
|
+
|
|
128927
|
+
/**
|
|
128928
|
+
* Tag name.
|
|
128929
|
+
* @member {string} name
|
|
128930
|
+
* @memberof Tag
|
|
128931
|
+
* @instance
|
|
128932
|
+
*/
|
|
128933
|
+
Tag.prototype.name = "";
|
|
128934
|
+
|
|
128935
|
+
/**
|
|
128936
|
+
* Tag createdAt.
|
|
128937
|
+
* @member {number} createdAt
|
|
128938
|
+
* @memberof Tag
|
|
128939
|
+
* @instance
|
|
128940
|
+
*/
|
|
128941
|
+
Tag.prototype.createdAt = 0;
|
|
128942
|
+
|
|
128943
|
+
/**
|
|
128944
|
+
* Tag updatedAt.
|
|
128945
|
+
* @member {number} updatedAt
|
|
128946
|
+
* @memberof Tag
|
|
128947
|
+
* @instance
|
|
128948
|
+
*/
|
|
128949
|
+
Tag.prototype.updatedAt = 0;
|
|
128950
|
+
|
|
128951
|
+
/**
|
|
128952
|
+
* Creates a new Tag instance using the specified properties.
|
|
128953
|
+
* @function create
|
|
128954
|
+
* @memberof Tag
|
|
128955
|
+
* @static
|
|
128956
|
+
* @param {ITag=} [properties] Properties to set
|
|
128957
|
+
* @returns {Tag} Tag instance
|
|
128958
|
+
*/
|
|
128959
|
+
Tag.create = function create(properties) {
|
|
128960
|
+
return new Tag(properties);
|
|
128961
|
+
};
|
|
128962
|
+
|
|
128963
|
+
/**
|
|
128964
|
+
* Encodes the specified Tag message. Does not implicitly {@link Tag.verify|verify} messages.
|
|
128965
|
+
* @function encode
|
|
128966
|
+
* @memberof Tag
|
|
128967
|
+
* @static
|
|
128968
|
+
* @param {ITag} message Tag message or plain object to encode
|
|
128969
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
128970
|
+
* @returns {$protobuf.Writer} Writer
|
|
128971
|
+
*/
|
|
128972
|
+
Tag.encode = function encode(message, writer) {
|
|
128973
|
+
if (!writer)
|
|
128974
|
+
writer = $Writer.create();
|
|
128975
|
+
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
128976
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message._id);
|
|
128977
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
128978
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
128979
|
+
if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
|
|
128980
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.createdAt);
|
|
128981
|
+
if (message.updatedAt != null && Object.hasOwnProperty.call(message, "updatedAt"))
|
|
128982
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.updatedAt);
|
|
128983
|
+
return writer;
|
|
128984
|
+
};
|
|
128985
|
+
|
|
128986
|
+
/**
|
|
128987
|
+
* Encodes the specified Tag message, length delimited. Does not implicitly {@link Tag.verify|verify} messages.
|
|
128988
|
+
* @function encodeDelimited
|
|
128989
|
+
* @memberof Tag
|
|
128990
|
+
* @static
|
|
128991
|
+
* @param {ITag} message Tag message or plain object to encode
|
|
128992
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
128993
|
+
* @returns {$protobuf.Writer} Writer
|
|
128994
|
+
*/
|
|
128995
|
+
Tag.encodeDelimited = function encodeDelimited(message, writer) {
|
|
128996
|
+
return this.encode(message, writer).ldelim();
|
|
128997
|
+
};
|
|
128998
|
+
|
|
128999
|
+
/**
|
|
129000
|
+
* Decodes a Tag message from the specified reader or buffer.
|
|
129001
|
+
* @function decode
|
|
129002
|
+
* @memberof Tag
|
|
129003
|
+
* @static
|
|
129004
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129005
|
+
* @param {number} [length] Message length if known beforehand
|
|
129006
|
+
* @returns {Tag} Tag
|
|
129007
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129008
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129009
|
+
*/
|
|
129010
|
+
Tag.decode = function decode(reader, length) {
|
|
129011
|
+
if (!(reader instanceof $Reader))
|
|
129012
|
+
reader = $Reader.create(reader);
|
|
129013
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tag();
|
|
129014
|
+
while (reader.pos < end) {
|
|
129015
|
+
var tag = reader.uint32();
|
|
129016
|
+
switch (tag >>> 3) {
|
|
129017
|
+
case 1:
|
|
129018
|
+
message._id = reader.string();
|
|
129019
|
+
break;
|
|
129020
|
+
case 2:
|
|
129021
|
+
message.name = reader.string();
|
|
129022
|
+
break;
|
|
129023
|
+
case 3:
|
|
129024
|
+
message.createdAt = reader.int32();
|
|
129025
|
+
break;
|
|
129026
|
+
case 4:
|
|
129027
|
+
message.updatedAt = reader.int32();
|
|
129028
|
+
break;
|
|
129029
|
+
default:
|
|
129030
|
+
reader.skipType(tag & 7);
|
|
129031
|
+
break;
|
|
129032
|
+
}
|
|
129033
|
+
}
|
|
129034
|
+
return message;
|
|
129035
|
+
};
|
|
129036
|
+
|
|
129037
|
+
/**
|
|
129038
|
+
* Decodes a Tag message from the specified reader or buffer, length delimited.
|
|
129039
|
+
* @function decodeDelimited
|
|
129040
|
+
* @memberof Tag
|
|
129041
|
+
* @static
|
|
129042
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129043
|
+
* @returns {Tag} Tag
|
|
129044
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129045
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129046
|
+
*/
|
|
129047
|
+
Tag.decodeDelimited = function decodeDelimited(reader) {
|
|
129048
|
+
if (!(reader instanceof $Reader))
|
|
129049
|
+
reader = new $Reader(reader);
|
|
129050
|
+
return this.decode(reader, reader.uint32());
|
|
129051
|
+
};
|
|
129052
|
+
|
|
129053
|
+
/**
|
|
129054
|
+
* Verifies a Tag message.
|
|
129055
|
+
* @function verify
|
|
129056
|
+
* @memberof Tag
|
|
129057
|
+
* @static
|
|
129058
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
129059
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
129060
|
+
*/
|
|
129061
|
+
Tag.verify = function verify(message) {
|
|
129062
|
+
if (typeof message !== "object" || message === null)
|
|
129063
|
+
return "object expected";
|
|
129064
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
129065
|
+
if (!$util.isString(message._id))
|
|
129066
|
+
return "_id: string expected";
|
|
129067
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
129068
|
+
if (!$util.isString(message.name))
|
|
129069
|
+
return "name: string expected";
|
|
129070
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
129071
|
+
if (!$util.isInteger(message.createdAt))
|
|
129072
|
+
return "createdAt: integer expected";
|
|
129073
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
129074
|
+
if (!$util.isInteger(message.updatedAt))
|
|
129075
|
+
return "updatedAt: integer expected";
|
|
129076
|
+
return null;
|
|
129077
|
+
};
|
|
129078
|
+
|
|
129079
|
+
/**
|
|
129080
|
+
* Creates a Tag message from a plain object. Also converts values to their respective internal types.
|
|
129081
|
+
* @function fromObject
|
|
129082
|
+
* @memberof Tag
|
|
129083
|
+
* @static
|
|
129084
|
+
* @param {Object.<string,*>} object Plain object
|
|
129085
|
+
* @returns {Tag} Tag
|
|
129086
|
+
*/
|
|
129087
|
+
Tag.fromObject = function fromObject(object) {
|
|
129088
|
+
if (object instanceof $root.Tag)
|
|
129089
|
+
return object;
|
|
129090
|
+
var message = new $root.Tag();
|
|
129091
|
+
if (object._id != null)
|
|
129092
|
+
message._id = String(object._id);
|
|
129093
|
+
if (object.name != null)
|
|
129094
|
+
message.name = String(object.name);
|
|
129095
|
+
if (object.createdAt != null)
|
|
129096
|
+
message.createdAt = object.createdAt | 0;
|
|
129097
|
+
if (object.updatedAt != null)
|
|
129098
|
+
message.updatedAt = object.updatedAt | 0;
|
|
129099
|
+
return message;
|
|
129100
|
+
};
|
|
129101
|
+
|
|
129102
|
+
/**
|
|
129103
|
+
* Creates a plain object from a Tag message. Also converts values to other types if specified.
|
|
129104
|
+
* @function toObject
|
|
129105
|
+
* @memberof Tag
|
|
129106
|
+
* @static
|
|
129107
|
+
* @param {Tag} message Tag
|
|
129108
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
129109
|
+
* @returns {Object.<string,*>} Plain object
|
|
129110
|
+
*/
|
|
129111
|
+
Tag.toObject = function toObject(message, options) {
|
|
129112
|
+
if (!options)
|
|
129113
|
+
options = {};
|
|
129114
|
+
var object = {};
|
|
129115
|
+
if (options.defaults) {
|
|
129116
|
+
object._id = "";
|
|
129117
|
+
object.name = "";
|
|
129118
|
+
object.createdAt = 0;
|
|
129119
|
+
object.updatedAt = 0;
|
|
129120
|
+
}
|
|
129121
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
129122
|
+
object._id = message._id;
|
|
129123
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
129124
|
+
object.name = message.name;
|
|
129125
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
129126
|
+
object.createdAt = message.createdAt;
|
|
129127
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
129128
|
+
object.updatedAt = message.updatedAt;
|
|
129129
|
+
return object;
|
|
129130
|
+
};
|
|
129131
|
+
|
|
129132
|
+
/**
|
|
129133
|
+
* Converts this Tag to JSON.
|
|
129134
|
+
* @function toJSON
|
|
129135
|
+
* @memberof Tag
|
|
129136
|
+
* @instance
|
|
129137
|
+
* @returns {Object.<string,*>} JSON object
|
|
129138
|
+
*/
|
|
129139
|
+
Tag.prototype.toJSON = function toJSON() {
|
|
129140
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
129141
|
+
};
|
|
129142
|
+
|
|
129143
|
+
return Tag;
|
|
129144
|
+
})();
|
|
129145
|
+
|
|
129146
|
+
$root.CreateTagRequest = (function() {
|
|
129147
|
+
|
|
129148
|
+
/**
|
|
129149
|
+
* Properties of a CreateTagRequest.
|
|
129150
|
+
* @exports ICreateTagRequest
|
|
129151
|
+
* @interface ICreateTagRequest
|
|
129152
|
+
* @property {string|null} [spanContext] CreateTagRequest spanContext
|
|
129153
|
+
* @property {ITag|null} [tag] CreateTagRequest tag
|
|
129154
|
+
*/
|
|
129155
|
+
|
|
129156
|
+
/**
|
|
129157
|
+
* Constructs a new CreateTagRequest.
|
|
129158
|
+
* @exports CreateTagRequest
|
|
129159
|
+
* @classdesc Represents a CreateTagRequest.
|
|
129160
|
+
* @implements ICreateTagRequest
|
|
129161
|
+
* @constructor
|
|
129162
|
+
* @param {ICreateTagRequest=} [properties] Properties to set
|
|
129163
|
+
*/
|
|
129164
|
+
function CreateTagRequest(properties) {
|
|
129165
|
+
if (properties)
|
|
129166
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
129167
|
+
if (properties[keys[i]] != null)
|
|
129168
|
+
this[keys[i]] = properties[keys[i]];
|
|
129169
|
+
}
|
|
129170
|
+
|
|
129171
|
+
/**
|
|
129172
|
+
* CreateTagRequest spanContext.
|
|
129173
|
+
* @member {string} spanContext
|
|
129174
|
+
* @memberof CreateTagRequest
|
|
129175
|
+
* @instance
|
|
129176
|
+
*/
|
|
129177
|
+
CreateTagRequest.prototype.spanContext = "";
|
|
129178
|
+
|
|
129179
|
+
/**
|
|
129180
|
+
* CreateTagRequest tag.
|
|
129181
|
+
* @member {ITag|null|undefined} tag
|
|
129182
|
+
* @memberof CreateTagRequest
|
|
129183
|
+
* @instance
|
|
129184
|
+
*/
|
|
129185
|
+
CreateTagRequest.prototype.tag = null;
|
|
129186
|
+
|
|
129187
|
+
/**
|
|
129188
|
+
* Creates a new CreateTagRequest instance using the specified properties.
|
|
129189
|
+
* @function create
|
|
129190
|
+
* @memberof CreateTagRequest
|
|
129191
|
+
* @static
|
|
129192
|
+
* @param {ICreateTagRequest=} [properties] Properties to set
|
|
129193
|
+
* @returns {CreateTagRequest} CreateTagRequest instance
|
|
129194
|
+
*/
|
|
129195
|
+
CreateTagRequest.create = function create(properties) {
|
|
129196
|
+
return new CreateTagRequest(properties);
|
|
129197
|
+
};
|
|
129198
|
+
|
|
129199
|
+
/**
|
|
129200
|
+
* Encodes the specified CreateTagRequest message. Does not implicitly {@link CreateTagRequest.verify|verify} messages.
|
|
129201
|
+
* @function encode
|
|
129202
|
+
* @memberof CreateTagRequest
|
|
129203
|
+
* @static
|
|
129204
|
+
* @param {ICreateTagRequest} message CreateTagRequest message or plain object to encode
|
|
129205
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129206
|
+
* @returns {$protobuf.Writer} Writer
|
|
129207
|
+
*/
|
|
129208
|
+
CreateTagRequest.encode = function encode(message, writer) {
|
|
129209
|
+
if (!writer)
|
|
129210
|
+
writer = $Writer.create();
|
|
129211
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
129212
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
129213
|
+
if (message.tag != null && Object.hasOwnProperty.call(message, "tag"))
|
|
129214
|
+
$root.Tag.encode(message.tag, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
129215
|
+
return writer;
|
|
129216
|
+
};
|
|
129217
|
+
|
|
129218
|
+
/**
|
|
129219
|
+
* Encodes the specified CreateTagRequest message, length delimited. Does not implicitly {@link CreateTagRequest.verify|verify} messages.
|
|
129220
|
+
* @function encodeDelimited
|
|
129221
|
+
* @memberof CreateTagRequest
|
|
129222
|
+
* @static
|
|
129223
|
+
* @param {ICreateTagRequest} message CreateTagRequest message or plain object to encode
|
|
129224
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129225
|
+
* @returns {$protobuf.Writer} Writer
|
|
129226
|
+
*/
|
|
129227
|
+
CreateTagRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
129228
|
+
return this.encode(message, writer).ldelim();
|
|
129229
|
+
};
|
|
129230
|
+
|
|
129231
|
+
/**
|
|
129232
|
+
* Decodes a CreateTagRequest message from the specified reader or buffer.
|
|
129233
|
+
* @function decode
|
|
129234
|
+
* @memberof CreateTagRequest
|
|
129235
|
+
* @static
|
|
129236
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129237
|
+
* @param {number} [length] Message length if known beforehand
|
|
129238
|
+
* @returns {CreateTagRequest} CreateTagRequest
|
|
129239
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129240
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129241
|
+
*/
|
|
129242
|
+
CreateTagRequest.decode = function decode(reader, length) {
|
|
129243
|
+
if (!(reader instanceof $Reader))
|
|
129244
|
+
reader = $Reader.create(reader);
|
|
129245
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateTagRequest();
|
|
129246
|
+
while (reader.pos < end) {
|
|
129247
|
+
var tag = reader.uint32();
|
|
129248
|
+
switch (tag >>> 3) {
|
|
129249
|
+
case 0:
|
|
129250
|
+
message.spanContext = reader.string();
|
|
129251
|
+
break;
|
|
129252
|
+
case 1:
|
|
129253
|
+
message.tag = $root.Tag.decode(reader, reader.uint32());
|
|
129254
|
+
break;
|
|
129255
|
+
default:
|
|
129256
|
+
reader.skipType(tag & 7);
|
|
129257
|
+
break;
|
|
129258
|
+
}
|
|
129259
|
+
}
|
|
129260
|
+
return message;
|
|
129261
|
+
};
|
|
129262
|
+
|
|
129263
|
+
/**
|
|
129264
|
+
* Decodes a CreateTagRequest message from the specified reader or buffer, length delimited.
|
|
129265
|
+
* @function decodeDelimited
|
|
129266
|
+
* @memberof CreateTagRequest
|
|
129267
|
+
* @static
|
|
129268
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129269
|
+
* @returns {CreateTagRequest} CreateTagRequest
|
|
129270
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129271
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129272
|
+
*/
|
|
129273
|
+
CreateTagRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
129274
|
+
if (!(reader instanceof $Reader))
|
|
129275
|
+
reader = new $Reader(reader);
|
|
129276
|
+
return this.decode(reader, reader.uint32());
|
|
129277
|
+
};
|
|
129278
|
+
|
|
129279
|
+
/**
|
|
129280
|
+
* Verifies a CreateTagRequest message.
|
|
129281
|
+
* @function verify
|
|
129282
|
+
* @memberof CreateTagRequest
|
|
129283
|
+
* @static
|
|
129284
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
129285
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
129286
|
+
*/
|
|
129287
|
+
CreateTagRequest.verify = function verify(message) {
|
|
129288
|
+
if (typeof message !== "object" || message === null)
|
|
129289
|
+
return "object expected";
|
|
129290
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
129291
|
+
if (!$util.isString(message.spanContext))
|
|
129292
|
+
return "spanContext: string expected";
|
|
129293
|
+
if (message.tag != null && message.hasOwnProperty("tag")) {
|
|
129294
|
+
var error = $root.Tag.verify(message.tag);
|
|
129295
|
+
if (error)
|
|
129296
|
+
return "tag." + error;
|
|
129297
|
+
}
|
|
129298
|
+
return null;
|
|
129299
|
+
};
|
|
129300
|
+
|
|
129301
|
+
/**
|
|
129302
|
+
* Creates a CreateTagRequest message from a plain object. Also converts values to their respective internal types.
|
|
129303
|
+
* @function fromObject
|
|
129304
|
+
* @memberof CreateTagRequest
|
|
129305
|
+
* @static
|
|
129306
|
+
* @param {Object.<string,*>} object Plain object
|
|
129307
|
+
* @returns {CreateTagRequest} CreateTagRequest
|
|
129308
|
+
*/
|
|
129309
|
+
CreateTagRequest.fromObject = function fromObject(object) {
|
|
129310
|
+
if (object instanceof $root.CreateTagRequest)
|
|
129311
|
+
return object;
|
|
129312
|
+
var message = new $root.CreateTagRequest();
|
|
129313
|
+
if (object.spanContext != null)
|
|
129314
|
+
message.spanContext = String(object.spanContext);
|
|
129315
|
+
if (object.tag != null) {
|
|
129316
|
+
if (typeof object.tag !== "object")
|
|
129317
|
+
throw TypeError(".CreateTagRequest.tag: object expected");
|
|
129318
|
+
message.tag = $root.Tag.fromObject(object.tag);
|
|
129319
|
+
}
|
|
129320
|
+
return message;
|
|
129321
|
+
};
|
|
129322
|
+
|
|
129323
|
+
/**
|
|
129324
|
+
* Creates a plain object from a CreateTagRequest message. Also converts values to other types if specified.
|
|
129325
|
+
* @function toObject
|
|
129326
|
+
* @memberof CreateTagRequest
|
|
129327
|
+
* @static
|
|
129328
|
+
* @param {CreateTagRequest} message CreateTagRequest
|
|
129329
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
129330
|
+
* @returns {Object.<string,*>} Plain object
|
|
129331
|
+
*/
|
|
129332
|
+
CreateTagRequest.toObject = function toObject(message, options) {
|
|
129333
|
+
if (!options)
|
|
129334
|
+
options = {};
|
|
129335
|
+
var object = {};
|
|
129336
|
+
if (options.defaults) {
|
|
129337
|
+
object.spanContext = "";
|
|
129338
|
+
object.tag = null;
|
|
129339
|
+
}
|
|
129340
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
129341
|
+
object.spanContext = message.spanContext;
|
|
129342
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
129343
|
+
object.tag = $root.Tag.toObject(message.tag, options);
|
|
129344
|
+
return object;
|
|
129345
|
+
};
|
|
129346
|
+
|
|
129347
|
+
/**
|
|
129348
|
+
* Converts this CreateTagRequest to JSON.
|
|
129349
|
+
* @function toJSON
|
|
129350
|
+
* @memberof CreateTagRequest
|
|
129351
|
+
* @instance
|
|
129352
|
+
* @returns {Object.<string,*>} JSON object
|
|
129353
|
+
*/
|
|
129354
|
+
CreateTagRequest.prototype.toJSON = function toJSON() {
|
|
129355
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
129356
|
+
};
|
|
129357
|
+
|
|
129358
|
+
return CreateTagRequest;
|
|
129359
|
+
})();
|
|
129360
|
+
|
|
129361
|
+
$root.CreateTagResponse = (function() {
|
|
129362
|
+
|
|
129363
|
+
/**
|
|
129364
|
+
* Properties of a CreateTagResponse.
|
|
129365
|
+
* @exports ICreateTagResponse
|
|
129366
|
+
* @interface ICreateTagResponse
|
|
129367
|
+
* @property {StatusCode|null} [status] CreateTagResponse status
|
|
129368
|
+
* @property {Array.<IError>|null} [errors] CreateTagResponse errors
|
|
129369
|
+
* @property {ITag|null} [tag] CreateTagResponse tag
|
|
129370
|
+
*/
|
|
129371
|
+
|
|
129372
|
+
/**
|
|
129373
|
+
* Constructs a new CreateTagResponse.
|
|
129374
|
+
* @exports CreateTagResponse
|
|
129375
|
+
* @classdesc Represents a CreateTagResponse.
|
|
129376
|
+
* @implements ICreateTagResponse
|
|
129377
|
+
* @constructor
|
|
129378
|
+
* @param {ICreateTagResponse=} [properties] Properties to set
|
|
129379
|
+
*/
|
|
129380
|
+
function CreateTagResponse(properties) {
|
|
129381
|
+
this.errors = [];
|
|
129382
|
+
if (properties)
|
|
129383
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
129384
|
+
if (properties[keys[i]] != null)
|
|
129385
|
+
this[keys[i]] = properties[keys[i]];
|
|
129386
|
+
}
|
|
129387
|
+
|
|
129388
|
+
/**
|
|
129389
|
+
* CreateTagResponse status.
|
|
129390
|
+
* @member {StatusCode} status
|
|
129391
|
+
* @memberof CreateTagResponse
|
|
129392
|
+
* @instance
|
|
129393
|
+
*/
|
|
129394
|
+
CreateTagResponse.prototype.status = 0;
|
|
129395
|
+
|
|
129396
|
+
/**
|
|
129397
|
+
* CreateTagResponse errors.
|
|
129398
|
+
* @member {Array.<IError>} errors
|
|
129399
|
+
* @memberof CreateTagResponse
|
|
129400
|
+
* @instance
|
|
129401
|
+
*/
|
|
129402
|
+
CreateTagResponse.prototype.errors = $util.emptyArray;
|
|
129403
|
+
|
|
129404
|
+
/**
|
|
129405
|
+
* CreateTagResponse tag.
|
|
129406
|
+
* @member {ITag|null|undefined} tag
|
|
129407
|
+
* @memberof CreateTagResponse
|
|
129408
|
+
* @instance
|
|
129409
|
+
*/
|
|
129410
|
+
CreateTagResponse.prototype.tag = null;
|
|
129411
|
+
|
|
129412
|
+
/**
|
|
129413
|
+
* Creates a new CreateTagResponse instance using the specified properties.
|
|
129414
|
+
* @function create
|
|
129415
|
+
* @memberof CreateTagResponse
|
|
129416
|
+
* @static
|
|
129417
|
+
* @param {ICreateTagResponse=} [properties] Properties to set
|
|
129418
|
+
* @returns {CreateTagResponse} CreateTagResponse instance
|
|
129419
|
+
*/
|
|
129420
|
+
CreateTagResponse.create = function create(properties) {
|
|
129421
|
+
return new CreateTagResponse(properties);
|
|
129422
|
+
};
|
|
129423
|
+
|
|
129424
|
+
/**
|
|
129425
|
+
* Encodes the specified CreateTagResponse message. Does not implicitly {@link CreateTagResponse.verify|verify} messages.
|
|
129426
|
+
* @function encode
|
|
129427
|
+
* @memberof CreateTagResponse
|
|
129428
|
+
* @static
|
|
129429
|
+
* @param {ICreateTagResponse} message CreateTagResponse message or plain object to encode
|
|
129430
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129431
|
+
* @returns {$protobuf.Writer} Writer
|
|
129432
|
+
*/
|
|
129433
|
+
CreateTagResponse.encode = function encode(message, writer) {
|
|
129434
|
+
if (!writer)
|
|
129435
|
+
writer = $Writer.create();
|
|
129436
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
129437
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
129438
|
+
if (message.errors != null && message.errors.length)
|
|
129439
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
129440
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
129441
|
+
if (message.tag != null && Object.hasOwnProperty.call(message, "tag"))
|
|
129442
|
+
$root.Tag.encode(message.tag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
129443
|
+
return writer;
|
|
129444
|
+
};
|
|
129445
|
+
|
|
129446
|
+
/**
|
|
129447
|
+
* Encodes the specified CreateTagResponse message, length delimited. Does not implicitly {@link CreateTagResponse.verify|verify} messages.
|
|
129448
|
+
* @function encodeDelimited
|
|
129449
|
+
* @memberof CreateTagResponse
|
|
129450
|
+
* @static
|
|
129451
|
+
* @param {ICreateTagResponse} message CreateTagResponse message or plain object to encode
|
|
129452
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129453
|
+
* @returns {$protobuf.Writer} Writer
|
|
129454
|
+
*/
|
|
129455
|
+
CreateTagResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
129456
|
+
return this.encode(message, writer).ldelim();
|
|
129457
|
+
};
|
|
129458
|
+
|
|
129459
|
+
/**
|
|
129460
|
+
* Decodes a CreateTagResponse message from the specified reader or buffer.
|
|
129461
|
+
* @function decode
|
|
129462
|
+
* @memberof CreateTagResponse
|
|
129463
|
+
* @static
|
|
129464
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129465
|
+
* @param {number} [length] Message length if known beforehand
|
|
129466
|
+
* @returns {CreateTagResponse} CreateTagResponse
|
|
129467
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129468
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129469
|
+
*/
|
|
129470
|
+
CreateTagResponse.decode = function decode(reader, length) {
|
|
129471
|
+
if (!(reader instanceof $Reader))
|
|
129472
|
+
reader = $Reader.create(reader);
|
|
129473
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateTagResponse();
|
|
129474
|
+
while (reader.pos < end) {
|
|
129475
|
+
var tag = reader.uint32();
|
|
129476
|
+
switch (tag >>> 3) {
|
|
129477
|
+
case 0:
|
|
129478
|
+
message.status = reader.int32();
|
|
129479
|
+
break;
|
|
129480
|
+
case 1:
|
|
129481
|
+
if (!(message.errors && message.errors.length))
|
|
129482
|
+
message.errors = [];
|
|
129483
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
129484
|
+
break;
|
|
129485
|
+
case 2:
|
|
129486
|
+
message.tag = $root.Tag.decode(reader, reader.uint32());
|
|
129487
|
+
break;
|
|
129488
|
+
default:
|
|
129489
|
+
reader.skipType(tag & 7);
|
|
129490
|
+
break;
|
|
129491
|
+
}
|
|
129492
|
+
}
|
|
129493
|
+
return message;
|
|
129494
|
+
};
|
|
129495
|
+
|
|
129496
|
+
/**
|
|
129497
|
+
* Decodes a CreateTagResponse message from the specified reader or buffer, length delimited.
|
|
129498
|
+
* @function decodeDelimited
|
|
129499
|
+
* @memberof CreateTagResponse
|
|
129500
|
+
* @static
|
|
129501
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129502
|
+
* @returns {CreateTagResponse} CreateTagResponse
|
|
129503
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129504
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129505
|
+
*/
|
|
129506
|
+
CreateTagResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
129507
|
+
if (!(reader instanceof $Reader))
|
|
129508
|
+
reader = new $Reader(reader);
|
|
129509
|
+
return this.decode(reader, reader.uint32());
|
|
129510
|
+
};
|
|
129511
|
+
|
|
129512
|
+
/**
|
|
129513
|
+
* Verifies a CreateTagResponse message.
|
|
129514
|
+
* @function verify
|
|
129515
|
+
* @memberof CreateTagResponse
|
|
129516
|
+
* @static
|
|
129517
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
129518
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
129519
|
+
*/
|
|
129520
|
+
CreateTagResponse.verify = function verify(message) {
|
|
129521
|
+
if (typeof message !== "object" || message === null)
|
|
129522
|
+
return "object expected";
|
|
129523
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
129524
|
+
switch (message.status) {
|
|
129525
|
+
default:
|
|
129526
|
+
return "status: enum value expected";
|
|
129527
|
+
case 0:
|
|
129528
|
+
case 200:
|
|
129529
|
+
case 400:
|
|
129530
|
+
case 401:
|
|
129531
|
+
case 403:
|
|
129532
|
+
case 422:
|
|
129533
|
+
case 404:
|
|
129534
|
+
case 500:
|
|
129535
|
+
case 504:
|
|
129536
|
+
break;
|
|
129537
|
+
}
|
|
129538
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
129539
|
+
if (!Array.isArray(message.errors))
|
|
129540
|
+
return "errors: array expected";
|
|
129541
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
129542
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
129543
|
+
if (error)
|
|
129544
|
+
return "errors." + error;
|
|
129545
|
+
}
|
|
129546
|
+
}
|
|
129547
|
+
if (message.tag != null && message.hasOwnProperty("tag")) {
|
|
129548
|
+
var error = $root.Tag.verify(message.tag);
|
|
129549
|
+
if (error)
|
|
129550
|
+
return "tag." + error;
|
|
129551
|
+
}
|
|
129552
|
+
return null;
|
|
129553
|
+
};
|
|
129554
|
+
|
|
129555
|
+
/**
|
|
129556
|
+
* Creates a CreateTagResponse message from a plain object. Also converts values to their respective internal types.
|
|
129557
|
+
* @function fromObject
|
|
129558
|
+
* @memberof CreateTagResponse
|
|
129559
|
+
* @static
|
|
129560
|
+
* @param {Object.<string,*>} object Plain object
|
|
129561
|
+
* @returns {CreateTagResponse} CreateTagResponse
|
|
129562
|
+
*/
|
|
129563
|
+
CreateTagResponse.fromObject = function fromObject(object) {
|
|
129564
|
+
if (object instanceof $root.CreateTagResponse)
|
|
129565
|
+
return object;
|
|
129566
|
+
var message = new $root.CreateTagResponse();
|
|
129567
|
+
switch (object.status) {
|
|
129568
|
+
case "UNKNOWN_CODE":
|
|
129569
|
+
case 0:
|
|
129570
|
+
message.status = 0;
|
|
129571
|
+
break;
|
|
129572
|
+
case "OK":
|
|
129573
|
+
case 200:
|
|
129574
|
+
message.status = 200;
|
|
129575
|
+
break;
|
|
129576
|
+
case "BAD_REQUEST":
|
|
129577
|
+
case 400:
|
|
129578
|
+
message.status = 400;
|
|
129579
|
+
break;
|
|
129580
|
+
case "UNAUTHORIZED":
|
|
129581
|
+
case 401:
|
|
129582
|
+
message.status = 401;
|
|
129583
|
+
break;
|
|
129584
|
+
case "FORBIDDEN":
|
|
129585
|
+
case 403:
|
|
129586
|
+
message.status = 403;
|
|
129587
|
+
break;
|
|
129588
|
+
case "UNPROCESSABLE_ENTITY":
|
|
129589
|
+
case 422:
|
|
129590
|
+
message.status = 422;
|
|
129591
|
+
break;
|
|
129592
|
+
case "NOT_FOUND":
|
|
129593
|
+
case 404:
|
|
129594
|
+
message.status = 404;
|
|
129595
|
+
break;
|
|
129596
|
+
case "INTERNAL_SERVER_ERROR":
|
|
129597
|
+
case 500:
|
|
129598
|
+
message.status = 500;
|
|
129599
|
+
break;
|
|
129600
|
+
case "GATEWAY_TIMEOUT":
|
|
129601
|
+
case 504:
|
|
129602
|
+
message.status = 504;
|
|
129603
|
+
break;
|
|
129604
|
+
}
|
|
129605
|
+
if (object.errors) {
|
|
129606
|
+
if (!Array.isArray(object.errors))
|
|
129607
|
+
throw TypeError(".CreateTagResponse.errors: array expected");
|
|
129608
|
+
message.errors = [];
|
|
129609
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
129610
|
+
if (typeof object.errors[i] !== "object")
|
|
129611
|
+
throw TypeError(".CreateTagResponse.errors: object expected");
|
|
129612
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
129613
|
+
}
|
|
129614
|
+
}
|
|
129615
|
+
if (object.tag != null) {
|
|
129616
|
+
if (typeof object.tag !== "object")
|
|
129617
|
+
throw TypeError(".CreateTagResponse.tag: object expected");
|
|
129618
|
+
message.tag = $root.Tag.fromObject(object.tag);
|
|
129619
|
+
}
|
|
129620
|
+
return message;
|
|
129621
|
+
};
|
|
129622
|
+
|
|
129623
|
+
/**
|
|
129624
|
+
* Creates a plain object from a CreateTagResponse message. Also converts values to other types if specified.
|
|
129625
|
+
* @function toObject
|
|
129626
|
+
* @memberof CreateTagResponse
|
|
129627
|
+
* @static
|
|
129628
|
+
* @param {CreateTagResponse} message CreateTagResponse
|
|
129629
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
129630
|
+
* @returns {Object.<string,*>} Plain object
|
|
129631
|
+
*/
|
|
129632
|
+
CreateTagResponse.toObject = function toObject(message, options) {
|
|
129633
|
+
if (!options)
|
|
129634
|
+
options = {};
|
|
129635
|
+
var object = {};
|
|
129636
|
+
if (options.arrays || options.defaults)
|
|
129637
|
+
object.errors = [];
|
|
129638
|
+
if (options.defaults) {
|
|
129639
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
129640
|
+
object.tag = null;
|
|
129641
|
+
}
|
|
129642
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
129643
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
129644
|
+
if (message.errors && message.errors.length) {
|
|
129645
|
+
object.errors = [];
|
|
129646
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
129647
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
129648
|
+
}
|
|
129649
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
129650
|
+
object.tag = $root.Tag.toObject(message.tag, options);
|
|
129651
|
+
return object;
|
|
129652
|
+
};
|
|
129653
|
+
|
|
129654
|
+
/**
|
|
129655
|
+
* Converts this CreateTagResponse to JSON.
|
|
129656
|
+
* @function toJSON
|
|
129657
|
+
* @memberof CreateTagResponse
|
|
129658
|
+
* @instance
|
|
129659
|
+
* @returns {Object.<string,*>} JSON object
|
|
129660
|
+
*/
|
|
129661
|
+
CreateTagResponse.prototype.toJSON = function toJSON() {
|
|
129662
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
129663
|
+
};
|
|
129664
|
+
|
|
129665
|
+
return CreateTagResponse;
|
|
129666
|
+
})();
|
|
129667
|
+
|
|
129668
|
+
$root.UpdateTagRequest = (function() {
|
|
129669
|
+
|
|
129670
|
+
/**
|
|
129671
|
+
* Properties of an UpdateTagRequest.
|
|
129672
|
+
* @exports IUpdateTagRequest
|
|
129673
|
+
* @interface IUpdateTagRequest
|
|
129674
|
+
* @property {string|null} [spanContext] UpdateTagRequest spanContext
|
|
129675
|
+
* @property {ITag|null} [tag] UpdateTagRequest tag
|
|
129676
|
+
*/
|
|
129677
|
+
|
|
129678
|
+
/**
|
|
129679
|
+
* Constructs a new UpdateTagRequest.
|
|
129680
|
+
* @exports UpdateTagRequest
|
|
129681
|
+
* @classdesc Represents an UpdateTagRequest.
|
|
129682
|
+
* @implements IUpdateTagRequest
|
|
129683
|
+
* @constructor
|
|
129684
|
+
* @param {IUpdateTagRequest=} [properties] Properties to set
|
|
129685
|
+
*/
|
|
129686
|
+
function UpdateTagRequest(properties) {
|
|
129687
|
+
if (properties)
|
|
129688
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
129689
|
+
if (properties[keys[i]] != null)
|
|
129690
|
+
this[keys[i]] = properties[keys[i]];
|
|
129691
|
+
}
|
|
129692
|
+
|
|
129693
|
+
/**
|
|
129694
|
+
* UpdateTagRequest spanContext.
|
|
129695
|
+
* @member {string} spanContext
|
|
129696
|
+
* @memberof UpdateTagRequest
|
|
129697
|
+
* @instance
|
|
129698
|
+
*/
|
|
129699
|
+
UpdateTagRequest.prototype.spanContext = "";
|
|
129700
|
+
|
|
129701
|
+
/**
|
|
129702
|
+
* UpdateTagRequest tag.
|
|
129703
|
+
* @member {ITag|null|undefined} tag
|
|
129704
|
+
* @memberof UpdateTagRequest
|
|
129705
|
+
* @instance
|
|
129706
|
+
*/
|
|
129707
|
+
UpdateTagRequest.prototype.tag = null;
|
|
129708
|
+
|
|
129709
|
+
/**
|
|
129710
|
+
* Creates a new UpdateTagRequest instance using the specified properties.
|
|
129711
|
+
* @function create
|
|
129712
|
+
* @memberof UpdateTagRequest
|
|
129713
|
+
* @static
|
|
129714
|
+
* @param {IUpdateTagRequest=} [properties] Properties to set
|
|
129715
|
+
* @returns {UpdateTagRequest} UpdateTagRequest instance
|
|
129716
|
+
*/
|
|
129717
|
+
UpdateTagRequest.create = function create(properties) {
|
|
129718
|
+
return new UpdateTagRequest(properties);
|
|
129719
|
+
};
|
|
129720
|
+
|
|
129721
|
+
/**
|
|
129722
|
+
* Encodes the specified UpdateTagRequest message. Does not implicitly {@link UpdateTagRequest.verify|verify} messages.
|
|
129723
|
+
* @function encode
|
|
129724
|
+
* @memberof UpdateTagRequest
|
|
129725
|
+
* @static
|
|
129726
|
+
* @param {IUpdateTagRequest} message UpdateTagRequest message or plain object to encode
|
|
129727
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129728
|
+
* @returns {$protobuf.Writer} Writer
|
|
129729
|
+
*/
|
|
129730
|
+
UpdateTagRequest.encode = function encode(message, writer) {
|
|
129731
|
+
if (!writer)
|
|
129732
|
+
writer = $Writer.create();
|
|
129733
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
129734
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
129735
|
+
if (message.tag != null && Object.hasOwnProperty.call(message, "tag"))
|
|
129736
|
+
$root.Tag.encode(message.tag, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
129737
|
+
return writer;
|
|
129738
|
+
};
|
|
129739
|
+
|
|
129740
|
+
/**
|
|
129741
|
+
* Encodes the specified UpdateTagRequest message, length delimited. Does not implicitly {@link UpdateTagRequest.verify|verify} messages.
|
|
129742
|
+
* @function encodeDelimited
|
|
129743
|
+
* @memberof UpdateTagRequest
|
|
129744
|
+
* @static
|
|
129745
|
+
* @param {IUpdateTagRequest} message UpdateTagRequest message or plain object to encode
|
|
129746
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129747
|
+
* @returns {$protobuf.Writer} Writer
|
|
129748
|
+
*/
|
|
129749
|
+
UpdateTagRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
129750
|
+
return this.encode(message, writer).ldelim();
|
|
129751
|
+
};
|
|
129752
|
+
|
|
129753
|
+
/**
|
|
129754
|
+
* Decodes an UpdateTagRequest message from the specified reader or buffer.
|
|
129755
|
+
* @function decode
|
|
129756
|
+
* @memberof UpdateTagRequest
|
|
129757
|
+
* @static
|
|
129758
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129759
|
+
* @param {number} [length] Message length if known beforehand
|
|
129760
|
+
* @returns {UpdateTagRequest} UpdateTagRequest
|
|
129761
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129762
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129763
|
+
*/
|
|
129764
|
+
UpdateTagRequest.decode = function decode(reader, length) {
|
|
129765
|
+
if (!(reader instanceof $Reader))
|
|
129766
|
+
reader = $Reader.create(reader);
|
|
129767
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateTagRequest();
|
|
129768
|
+
while (reader.pos < end) {
|
|
129769
|
+
var tag = reader.uint32();
|
|
129770
|
+
switch (tag >>> 3) {
|
|
129771
|
+
case 0:
|
|
129772
|
+
message.spanContext = reader.string();
|
|
129773
|
+
break;
|
|
129774
|
+
case 1:
|
|
129775
|
+
message.tag = $root.Tag.decode(reader, reader.uint32());
|
|
129776
|
+
break;
|
|
129777
|
+
default:
|
|
129778
|
+
reader.skipType(tag & 7);
|
|
129779
|
+
break;
|
|
129780
|
+
}
|
|
129781
|
+
}
|
|
129782
|
+
return message;
|
|
129783
|
+
};
|
|
129784
|
+
|
|
129785
|
+
/**
|
|
129786
|
+
* Decodes an UpdateTagRequest message from the specified reader or buffer, length delimited.
|
|
129787
|
+
* @function decodeDelimited
|
|
129788
|
+
* @memberof UpdateTagRequest
|
|
129789
|
+
* @static
|
|
129790
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129791
|
+
* @returns {UpdateTagRequest} UpdateTagRequest
|
|
129792
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129793
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129794
|
+
*/
|
|
129795
|
+
UpdateTagRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
129796
|
+
if (!(reader instanceof $Reader))
|
|
129797
|
+
reader = new $Reader(reader);
|
|
129798
|
+
return this.decode(reader, reader.uint32());
|
|
129799
|
+
};
|
|
129800
|
+
|
|
129801
|
+
/**
|
|
129802
|
+
* Verifies an UpdateTagRequest message.
|
|
129803
|
+
* @function verify
|
|
129804
|
+
* @memberof UpdateTagRequest
|
|
129805
|
+
* @static
|
|
129806
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
129807
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
129808
|
+
*/
|
|
129809
|
+
UpdateTagRequest.verify = function verify(message) {
|
|
129810
|
+
if (typeof message !== "object" || message === null)
|
|
129811
|
+
return "object expected";
|
|
129812
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
129813
|
+
if (!$util.isString(message.spanContext))
|
|
129814
|
+
return "spanContext: string expected";
|
|
129815
|
+
if (message.tag != null && message.hasOwnProperty("tag")) {
|
|
129816
|
+
var error = $root.Tag.verify(message.tag);
|
|
129817
|
+
if (error)
|
|
129818
|
+
return "tag." + error;
|
|
129819
|
+
}
|
|
129820
|
+
return null;
|
|
129821
|
+
};
|
|
129822
|
+
|
|
129823
|
+
/**
|
|
129824
|
+
* Creates an UpdateTagRequest message from a plain object. Also converts values to their respective internal types.
|
|
129825
|
+
* @function fromObject
|
|
129826
|
+
* @memberof UpdateTagRequest
|
|
129827
|
+
* @static
|
|
129828
|
+
* @param {Object.<string,*>} object Plain object
|
|
129829
|
+
* @returns {UpdateTagRequest} UpdateTagRequest
|
|
129830
|
+
*/
|
|
129831
|
+
UpdateTagRequest.fromObject = function fromObject(object) {
|
|
129832
|
+
if (object instanceof $root.UpdateTagRequest)
|
|
129833
|
+
return object;
|
|
129834
|
+
var message = new $root.UpdateTagRequest();
|
|
129835
|
+
if (object.spanContext != null)
|
|
129836
|
+
message.spanContext = String(object.spanContext);
|
|
129837
|
+
if (object.tag != null) {
|
|
129838
|
+
if (typeof object.tag !== "object")
|
|
129839
|
+
throw TypeError(".UpdateTagRequest.tag: object expected");
|
|
129840
|
+
message.tag = $root.Tag.fromObject(object.tag);
|
|
129841
|
+
}
|
|
129842
|
+
return message;
|
|
129843
|
+
};
|
|
129844
|
+
|
|
129845
|
+
/**
|
|
129846
|
+
* Creates a plain object from an UpdateTagRequest message. Also converts values to other types if specified.
|
|
129847
|
+
* @function toObject
|
|
129848
|
+
* @memberof UpdateTagRequest
|
|
129849
|
+
* @static
|
|
129850
|
+
* @param {UpdateTagRequest} message UpdateTagRequest
|
|
129851
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
129852
|
+
* @returns {Object.<string,*>} Plain object
|
|
129853
|
+
*/
|
|
129854
|
+
UpdateTagRequest.toObject = function toObject(message, options) {
|
|
129855
|
+
if (!options)
|
|
129856
|
+
options = {};
|
|
129857
|
+
var object = {};
|
|
129858
|
+
if (options.defaults) {
|
|
129859
|
+
object.spanContext = "";
|
|
129860
|
+
object.tag = null;
|
|
129861
|
+
}
|
|
129862
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
129863
|
+
object.spanContext = message.spanContext;
|
|
129864
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
129865
|
+
object.tag = $root.Tag.toObject(message.tag, options);
|
|
129866
|
+
return object;
|
|
129867
|
+
};
|
|
129868
|
+
|
|
129869
|
+
/**
|
|
129870
|
+
* Converts this UpdateTagRequest to JSON.
|
|
129871
|
+
* @function toJSON
|
|
129872
|
+
* @memberof UpdateTagRequest
|
|
129873
|
+
* @instance
|
|
129874
|
+
* @returns {Object.<string,*>} JSON object
|
|
129875
|
+
*/
|
|
129876
|
+
UpdateTagRequest.prototype.toJSON = function toJSON() {
|
|
129877
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
129878
|
+
};
|
|
129879
|
+
|
|
129880
|
+
return UpdateTagRequest;
|
|
129881
|
+
})();
|
|
129882
|
+
|
|
129883
|
+
$root.UpdateTagResponse = (function() {
|
|
129884
|
+
|
|
129885
|
+
/**
|
|
129886
|
+
* Properties of an UpdateTagResponse.
|
|
129887
|
+
* @exports IUpdateTagResponse
|
|
129888
|
+
* @interface IUpdateTagResponse
|
|
129889
|
+
* @property {StatusCode|null} [status] UpdateTagResponse status
|
|
129890
|
+
* @property {Array.<IError>|null} [errors] UpdateTagResponse errors
|
|
129891
|
+
* @property {ITag|null} [tag] UpdateTagResponse tag
|
|
129892
|
+
*/
|
|
129893
|
+
|
|
129894
|
+
/**
|
|
129895
|
+
* Constructs a new UpdateTagResponse.
|
|
129896
|
+
* @exports UpdateTagResponse
|
|
129897
|
+
* @classdesc Represents an UpdateTagResponse.
|
|
129898
|
+
* @implements IUpdateTagResponse
|
|
129899
|
+
* @constructor
|
|
129900
|
+
* @param {IUpdateTagResponse=} [properties] Properties to set
|
|
129901
|
+
*/
|
|
129902
|
+
function UpdateTagResponse(properties) {
|
|
129903
|
+
this.errors = [];
|
|
129904
|
+
if (properties)
|
|
129905
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
129906
|
+
if (properties[keys[i]] != null)
|
|
129907
|
+
this[keys[i]] = properties[keys[i]];
|
|
129908
|
+
}
|
|
129909
|
+
|
|
129910
|
+
/**
|
|
129911
|
+
* UpdateTagResponse status.
|
|
129912
|
+
* @member {StatusCode} status
|
|
129913
|
+
* @memberof UpdateTagResponse
|
|
129914
|
+
* @instance
|
|
129915
|
+
*/
|
|
129916
|
+
UpdateTagResponse.prototype.status = 0;
|
|
129917
|
+
|
|
129918
|
+
/**
|
|
129919
|
+
* UpdateTagResponse errors.
|
|
129920
|
+
* @member {Array.<IError>} errors
|
|
129921
|
+
* @memberof UpdateTagResponse
|
|
129922
|
+
* @instance
|
|
129923
|
+
*/
|
|
129924
|
+
UpdateTagResponse.prototype.errors = $util.emptyArray;
|
|
129925
|
+
|
|
129926
|
+
/**
|
|
129927
|
+
* UpdateTagResponse tag.
|
|
129928
|
+
* @member {ITag|null|undefined} tag
|
|
129929
|
+
* @memberof UpdateTagResponse
|
|
129930
|
+
* @instance
|
|
129931
|
+
*/
|
|
129932
|
+
UpdateTagResponse.prototype.tag = null;
|
|
129933
|
+
|
|
129934
|
+
/**
|
|
129935
|
+
* Creates a new UpdateTagResponse instance using the specified properties.
|
|
129936
|
+
* @function create
|
|
129937
|
+
* @memberof UpdateTagResponse
|
|
129938
|
+
* @static
|
|
129939
|
+
* @param {IUpdateTagResponse=} [properties] Properties to set
|
|
129940
|
+
* @returns {UpdateTagResponse} UpdateTagResponse instance
|
|
129941
|
+
*/
|
|
129942
|
+
UpdateTagResponse.create = function create(properties) {
|
|
129943
|
+
return new UpdateTagResponse(properties);
|
|
129944
|
+
};
|
|
129945
|
+
|
|
129946
|
+
/**
|
|
129947
|
+
* Encodes the specified UpdateTagResponse message. Does not implicitly {@link UpdateTagResponse.verify|verify} messages.
|
|
129948
|
+
* @function encode
|
|
129949
|
+
* @memberof UpdateTagResponse
|
|
129950
|
+
* @static
|
|
129951
|
+
* @param {IUpdateTagResponse} message UpdateTagResponse message or plain object to encode
|
|
129952
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129953
|
+
* @returns {$protobuf.Writer} Writer
|
|
129954
|
+
*/
|
|
129955
|
+
UpdateTagResponse.encode = function encode(message, writer) {
|
|
129956
|
+
if (!writer)
|
|
129957
|
+
writer = $Writer.create();
|
|
129958
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
129959
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
129960
|
+
if (message.errors != null && message.errors.length)
|
|
129961
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
129962
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
129963
|
+
if (message.tag != null && Object.hasOwnProperty.call(message, "tag"))
|
|
129964
|
+
$root.Tag.encode(message.tag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
129965
|
+
return writer;
|
|
129966
|
+
};
|
|
129967
|
+
|
|
129968
|
+
/**
|
|
129969
|
+
* Encodes the specified UpdateTagResponse message, length delimited. Does not implicitly {@link UpdateTagResponse.verify|verify} messages.
|
|
129970
|
+
* @function encodeDelimited
|
|
129971
|
+
* @memberof UpdateTagResponse
|
|
129972
|
+
* @static
|
|
129973
|
+
* @param {IUpdateTagResponse} message UpdateTagResponse message or plain object to encode
|
|
129974
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129975
|
+
* @returns {$protobuf.Writer} Writer
|
|
129976
|
+
*/
|
|
129977
|
+
UpdateTagResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
129978
|
+
return this.encode(message, writer).ldelim();
|
|
129979
|
+
};
|
|
129980
|
+
|
|
129981
|
+
/**
|
|
129982
|
+
* Decodes an UpdateTagResponse message from the specified reader or buffer.
|
|
129983
|
+
* @function decode
|
|
129984
|
+
* @memberof UpdateTagResponse
|
|
129985
|
+
* @static
|
|
129986
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129987
|
+
* @param {number} [length] Message length if known beforehand
|
|
129988
|
+
* @returns {UpdateTagResponse} UpdateTagResponse
|
|
129989
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129990
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129991
|
+
*/
|
|
129992
|
+
UpdateTagResponse.decode = function decode(reader, length) {
|
|
129993
|
+
if (!(reader instanceof $Reader))
|
|
129994
|
+
reader = $Reader.create(reader);
|
|
129995
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateTagResponse();
|
|
129996
|
+
while (reader.pos < end) {
|
|
129997
|
+
var tag = reader.uint32();
|
|
129998
|
+
switch (tag >>> 3) {
|
|
129999
|
+
case 0:
|
|
130000
|
+
message.status = reader.int32();
|
|
130001
|
+
break;
|
|
130002
|
+
case 1:
|
|
130003
|
+
if (!(message.errors && message.errors.length))
|
|
130004
|
+
message.errors = [];
|
|
130005
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
130006
|
+
break;
|
|
130007
|
+
case 2:
|
|
130008
|
+
message.tag = $root.Tag.decode(reader, reader.uint32());
|
|
130009
|
+
break;
|
|
130010
|
+
default:
|
|
130011
|
+
reader.skipType(tag & 7);
|
|
130012
|
+
break;
|
|
130013
|
+
}
|
|
130014
|
+
}
|
|
130015
|
+
return message;
|
|
130016
|
+
};
|
|
130017
|
+
|
|
130018
|
+
/**
|
|
130019
|
+
* Decodes an UpdateTagResponse message from the specified reader or buffer, length delimited.
|
|
130020
|
+
* @function decodeDelimited
|
|
130021
|
+
* @memberof UpdateTagResponse
|
|
130022
|
+
* @static
|
|
130023
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130024
|
+
* @returns {UpdateTagResponse} UpdateTagResponse
|
|
130025
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130026
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130027
|
+
*/
|
|
130028
|
+
UpdateTagResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
130029
|
+
if (!(reader instanceof $Reader))
|
|
130030
|
+
reader = new $Reader(reader);
|
|
130031
|
+
return this.decode(reader, reader.uint32());
|
|
130032
|
+
};
|
|
130033
|
+
|
|
130034
|
+
/**
|
|
130035
|
+
* Verifies an UpdateTagResponse message.
|
|
130036
|
+
* @function verify
|
|
130037
|
+
* @memberof UpdateTagResponse
|
|
130038
|
+
* @static
|
|
130039
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130040
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130041
|
+
*/
|
|
130042
|
+
UpdateTagResponse.verify = function verify(message) {
|
|
130043
|
+
if (typeof message !== "object" || message === null)
|
|
130044
|
+
return "object expected";
|
|
130045
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
130046
|
+
switch (message.status) {
|
|
130047
|
+
default:
|
|
130048
|
+
return "status: enum value expected";
|
|
130049
|
+
case 0:
|
|
130050
|
+
case 200:
|
|
130051
|
+
case 400:
|
|
130052
|
+
case 401:
|
|
130053
|
+
case 403:
|
|
130054
|
+
case 422:
|
|
130055
|
+
case 404:
|
|
130056
|
+
case 500:
|
|
130057
|
+
case 504:
|
|
130058
|
+
break;
|
|
130059
|
+
}
|
|
130060
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
130061
|
+
if (!Array.isArray(message.errors))
|
|
130062
|
+
return "errors: array expected";
|
|
130063
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
130064
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
130065
|
+
if (error)
|
|
130066
|
+
return "errors." + error;
|
|
130067
|
+
}
|
|
130068
|
+
}
|
|
130069
|
+
if (message.tag != null && message.hasOwnProperty("tag")) {
|
|
130070
|
+
var error = $root.Tag.verify(message.tag);
|
|
130071
|
+
if (error)
|
|
130072
|
+
return "tag." + error;
|
|
130073
|
+
}
|
|
130074
|
+
return null;
|
|
130075
|
+
};
|
|
130076
|
+
|
|
130077
|
+
/**
|
|
130078
|
+
* Creates an UpdateTagResponse message from a plain object. Also converts values to their respective internal types.
|
|
130079
|
+
* @function fromObject
|
|
130080
|
+
* @memberof UpdateTagResponse
|
|
130081
|
+
* @static
|
|
130082
|
+
* @param {Object.<string,*>} object Plain object
|
|
130083
|
+
* @returns {UpdateTagResponse} UpdateTagResponse
|
|
130084
|
+
*/
|
|
130085
|
+
UpdateTagResponse.fromObject = function fromObject(object) {
|
|
130086
|
+
if (object instanceof $root.UpdateTagResponse)
|
|
130087
|
+
return object;
|
|
130088
|
+
var message = new $root.UpdateTagResponse();
|
|
130089
|
+
switch (object.status) {
|
|
130090
|
+
case "UNKNOWN_CODE":
|
|
130091
|
+
case 0:
|
|
130092
|
+
message.status = 0;
|
|
130093
|
+
break;
|
|
130094
|
+
case "OK":
|
|
130095
|
+
case 200:
|
|
130096
|
+
message.status = 200;
|
|
130097
|
+
break;
|
|
130098
|
+
case "BAD_REQUEST":
|
|
130099
|
+
case 400:
|
|
130100
|
+
message.status = 400;
|
|
130101
|
+
break;
|
|
130102
|
+
case "UNAUTHORIZED":
|
|
130103
|
+
case 401:
|
|
130104
|
+
message.status = 401;
|
|
130105
|
+
break;
|
|
130106
|
+
case "FORBIDDEN":
|
|
130107
|
+
case 403:
|
|
130108
|
+
message.status = 403;
|
|
130109
|
+
break;
|
|
130110
|
+
case "UNPROCESSABLE_ENTITY":
|
|
130111
|
+
case 422:
|
|
130112
|
+
message.status = 422;
|
|
130113
|
+
break;
|
|
130114
|
+
case "NOT_FOUND":
|
|
130115
|
+
case 404:
|
|
130116
|
+
message.status = 404;
|
|
130117
|
+
break;
|
|
130118
|
+
case "INTERNAL_SERVER_ERROR":
|
|
130119
|
+
case 500:
|
|
130120
|
+
message.status = 500;
|
|
130121
|
+
break;
|
|
130122
|
+
case "GATEWAY_TIMEOUT":
|
|
130123
|
+
case 504:
|
|
130124
|
+
message.status = 504;
|
|
130125
|
+
break;
|
|
130126
|
+
}
|
|
130127
|
+
if (object.errors) {
|
|
130128
|
+
if (!Array.isArray(object.errors))
|
|
130129
|
+
throw TypeError(".UpdateTagResponse.errors: array expected");
|
|
130130
|
+
message.errors = [];
|
|
130131
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
130132
|
+
if (typeof object.errors[i] !== "object")
|
|
130133
|
+
throw TypeError(".UpdateTagResponse.errors: object expected");
|
|
130134
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
130135
|
+
}
|
|
130136
|
+
}
|
|
130137
|
+
if (object.tag != null) {
|
|
130138
|
+
if (typeof object.tag !== "object")
|
|
130139
|
+
throw TypeError(".UpdateTagResponse.tag: object expected");
|
|
130140
|
+
message.tag = $root.Tag.fromObject(object.tag);
|
|
130141
|
+
}
|
|
130142
|
+
return message;
|
|
130143
|
+
};
|
|
130144
|
+
|
|
130145
|
+
/**
|
|
130146
|
+
* Creates a plain object from an UpdateTagResponse message. Also converts values to other types if specified.
|
|
130147
|
+
* @function toObject
|
|
130148
|
+
* @memberof UpdateTagResponse
|
|
130149
|
+
* @static
|
|
130150
|
+
* @param {UpdateTagResponse} message UpdateTagResponse
|
|
130151
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130152
|
+
* @returns {Object.<string,*>} Plain object
|
|
130153
|
+
*/
|
|
130154
|
+
UpdateTagResponse.toObject = function toObject(message, options) {
|
|
130155
|
+
if (!options)
|
|
130156
|
+
options = {};
|
|
130157
|
+
var object = {};
|
|
130158
|
+
if (options.arrays || options.defaults)
|
|
130159
|
+
object.errors = [];
|
|
130160
|
+
if (options.defaults) {
|
|
130161
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
130162
|
+
object.tag = null;
|
|
130163
|
+
}
|
|
130164
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
130165
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
130166
|
+
if (message.errors && message.errors.length) {
|
|
130167
|
+
object.errors = [];
|
|
130168
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
130169
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
130170
|
+
}
|
|
130171
|
+
if (message.tag != null && message.hasOwnProperty("tag"))
|
|
130172
|
+
object.tag = $root.Tag.toObject(message.tag, options);
|
|
130173
|
+
return object;
|
|
130174
|
+
};
|
|
130175
|
+
|
|
130176
|
+
/**
|
|
130177
|
+
* Converts this UpdateTagResponse to JSON.
|
|
130178
|
+
* @function toJSON
|
|
130179
|
+
* @memberof UpdateTagResponse
|
|
130180
|
+
* @instance
|
|
130181
|
+
* @returns {Object.<string,*>} JSON object
|
|
130182
|
+
*/
|
|
130183
|
+
UpdateTagResponse.prototype.toJSON = function toJSON() {
|
|
130184
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130185
|
+
};
|
|
130186
|
+
|
|
130187
|
+
return UpdateTagResponse;
|
|
130188
|
+
})();
|
|
130189
|
+
|
|
130190
|
+
$root.DeleteTagRequest = (function() {
|
|
130191
|
+
|
|
130192
|
+
/**
|
|
130193
|
+
* Properties of a DeleteTagRequest.
|
|
130194
|
+
* @exports IDeleteTagRequest
|
|
130195
|
+
* @interface IDeleteTagRequest
|
|
130196
|
+
* @property {string|null} [spanContext] DeleteTagRequest spanContext
|
|
130197
|
+
* @property {string|null} [tagId] DeleteTagRequest tagId
|
|
130198
|
+
*/
|
|
130199
|
+
|
|
130200
|
+
/**
|
|
130201
|
+
* Constructs a new DeleteTagRequest.
|
|
130202
|
+
* @exports DeleteTagRequest
|
|
130203
|
+
* @classdesc Represents a DeleteTagRequest.
|
|
130204
|
+
* @implements IDeleteTagRequest
|
|
130205
|
+
* @constructor
|
|
130206
|
+
* @param {IDeleteTagRequest=} [properties] Properties to set
|
|
130207
|
+
*/
|
|
130208
|
+
function DeleteTagRequest(properties) {
|
|
130209
|
+
if (properties)
|
|
130210
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
130211
|
+
if (properties[keys[i]] != null)
|
|
130212
|
+
this[keys[i]] = properties[keys[i]];
|
|
130213
|
+
}
|
|
130214
|
+
|
|
130215
|
+
/**
|
|
130216
|
+
* DeleteTagRequest spanContext.
|
|
130217
|
+
* @member {string} spanContext
|
|
130218
|
+
* @memberof DeleteTagRequest
|
|
130219
|
+
* @instance
|
|
130220
|
+
*/
|
|
130221
|
+
DeleteTagRequest.prototype.spanContext = "";
|
|
130222
|
+
|
|
130223
|
+
/**
|
|
130224
|
+
* DeleteTagRequest tagId.
|
|
130225
|
+
* @member {string} tagId
|
|
130226
|
+
* @memberof DeleteTagRequest
|
|
130227
|
+
* @instance
|
|
130228
|
+
*/
|
|
130229
|
+
DeleteTagRequest.prototype.tagId = "";
|
|
130230
|
+
|
|
130231
|
+
/**
|
|
130232
|
+
* Creates a new DeleteTagRequest instance using the specified properties.
|
|
130233
|
+
* @function create
|
|
130234
|
+
* @memberof DeleteTagRequest
|
|
130235
|
+
* @static
|
|
130236
|
+
* @param {IDeleteTagRequest=} [properties] Properties to set
|
|
130237
|
+
* @returns {DeleteTagRequest} DeleteTagRequest instance
|
|
130238
|
+
*/
|
|
130239
|
+
DeleteTagRequest.create = function create(properties) {
|
|
130240
|
+
return new DeleteTagRequest(properties);
|
|
130241
|
+
};
|
|
130242
|
+
|
|
130243
|
+
/**
|
|
130244
|
+
* Encodes the specified DeleteTagRequest message. Does not implicitly {@link DeleteTagRequest.verify|verify} messages.
|
|
130245
|
+
* @function encode
|
|
130246
|
+
* @memberof DeleteTagRequest
|
|
130247
|
+
* @static
|
|
130248
|
+
* @param {IDeleteTagRequest} message DeleteTagRequest message or plain object to encode
|
|
130249
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130250
|
+
* @returns {$protobuf.Writer} Writer
|
|
130251
|
+
*/
|
|
130252
|
+
DeleteTagRequest.encode = function encode(message, writer) {
|
|
130253
|
+
if (!writer)
|
|
130254
|
+
writer = $Writer.create();
|
|
130255
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
130256
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
130257
|
+
if (message.tagId != null && Object.hasOwnProperty.call(message, "tagId"))
|
|
130258
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.tagId);
|
|
130259
|
+
return writer;
|
|
130260
|
+
};
|
|
130261
|
+
|
|
130262
|
+
/**
|
|
130263
|
+
* Encodes the specified DeleteTagRequest message, length delimited. Does not implicitly {@link DeleteTagRequest.verify|verify} messages.
|
|
130264
|
+
* @function encodeDelimited
|
|
130265
|
+
* @memberof DeleteTagRequest
|
|
130266
|
+
* @static
|
|
130267
|
+
* @param {IDeleteTagRequest} message DeleteTagRequest message or plain object to encode
|
|
130268
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130269
|
+
* @returns {$protobuf.Writer} Writer
|
|
130270
|
+
*/
|
|
130271
|
+
DeleteTagRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
130272
|
+
return this.encode(message, writer).ldelim();
|
|
130273
|
+
};
|
|
130274
|
+
|
|
130275
|
+
/**
|
|
130276
|
+
* Decodes a DeleteTagRequest message from the specified reader or buffer.
|
|
130277
|
+
* @function decode
|
|
130278
|
+
* @memberof DeleteTagRequest
|
|
130279
|
+
* @static
|
|
130280
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130281
|
+
* @param {number} [length] Message length if known beforehand
|
|
130282
|
+
* @returns {DeleteTagRequest} DeleteTagRequest
|
|
130283
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130284
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130285
|
+
*/
|
|
130286
|
+
DeleteTagRequest.decode = function decode(reader, length) {
|
|
130287
|
+
if (!(reader instanceof $Reader))
|
|
130288
|
+
reader = $Reader.create(reader);
|
|
130289
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteTagRequest();
|
|
130290
|
+
while (reader.pos < end) {
|
|
130291
|
+
var tag = reader.uint32();
|
|
130292
|
+
switch (tag >>> 3) {
|
|
130293
|
+
case 0:
|
|
130294
|
+
message.spanContext = reader.string();
|
|
130295
|
+
break;
|
|
130296
|
+
case 1:
|
|
130297
|
+
message.tagId = reader.string();
|
|
130298
|
+
break;
|
|
130299
|
+
default:
|
|
130300
|
+
reader.skipType(tag & 7);
|
|
130301
|
+
break;
|
|
130302
|
+
}
|
|
130303
|
+
}
|
|
130304
|
+
return message;
|
|
130305
|
+
};
|
|
130306
|
+
|
|
130307
|
+
/**
|
|
130308
|
+
* Decodes a DeleteTagRequest message from the specified reader or buffer, length delimited.
|
|
130309
|
+
* @function decodeDelimited
|
|
130310
|
+
* @memberof DeleteTagRequest
|
|
130311
|
+
* @static
|
|
130312
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130313
|
+
* @returns {DeleteTagRequest} DeleteTagRequest
|
|
130314
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130315
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130316
|
+
*/
|
|
130317
|
+
DeleteTagRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
130318
|
+
if (!(reader instanceof $Reader))
|
|
130319
|
+
reader = new $Reader(reader);
|
|
130320
|
+
return this.decode(reader, reader.uint32());
|
|
130321
|
+
};
|
|
130322
|
+
|
|
130323
|
+
/**
|
|
130324
|
+
* Verifies a DeleteTagRequest message.
|
|
130325
|
+
* @function verify
|
|
130326
|
+
* @memberof DeleteTagRequest
|
|
130327
|
+
* @static
|
|
130328
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130329
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130330
|
+
*/
|
|
130331
|
+
DeleteTagRequest.verify = function verify(message) {
|
|
130332
|
+
if (typeof message !== "object" || message === null)
|
|
130333
|
+
return "object expected";
|
|
130334
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
130335
|
+
if (!$util.isString(message.spanContext))
|
|
130336
|
+
return "spanContext: string expected";
|
|
130337
|
+
if (message.tagId != null && message.hasOwnProperty("tagId"))
|
|
130338
|
+
if (!$util.isString(message.tagId))
|
|
130339
|
+
return "tagId: string expected";
|
|
130340
|
+
return null;
|
|
130341
|
+
};
|
|
130342
|
+
|
|
130343
|
+
/**
|
|
130344
|
+
* Creates a DeleteTagRequest message from a plain object. Also converts values to their respective internal types.
|
|
130345
|
+
* @function fromObject
|
|
130346
|
+
* @memberof DeleteTagRequest
|
|
130347
|
+
* @static
|
|
130348
|
+
* @param {Object.<string,*>} object Plain object
|
|
130349
|
+
* @returns {DeleteTagRequest} DeleteTagRequest
|
|
130350
|
+
*/
|
|
130351
|
+
DeleteTagRequest.fromObject = function fromObject(object) {
|
|
130352
|
+
if (object instanceof $root.DeleteTagRequest)
|
|
130353
|
+
return object;
|
|
130354
|
+
var message = new $root.DeleteTagRequest();
|
|
130355
|
+
if (object.spanContext != null)
|
|
130356
|
+
message.spanContext = String(object.spanContext);
|
|
130357
|
+
if (object.tagId != null)
|
|
130358
|
+
message.tagId = String(object.tagId);
|
|
130359
|
+
return message;
|
|
130360
|
+
};
|
|
130361
|
+
|
|
130362
|
+
/**
|
|
130363
|
+
* Creates a plain object from a DeleteTagRequest message. Also converts values to other types if specified.
|
|
130364
|
+
* @function toObject
|
|
130365
|
+
* @memberof DeleteTagRequest
|
|
130366
|
+
* @static
|
|
130367
|
+
* @param {DeleteTagRequest} message DeleteTagRequest
|
|
130368
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130369
|
+
* @returns {Object.<string,*>} Plain object
|
|
130370
|
+
*/
|
|
130371
|
+
DeleteTagRequest.toObject = function toObject(message, options) {
|
|
130372
|
+
if (!options)
|
|
130373
|
+
options = {};
|
|
130374
|
+
var object = {};
|
|
130375
|
+
if (options.defaults) {
|
|
130376
|
+
object.spanContext = "";
|
|
130377
|
+
object.tagId = "";
|
|
130378
|
+
}
|
|
130379
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
130380
|
+
object.spanContext = message.spanContext;
|
|
130381
|
+
if (message.tagId != null && message.hasOwnProperty("tagId"))
|
|
130382
|
+
object.tagId = message.tagId;
|
|
130383
|
+
return object;
|
|
130384
|
+
};
|
|
130385
|
+
|
|
130386
|
+
/**
|
|
130387
|
+
* Converts this DeleteTagRequest to JSON.
|
|
130388
|
+
* @function toJSON
|
|
130389
|
+
* @memberof DeleteTagRequest
|
|
130390
|
+
* @instance
|
|
130391
|
+
* @returns {Object.<string,*>} JSON object
|
|
130392
|
+
*/
|
|
130393
|
+
DeleteTagRequest.prototype.toJSON = function toJSON() {
|
|
130394
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130395
|
+
};
|
|
130396
|
+
|
|
130397
|
+
return DeleteTagRequest;
|
|
130398
|
+
})();
|
|
130399
|
+
|
|
130400
|
+
$root.DeleteTagResponse = (function() {
|
|
130401
|
+
|
|
130402
|
+
/**
|
|
130403
|
+
* Properties of a DeleteTagResponse.
|
|
130404
|
+
* @exports IDeleteTagResponse
|
|
130405
|
+
* @interface IDeleteTagResponse
|
|
130406
|
+
* @property {StatusCode|null} [status] DeleteTagResponse status
|
|
130407
|
+
* @property {Array.<IError>|null} [errors] DeleteTagResponse errors
|
|
130408
|
+
* @property {boolean|null} [success] DeleteTagResponse success
|
|
130409
|
+
*/
|
|
130410
|
+
|
|
130411
|
+
/**
|
|
130412
|
+
* Constructs a new DeleteTagResponse.
|
|
130413
|
+
* @exports DeleteTagResponse
|
|
130414
|
+
* @classdesc Represents a DeleteTagResponse.
|
|
130415
|
+
* @implements IDeleteTagResponse
|
|
130416
|
+
* @constructor
|
|
130417
|
+
* @param {IDeleteTagResponse=} [properties] Properties to set
|
|
130418
|
+
*/
|
|
130419
|
+
function DeleteTagResponse(properties) {
|
|
130420
|
+
this.errors = [];
|
|
130421
|
+
if (properties)
|
|
130422
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
130423
|
+
if (properties[keys[i]] != null)
|
|
130424
|
+
this[keys[i]] = properties[keys[i]];
|
|
130425
|
+
}
|
|
130426
|
+
|
|
130427
|
+
/**
|
|
130428
|
+
* DeleteTagResponse status.
|
|
130429
|
+
* @member {StatusCode} status
|
|
130430
|
+
* @memberof DeleteTagResponse
|
|
130431
|
+
* @instance
|
|
130432
|
+
*/
|
|
130433
|
+
DeleteTagResponse.prototype.status = 0;
|
|
130434
|
+
|
|
130435
|
+
/**
|
|
130436
|
+
* DeleteTagResponse errors.
|
|
130437
|
+
* @member {Array.<IError>} errors
|
|
130438
|
+
* @memberof DeleteTagResponse
|
|
130439
|
+
* @instance
|
|
130440
|
+
*/
|
|
130441
|
+
DeleteTagResponse.prototype.errors = $util.emptyArray;
|
|
130442
|
+
|
|
130443
|
+
/**
|
|
130444
|
+
* DeleteTagResponse success.
|
|
130445
|
+
* @member {boolean} success
|
|
130446
|
+
* @memberof DeleteTagResponse
|
|
130447
|
+
* @instance
|
|
130448
|
+
*/
|
|
130449
|
+
DeleteTagResponse.prototype.success = false;
|
|
130450
|
+
|
|
130451
|
+
/**
|
|
130452
|
+
* Creates a new DeleteTagResponse instance using the specified properties.
|
|
130453
|
+
* @function create
|
|
130454
|
+
* @memberof DeleteTagResponse
|
|
130455
|
+
* @static
|
|
130456
|
+
* @param {IDeleteTagResponse=} [properties] Properties to set
|
|
130457
|
+
* @returns {DeleteTagResponse} DeleteTagResponse instance
|
|
130458
|
+
*/
|
|
130459
|
+
DeleteTagResponse.create = function create(properties) {
|
|
130460
|
+
return new DeleteTagResponse(properties);
|
|
130461
|
+
};
|
|
130462
|
+
|
|
130463
|
+
/**
|
|
130464
|
+
* Encodes the specified DeleteTagResponse message. Does not implicitly {@link DeleteTagResponse.verify|verify} messages.
|
|
130465
|
+
* @function encode
|
|
130466
|
+
* @memberof DeleteTagResponse
|
|
130467
|
+
* @static
|
|
130468
|
+
* @param {IDeleteTagResponse} message DeleteTagResponse message or plain object to encode
|
|
130469
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130470
|
+
* @returns {$protobuf.Writer} Writer
|
|
130471
|
+
*/
|
|
130472
|
+
DeleteTagResponse.encode = function encode(message, writer) {
|
|
130473
|
+
if (!writer)
|
|
130474
|
+
writer = $Writer.create();
|
|
130475
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
130476
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
130477
|
+
if (message.errors != null && message.errors.length)
|
|
130478
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
130479
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
130480
|
+
if (message.success != null && Object.hasOwnProperty.call(message, "success"))
|
|
130481
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success);
|
|
130482
|
+
return writer;
|
|
130483
|
+
};
|
|
130484
|
+
|
|
130485
|
+
/**
|
|
130486
|
+
* Encodes the specified DeleteTagResponse message, length delimited. Does not implicitly {@link DeleteTagResponse.verify|verify} messages.
|
|
130487
|
+
* @function encodeDelimited
|
|
130488
|
+
* @memberof DeleteTagResponse
|
|
130489
|
+
* @static
|
|
130490
|
+
* @param {IDeleteTagResponse} message DeleteTagResponse message or plain object to encode
|
|
130491
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130492
|
+
* @returns {$protobuf.Writer} Writer
|
|
130493
|
+
*/
|
|
130494
|
+
DeleteTagResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
130495
|
+
return this.encode(message, writer).ldelim();
|
|
130496
|
+
};
|
|
130497
|
+
|
|
130498
|
+
/**
|
|
130499
|
+
* Decodes a DeleteTagResponse message from the specified reader or buffer.
|
|
130500
|
+
* @function decode
|
|
130501
|
+
* @memberof DeleteTagResponse
|
|
130502
|
+
* @static
|
|
130503
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130504
|
+
* @param {number} [length] Message length if known beforehand
|
|
130505
|
+
* @returns {DeleteTagResponse} DeleteTagResponse
|
|
130506
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130507
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130508
|
+
*/
|
|
130509
|
+
DeleteTagResponse.decode = function decode(reader, length) {
|
|
130510
|
+
if (!(reader instanceof $Reader))
|
|
130511
|
+
reader = $Reader.create(reader);
|
|
130512
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteTagResponse();
|
|
130513
|
+
while (reader.pos < end) {
|
|
130514
|
+
var tag = reader.uint32();
|
|
130515
|
+
switch (tag >>> 3) {
|
|
130516
|
+
case 0:
|
|
130517
|
+
message.status = reader.int32();
|
|
130518
|
+
break;
|
|
130519
|
+
case 1:
|
|
130520
|
+
if (!(message.errors && message.errors.length))
|
|
130521
|
+
message.errors = [];
|
|
130522
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
130523
|
+
break;
|
|
130524
|
+
case 2:
|
|
130525
|
+
message.success = reader.bool();
|
|
130526
|
+
break;
|
|
130527
|
+
default:
|
|
130528
|
+
reader.skipType(tag & 7);
|
|
130529
|
+
break;
|
|
130530
|
+
}
|
|
130531
|
+
}
|
|
130532
|
+
return message;
|
|
130533
|
+
};
|
|
130534
|
+
|
|
130535
|
+
/**
|
|
130536
|
+
* Decodes a DeleteTagResponse message from the specified reader or buffer, length delimited.
|
|
130537
|
+
* @function decodeDelimited
|
|
130538
|
+
* @memberof DeleteTagResponse
|
|
130539
|
+
* @static
|
|
130540
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130541
|
+
* @returns {DeleteTagResponse} DeleteTagResponse
|
|
130542
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130543
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130544
|
+
*/
|
|
130545
|
+
DeleteTagResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
130546
|
+
if (!(reader instanceof $Reader))
|
|
130547
|
+
reader = new $Reader(reader);
|
|
130548
|
+
return this.decode(reader, reader.uint32());
|
|
130549
|
+
};
|
|
130550
|
+
|
|
130551
|
+
/**
|
|
130552
|
+
* Verifies a DeleteTagResponse message.
|
|
130553
|
+
* @function verify
|
|
130554
|
+
* @memberof DeleteTagResponse
|
|
130555
|
+
* @static
|
|
130556
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130557
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130558
|
+
*/
|
|
130559
|
+
DeleteTagResponse.verify = function verify(message) {
|
|
130560
|
+
if (typeof message !== "object" || message === null)
|
|
130561
|
+
return "object expected";
|
|
130562
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
130563
|
+
switch (message.status) {
|
|
130564
|
+
default:
|
|
130565
|
+
return "status: enum value expected";
|
|
130566
|
+
case 0:
|
|
130567
|
+
case 200:
|
|
130568
|
+
case 400:
|
|
130569
|
+
case 401:
|
|
130570
|
+
case 403:
|
|
130571
|
+
case 422:
|
|
130572
|
+
case 404:
|
|
130573
|
+
case 500:
|
|
130574
|
+
case 504:
|
|
130575
|
+
break;
|
|
130576
|
+
}
|
|
130577
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
130578
|
+
if (!Array.isArray(message.errors))
|
|
130579
|
+
return "errors: array expected";
|
|
130580
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
130581
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
130582
|
+
if (error)
|
|
130583
|
+
return "errors." + error;
|
|
130584
|
+
}
|
|
130585
|
+
}
|
|
130586
|
+
if (message.success != null && message.hasOwnProperty("success"))
|
|
130587
|
+
if (typeof message.success !== "boolean")
|
|
130588
|
+
return "success: boolean expected";
|
|
130589
|
+
return null;
|
|
130590
|
+
};
|
|
130591
|
+
|
|
130592
|
+
/**
|
|
130593
|
+
* Creates a DeleteTagResponse message from a plain object. Also converts values to their respective internal types.
|
|
130594
|
+
* @function fromObject
|
|
130595
|
+
* @memberof DeleteTagResponse
|
|
130596
|
+
* @static
|
|
130597
|
+
* @param {Object.<string,*>} object Plain object
|
|
130598
|
+
* @returns {DeleteTagResponse} DeleteTagResponse
|
|
130599
|
+
*/
|
|
130600
|
+
DeleteTagResponse.fromObject = function fromObject(object) {
|
|
130601
|
+
if (object instanceof $root.DeleteTagResponse)
|
|
130602
|
+
return object;
|
|
130603
|
+
var message = new $root.DeleteTagResponse();
|
|
130604
|
+
switch (object.status) {
|
|
130605
|
+
case "UNKNOWN_CODE":
|
|
130606
|
+
case 0:
|
|
130607
|
+
message.status = 0;
|
|
130608
|
+
break;
|
|
130609
|
+
case "OK":
|
|
130610
|
+
case 200:
|
|
130611
|
+
message.status = 200;
|
|
130612
|
+
break;
|
|
130613
|
+
case "BAD_REQUEST":
|
|
130614
|
+
case 400:
|
|
130615
|
+
message.status = 400;
|
|
130616
|
+
break;
|
|
130617
|
+
case "UNAUTHORIZED":
|
|
130618
|
+
case 401:
|
|
130619
|
+
message.status = 401;
|
|
130620
|
+
break;
|
|
130621
|
+
case "FORBIDDEN":
|
|
130622
|
+
case 403:
|
|
130623
|
+
message.status = 403;
|
|
130624
|
+
break;
|
|
130625
|
+
case "UNPROCESSABLE_ENTITY":
|
|
130626
|
+
case 422:
|
|
130627
|
+
message.status = 422;
|
|
130628
|
+
break;
|
|
130629
|
+
case "NOT_FOUND":
|
|
130630
|
+
case 404:
|
|
130631
|
+
message.status = 404;
|
|
130632
|
+
break;
|
|
130633
|
+
case "INTERNAL_SERVER_ERROR":
|
|
130634
|
+
case 500:
|
|
130635
|
+
message.status = 500;
|
|
130636
|
+
break;
|
|
130637
|
+
case "GATEWAY_TIMEOUT":
|
|
130638
|
+
case 504:
|
|
130639
|
+
message.status = 504;
|
|
130640
|
+
break;
|
|
130641
|
+
}
|
|
130642
|
+
if (object.errors) {
|
|
130643
|
+
if (!Array.isArray(object.errors))
|
|
130644
|
+
throw TypeError(".DeleteTagResponse.errors: array expected");
|
|
130645
|
+
message.errors = [];
|
|
130646
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
130647
|
+
if (typeof object.errors[i] !== "object")
|
|
130648
|
+
throw TypeError(".DeleteTagResponse.errors: object expected");
|
|
130649
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
130650
|
+
}
|
|
130651
|
+
}
|
|
130652
|
+
if (object.success != null)
|
|
130653
|
+
message.success = Boolean(object.success);
|
|
130654
|
+
return message;
|
|
130655
|
+
};
|
|
130656
|
+
|
|
130657
|
+
/**
|
|
130658
|
+
* Creates a plain object from a DeleteTagResponse message. Also converts values to other types if specified.
|
|
130659
|
+
* @function toObject
|
|
130660
|
+
* @memberof DeleteTagResponse
|
|
130661
|
+
* @static
|
|
130662
|
+
* @param {DeleteTagResponse} message DeleteTagResponse
|
|
130663
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130664
|
+
* @returns {Object.<string,*>} Plain object
|
|
130665
|
+
*/
|
|
130666
|
+
DeleteTagResponse.toObject = function toObject(message, options) {
|
|
130667
|
+
if (!options)
|
|
130668
|
+
options = {};
|
|
130669
|
+
var object = {};
|
|
130670
|
+
if (options.arrays || options.defaults)
|
|
130671
|
+
object.errors = [];
|
|
130672
|
+
if (options.defaults) {
|
|
130673
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
130674
|
+
object.success = false;
|
|
130675
|
+
}
|
|
130676
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
130677
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
130678
|
+
if (message.errors && message.errors.length) {
|
|
130679
|
+
object.errors = [];
|
|
130680
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
130681
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
130682
|
+
}
|
|
130683
|
+
if (message.success != null && message.hasOwnProperty("success"))
|
|
130684
|
+
object.success = message.success;
|
|
130685
|
+
return object;
|
|
130686
|
+
};
|
|
130687
|
+
|
|
130688
|
+
/**
|
|
130689
|
+
* Converts this DeleteTagResponse to JSON.
|
|
130690
|
+
* @function toJSON
|
|
130691
|
+
* @memberof DeleteTagResponse
|
|
130692
|
+
* @instance
|
|
130693
|
+
* @returns {Object.<string,*>} JSON object
|
|
130694
|
+
*/
|
|
130695
|
+
DeleteTagResponse.prototype.toJSON = function toJSON() {
|
|
130696
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130697
|
+
};
|
|
130698
|
+
|
|
130699
|
+
return DeleteTagResponse;
|
|
130700
|
+
})();
|
|
130701
|
+
|
|
130702
|
+
$root.ListTagsRequest = (function() {
|
|
130703
|
+
|
|
130704
|
+
/**
|
|
130705
|
+
* Properties of a ListTagsRequest.
|
|
130706
|
+
* @exports IListTagsRequest
|
|
130707
|
+
* @interface IListTagsRequest
|
|
130708
|
+
* @property {string|null} [spanContext] ListTagsRequest spanContext
|
|
130709
|
+
*/
|
|
130710
|
+
|
|
130711
|
+
/**
|
|
130712
|
+
* Constructs a new ListTagsRequest.
|
|
130713
|
+
* @exports ListTagsRequest
|
|
130714
|
+
* @classdesc Represents a ListTagsRequest.
|
|
130715
|
+
* @implements IListTagsRequest
|
|
130716
|
+
* @constructor
|
|
130717
|
+
* @param {IListTagsRequest=} [properties] Properties to set
|
|
130718
|
+
*/
|
|
130719
|
+
function ListTagsRequest(properties) {
|
|
130720
|
+
if (properties)
|
|
130721
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
130722
|
+
if (properties[keys[i]] != null)
|
|
130723
|
+
this[keys[i]] = properties[keys[i]];
|
|
130724
|
+
}
|
|
130725
|
+
|
|
130726
|
+
/**
|
|
130727
|
+
* ListTagsRequest spanContext.
|
|
130728
|
+
* @member {string} spanContext
|
|
130729
|
+
* @memberof ListTagsRequest
|
|
130730
|
+
* @instance
|
|
130731
|
+
*/
|
|
130732
|
+
ListTagsRequest.prototype.spanContext = "";
|
|
130733
|
+
|
|
130734
|
+
/**
|
|
130735
|
+
* Creates a new ListTagsRequest instance using the specified properties.
|
|
130736
|
+
* @function create
|
|
130737
|
+
* @memberof ListTagsRequest
|
|
130738
|
+
* @static
|
|
130739
|
+
* @param {IListTagsRequest=} [properties] Properties to set
|
|
130740
|
+
* @returns {ListTagsRequest} ListTagsRequest instance
|
|
130741
|
+
*/
|
|
130742
|
+
ListTagsRequest.create = function create(properties) {
|
|
130743
|
+
return new ListTagsRequest(properties);
|
|
130744
|
+
};
|
|
130745
|
+
|
|
130746
|
+
/**
|
|
130747
|
+
* Encodes the specified ListTagsRequest message. Does not implicitly {@link ListTagsRequest.verify|verify} messages.
|
|
130748
|
+
* @function encode
|
|
130749
|
+
* @memberof ListTagsRequest
|
|
130750
|
+
* @static
|
|
130751
|
+
* @param {IListTagsRequest} message ListTagsRequest message or plain object to encode
|
|
130752
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130753
|
+
* @returns {$protobuf.Writer} Writer
|
|
130754
|
+
*/
|
|
130755
|
+
ListTagsRequest.encode = function encode(message, writer) {
|
|
130756
|
+
if (!writer)
|
|
130757
|
+
writer = $Writer.create();
|
|
130758
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
130759
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
130760
|
+
return writer;
|
|
130761
|
+
};
|
|
130762
|
+
|
|
130763
|
+
/**
|
|
130764
|
+
* Encodes the specified ListTagsRequest message, length delimited. Does not implicitly {@link ListTagsRequest.verify|verify} messages.
|
|
130765
|
+
* @function encodeDelimited
|
|
130766
|
+
* @memberof ListTagsRequest
|
|
130767
|
+
* @static
|
|
130768
|
+
* @param {IListTagsRequest} message ListTagsRequest message or plain object to encode
|
|
130769
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130770
|
+
* @returns {$protobuf.Writer} Writer
|
|
130771
|
+
*/
|
|
130772
|
+
ListTagsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
130773
|
+
return this.encode(message, writer).ldelim();
|
|
130774
|
+
};
|
|
130775
|
+
|
|
130776
|
+
/**
|
|
130777
|
+
* Decodes a ListTagsRequest message from the specified reader or buffer.
|
|
130778
|
+
* @function decode
|
|
130779
|
+
* @memberof ListTagsRequest
|
|
130780
|
+
* @static
|
|
130781
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130782
|
+
* @param {number} [length] Message length if known beforehand
|
|
130783
|
+
* @returns {ListTagsRequest} ListTagsRequest
|
|
130784
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130785
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130786
|
+
*/
|
|
130787
|
+
ListTagsRequest.decode = function decode(reader, length) {
|
|
130788
|
+
if (!(reader instanceof $Reader))
|
|
130789
|
+
reader = $Reader.create(reader);
|
|
130790
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ListTagsRequest();
|
|
130791
|
+
while (reader.pos < end) {
|
|
130792
|
+
var tag = reader.uint32();
|
|
130793
|
+
switch (tag >>> 3) {
|
|
130794
|
+
case 0:
|
|
130795
|
+
message.spanContext = reader.string();
|
|
130796
|
+
break;
|
|
130797
|
+
default:
|
|
130798
|
+
reader.skipType(tag & 7);
|
|
130799
|
+
break;
|
|
130800
|
+
}
|
|
130801
|
+
}
|
|
130802
|
+
return message;
|
|
130803
|
+
};
|
|
130804
|
+
|
|
130805
|
+
/**
|
|
130806
|
+
* Decodes a ListTagsRequest message from the specified reader or buffer, length delimited.
|
|
130807
|
+
* @function decodeDelimited
|
|
130808
|
+
* @memberof ListTagsRequest
|
|
130809
|
+
* @static
|
|
130810
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130811
|
+
* @returns {ListTagsRequest} ListTagsRequest
|
|
130812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130814
|
+
*/
|
|
130815
|
+
ListTagsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
130816
|
+
if (!(reader instanceof $Reader))
|
|
130817
|
+
reader = new $Reader(reader);
|
|
130818
|
+
return this.decode(reader, reader.uint32());
|
|
130819
|
+
};
|
|
130820
|
+
|
|
130821
|
+
/**
|
|
130822
|
+
* Verifies a ListTagsRequest message.
|
|
130823
|
+
* @function verify
|
|
130824
|
+
* @memberof ListTagsRequest
|
|
130825
|
+
* @static
|
|
130826
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
130827
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
130828
|
+
*/
|
|
130829
|
+
ListTagsRequest.verify = function verify(message) {
|
|
130830
|
+
if (typeof message !== "object" || message === null)
|
|
130831
|
+
return "object expected";
|
|
130832
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
130833
|
+
if (!$util.isString(message.spanContext))
|
|
130834
|
+
return "spanContext: string expected";
|
|
130835
|
+
return null;
|
|
130836
|
+
};
|
|
130837
|
+
|
|
130838
|
+
/**
|
|
130839
|
+
* Creates a ListTagsRequest message from a plain object. Also converts values to their respective internal types.
|
|
130840
|
+
* @function fromObject
|
|
130841
|
+
* @memberof ListTagsRequest
|
|
130842
|
+
* @static
|
|
130843
|
+
* @param {Object.<string,*>} object Plain object
|
|
130844
|
+
* @returns {ListTagsRequest} ListTagsRequest
|
|
130845
|
+
*/
|
|
130846
|
+
ListTagsRequest.fromObject = function fromObject(object) {
|
|
130847
|
+
if (object instanceof $root.ListTagsRequest)
|
|
130848
|
+
return object;
|
|
130849
|
+
var message = new $root.ListTagsRequest();
|
|
130850
|
+
if (object.spanContext != null)
|
|
130851
|
+
message.spanContext = String(object.spanContext);
|
|
130852
|
+
return message;
|
|
130853
|
+
};
|
|
130854
|
+
|
|
130855
|
+
/**
|
|
130856
|
+
* Creates a plain object from a ListTagsRequest message. Also converts values to other types if specified.
|
|
130857
|
+
* @function toObject
|
|
130858
|
+
* @memberof ListTagsRequest
|
|
130859
|
+
* @static
|
|
130860
|
+
* @param {ListTagsRequest} message ListTagsRequest
|
|
130861
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
130862
|
+
* @returns {Object.<string,*>} Plain object
|
|
130863
|
+
*/
|
|
130864
|
+
ListTagsRequest.toObject = function toObject(message, options) {
|
|
130865
|
+
if (!options)
|
|
130866
|
+
options = {};
|
|
130867
|
+
var object = {};
|
|
130868
|
+
if (options.defaults)
|
|
130869
|
+
object.spanContext = "";
|
|
130870
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
130871
|
+
object.spanContext = message.spanContext;
|
|
130872
|
+
return object;
|
|
130873
|
+
};
|
|
130874
|
+
|
|
130875
|
+
/**
|
|
130876
|
+
* Converts this ListTagsRequest to JSON.
|
|
130877
|
+
* @function toJSON
|
|
130878
|
+
* @memberof ListTagsRequest
|
|
130879
|
+
* @instance
|
|
130880
|
+
* @returns {Object.<string,*>} JSON object
|
|
130881
|
+
*/
|
|
130882
|
+
ListTagsRequest.prototype.toJSON = function toJSON() {
|
|
130883
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
130884
|
+
};
|
|
130885
|
+
|
|
130886
|
+
return ListTagsRequest;
|
|
130887
|
+
})();
|
|
130888
|
+
|
|
130889
|
+
$root.ListTagsResponse = (function() {
|
|
130890
|
+
|
|
130891
|
+
/**
|
|
130892
|
+
* Properties of a ListTagsResponse.
|
|
130893
|
+
* @exports IListTagsResponse
|
|
130894
|
+
* @interface IListTagsResponse
|
|
130895
|
+
* @property {StatusCode|null} [status] ListTagsResponse status
|
|
130896
|
+
* @property {Array.<IError>|null} [errors] ListTagsResponse errors
|
|
130897
|
+
* @property {Array.<ITag>|null} [tags] ListTagsResponse tags
|
|
130898
|
+
*/
|
|
130899
|
+
|
|
130900
|
+
/**
|
|
130901
|
+
* Constructs a new ListTagsResponse.
|
|
130902
|
+
* @exports ListTagsResponse
|
|
130903
|
+
* @classdesc Represents a ListTagsResponse.
|
|
130904
|
+
* @implements IListTagsResponse
|
|
130905
|
+
* @constructor
|
|
130906
|
+
* @param {IListTagsResponse=} [properties] Properties to set
|
|
130907
|
+
*/
|
|
130908
|
+
function ListTagsResponse(properties) {
|
|
130909
|
+
this.errors = [];
|
|
130910
|
+
this.tags = [];
|
|
130911
|
+
if (properties)
|
|
130912
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
130913
|
+
if (properties[keys[i]] != null)
|
|
130914
|
+
this[keys[i]] = properties[keys[i]];
|
|
130915
|
+
}
|
|
130916
|
+
|
|
130917
|
+
/**
|
|
130918
|
+
* ListTagsResponse status.
|
|
130919
|
+
* @member {StatusCode} status
|
|
130920
|
+
* @memberof ListTagsResponse
|
|
130921
|
+
* @instance
|
|
130922
|
+
*/
|
|
130923
|
+
ListTagsResponse.prototype.status = 0;
|
|
130924
|
+
|
|
130925
|
+
/**
|
|
130926
|
+
* ListTagsResponse errors.
|
|
130927
|
+
* @member {Array.<IError>} errors
|
|
130928
|
+
* @memberof ListTagsResponse
|
|
130929
|
+
* @instance
|
|
130930
|
+
*/
|
|
130931
|
+
ListTagsResponse.prototype.errors = $util.emptyArray;
|
|
130932
|
+
|
|
130933
|
+
/**
|
|
130934
|
+
* ListTagsResponse tags.
|
|
130935
|
+
* @member {Array.<ITag>} tags
|
|
130936
|
+
* @memberof ListTagsResponse
|
|
130937
|
+
* @instance
|
|
130938
|
+
*/
|
|
130939
|
+
ListTagsResponse.prototype.tags = $util.emptyArray;
|
|
130940
|
+
|
|
130941
|
+
/**
|
|
130942
|
+
* Creates a new ListTagsResponse instance using the specified properties.
|
|
130943
|
+
* @function create
|
|
130944
|
+
* @memberof ListTagsResponse
|
|
130945
|
+
* @static
|
|
130946
|
+
* @param {IListTagsResponse=} [properties] Properties to set
|
|
130947
|
+
* @returns {ListTagsResponse} ListTagsResponse instance
|
|
130948
|
+
*/
|
|
130949
|
+
ListTagsResponse.create = function create(properties) {
|
|
130950
|
+
return new ListTagsResponse(properties);
|
|
130951
|
+
};
|
|
130952
|
+
|
|
130953
|
+
/**
|
|
130954
|
+
* Encodes the specified ListTagsResponse message. Does not implicitly {@link ListTagsResponse.verify|verify} messages.
|
|
130955
|
+
* @function encode
|
|
130956
|
+
* @memberof ListTagsResponse
|
|
130957
|
+
* @static
|
|
130958
|
+
* @param {IListTagsResponse} message ListTagsResponse message or plain object to encode
|
|
130959
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130960
|
+
* @returns {$protobuf.Writer} Writer
|
|
130961
|
+
*/
|
|
130962
|
+
ListTagsResponse.encode = function encode(message, writer) {
|
|
130963
|
+
if (!writer)
|
|
130964
|
+
writer = $Writer.create();
|
|
130965
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
130966
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
130967
|
+
if (message.errors != null && message.errors.length)
|
|
130968
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
130969
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
130970
|
+
if (message.tags != null && message.tags.length)
|
|
130971
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
130972
|
+
$root.Tag.encode(message.tags[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
130973
|
+
return writer;
|
|
130974
|
+
};
|
|
130975
|
+
|
|
130976
|
+
/**
|
|
130977
|
+
* Encodes the specified ListTagsResponse message, length delimited. Does not implicitly {@link ListTagsResponse.verify|verify} messages.
|
|
130978
|
+
* @function encodeDelimited
|
|
130979
|
+
* @memberof ListTagsResponse
|
|
130980
|
+
* @static
|
|
130981
|
+
* @param {IListTagsResponse} message ListTagsResponse message or plain object to encode
|
|
130982
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
130983
|
+
* @returns {$protobuf.Writer} Writer
|
|
130984
|
+
*/
|
|
130985
|
+
ListTagsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
130986
|
+
return this.encode(message, writer).ldelim();
|
|
130987
|
+
};
|
|
130988
|
+
|
|
130989
|
+
/**
|
|
130990
|
+
* Decodes a ListTagsResponse message from the specified reader or buffer.
|
|
130991
|
+
* @function decode
|
|
130992
|
+
* @memberof ListTagsResponse
|
|
130993
|
+
* @static
|
|
130994
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
130995
|
+
* @param {number} [length] Message length if known beforehand
|
|
130996
|
+
* @returns {ListTagsResponse} ListTagsResponse
|
|
130997
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
130998
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
130999
|
+
*/
|
|
131000
|
+
ListTagsResponse.decode = function decode(reader, length) {
|
|
131001
|
+
if (!(reader instanceof $Reader))
|
|
131002
|
+
reader = $Reader.create(reader);
|
|
131003
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ListTagsResponse();
|
|
131004
|
+
while (reader.pos < end) {
|
|
131005
|
+
var tag = reader.uint32();
|
|
131006
|
+
switch (tag >>> 3) {
|
|
131007
|
+
case 0:
|
|
131008
|
+
message.status = reader.int32();
|
|
131009
|
+
break;
|
|
131010
|
+
case 1:
|
|
131011
|
+
if (!(message.errors && message.errors.length))
|
|
131012
|
+
message.errors = [];
|
|
131013
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
131014
|
+
break;
|
|
131015
|
+
case 2:
|
|
131016
|
+
if (!(message.tags && message.tags.length))
|
|
131017
|
+
message.tags = [];
|
|
131018
|
+
message.tags.push($root.Tag.decode(reader, reader.uint32()));
|
|
131019
|
+
break;
|
|
131020
|
+
default:
|
|
131021
|
+
reader.skipType(tag & 7);
|
|
131022
|
+
break;
|
|
131023
|
+
}
|
|
131024
|
+
}
|
|
131025
|
+
return message;
|
|
131026
|
+
};
|
|
131027
|
+
|
|
131028
|
+
/**
|
|
131029
|
+
* Decodes a ListTagsResponse message from the specified reader or buffer, length delimited.
|
|
131030
|
+
* @function decodeDelimited
|
|
131031
|
+
* @memberof ListTagsResponse
|
|
131032
|
+
* @static
|
|
131033
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
131034
|
+
* @returns {ListTagsResponse} ListTagsResponse
|
|
131035
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
131036
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
131037
|
+
*/
|
|
131038
|
+
ListTagsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
131039
|
+
if (!(reader instanceof $Reader))
|
|
131040
|
+
reader = new $Reader(reader);
|
|
131041
|
+
return this.decode(reader, reader.uint32());
|
|
131042
|
+
};
|
|
131043
|
+
|
|
131044
|
+
/**
|
|
131045
|
+
* Verifies a ListTagsResponse message.
|
|
131046
|
+
* @function verify
|
|
131047
|
+
* @memberof ListTagsResponse
|
|
131048
|
+
* @static
|
|
131049
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
131050
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
131051
|
+
*/
|
|
131052
|
+
ListTagsResponse.verify = function verify(message) {
|
|
131053
|
+
if (typeof message !== "object" || message === null)
|
|
131054
|
+
return "object expected";
|
|
131055
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
131056
|
+
switch (message.status) {
|
|
131057
|
+
default:
|
|
131058
|
+
return "status: enum value expected";
|
|
131059
|
+
case 0:
|
|
131060
|
+
case 200:
|
|
131061
|
+
case 400:
|
|
131062
|
+
case 401:
|
|
131063
|
+
case 403:
|
|
131064
|
+
case 422:
|
|
131065
|
+
case 404:
|
|
131066
|
+
case 500:
|
|
131067
|
+
case 504:
|
|
131068
|
+
break;
|
|
131069
|
+
}
|
|
131070
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
131071
|
+
if (!Array.isArray(message.errors))
|
|
131072
|
+
return "errors: array expected";
|
|
131073
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
131074
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
131075
|
+
if (error)
|
|
131076
|
+
return "errors." + error;
|
|
131077
|
+
}
|
|
131078
|
+
}
|
|
131079
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
131080
|
+
if (!Array.isArray(message.tags))
|
|
131081
|
+
return "tags: array expected";
|
|
131082
|
+
for (var i = 0; i < message.tags.length; ++i) {
|
|
131083
|
+
var error = $root.Tag.verify(message.tags[i]);
|
|
131084
|
+
if (error)
|
|
131085
|
+
return "tags." + error;
|
|
131086
|
+
}
|
|
131087
|
+
}
|
|
131088
|
+
return null;
|
|
131089
|
+
};
|
|
131090
|
+
|
|
131091
|
+
/**
|
|
131092
|
+
* Creates a ListTagsResponse message from a plain object. Also converts values to their respective internal types.
|
|
131093
|
+
* @function fromObject
|
|
131094
|
+
* @memberof ListTagsResponse
|
|
131095
|
+
* @static
|
|
131096
|
+
* @param {Object.<string,*>} object Plain object
|
|
131097
|
+
* @returns {ListTagsResponse} ListTagsResponse
|
|
131098
|
+
*/
|
|
131099
|
+
ListTagsResponse.fromObject = function fromObject(object) {
|
|
131100
|
+
if (object instanceof $root.ListTagsResponse)
|
|
131101
|
+
return object;
|
|
131102
|
+
var message = new $root.ListTagsResponse();
|
|
131103
|
+
switch (object.status) {
|
|
131104
|
+
case "UNKNOWN_CODE":
|
|
131105
|
+
case 0:
|
|
131106
|
+
message.status = 0;
|
|
131107
|
+
break;
|
|
131108
|
+
case "OK":
|
|
131109
|
+
case 200:
|
|
131110
|
+
message.status = 200;
|
|
131111
|
+
break;
|
|
131112
|
+
case "BAD_REQUEST":
|
|
131113
|
+
case 400:
|
|
131114
|
+
message.status = 400;
|
|
131115
|
+
break;
|
|
131116
|
+
case "UNAUTHORIZED":
|
|
131117
|
+
case 401:
|
|
131118
|
+
message.status = 401;
|
|
131119
|
+
break;
|
|
131120
|
+
case "FORBIDDEN":
|
|
131121
|
+
case 403:
|
|
131122
|
+
message.status = 403;
|
|
131123
|
+
break;
|
|
131124
|
+
case "UNPROCESSABLE_ENTITY":
|
|
131125
|
+
case 422:
|
|
131126
|
+
message.status = 422;
|
|
131127
|
+
break;
|
|
131128
|
+
case "NOT_FOUND":
|
|
131129
|
+
case 404:
|
|
131130
|
+
message.status = 404;
|
|
131131
|
+
break;
|
|
131132
|
+
case "INTERNAL_SERVER_ERROR":
|
|
131133
|
+
case 500:
|
|
131134
|
+
message.status = 500;
|
|
131135
|
+
break;
|
|
131136
|
+
case "GATEWAY_TIMEOUT":
|
|
131137
|
+
case 504:
|
|
131138
|
+
message.status = 504;
|
|
131139
|
+
break;
|
|
131140
|
+
}
|
|
131141
|
+
if (object.errors) {
|
|
131142
|
+
if (!Array.isArray(object.errors))
|
|
131143
|
+
throw TypeError(".ListTagsResponse.errors: array expected");
|
|
128517
131144
|
message.errors = [];
|
|
128518
131145
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
128519
131146
|
if (typeof object.errors[i] !== "object")
|
|
128520
|
-
throw TypeError(".
|
|
131147
|
+
throw TypeError(".ListTagsResponse.errors: object expected");
|
|
128521
131148
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
128522
131149
|
}
|
|
128523
131150
|
}
|
|
128524
|
-
if (object.
|
|
128525
|
-
|
|
128526
|
-
|
|
128527
|
-
message.
|
|
131151
|
+
if (object.tags) {
|
|
131152
|
+
if (!Array.isArray(object.tags))
|
|
131153
|
+
throw TypeError(".ListTagsResponse.tags: array expected");
|
|
131154
|
+
message.tags = [];
|
|
131155
|
+
for (var i = 0; i < object.tags.length; ++i) {
|
|
131156
|
+
if (typeof object.tags[i] !== "object")
|
|
131157
|
+
throw TypeError(".ListTagsResponse.tags: object expected");
|
|
131158
|
+
message.tags[i] = $root.Tag.fromObject(object.tags[i]);
|
|
131159
|
+
}
|
|
131160
|
+
}
|
|
128528
131161
|
return message;
|
|
128529
131162
|
};
|
|
128530
131163
|
|
|
128531
131164
|
/**
|
|
128532
|
-
* Creates a plain object from a
|
|
131165
|
+
* Creates a plain object from a ListTagsResponse message. Also converts values to other types if specified.
|
|
128533
131166
|
* @function toObject
|
|
128534
|
-
* @memberof
|
|
131167
|
+
* @memberof ListTagsResponse
|
|
128535
131168
|
* @static
|
|
128536
|
-
* @param {
|
|
131169
|
+
* @param {ListTagsResponse} message ListTagsResponse
|
|
128537
131170
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
128538
131171
|
* @returns {Object.<string,*>} Plain object
|
|
128539
131172
|
*/
|
|
128540
|
-
|
|
131173
|
+
ListTagsResponse.toObject = function toObject(message, options) {
|
|
128541
131174
|
if (!options)
|
|
128542
131175
|
options = {};
|
|
128543
131176
|
var object = {};
|
|
128544
|
-
if (options.arrays || options.defaults)
|
|
131177
|
+
if (options.arrays || options.defaults) {
|
|
128545
131178
|
object.errors = [];
|
|
128546
|
-
|
|
128547
|
-
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
128548
|
-
object.processed = 0;
|
|
128549
|
-
object.sent = 0;
|
|
131179
|
+
object.tags = [];
|
|
128550
131180
|
}
|
|
131181
|
+
if (options.defaults)
|
|
131182
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
128551
131183
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
128552
131184
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
128553
131185
|
if (message.errors && message.errors.length) {
|
|
@@ -128555,257 +131187,26 @@ $root.SendAnvilCloseEventResponse = (function() {
|
|
|
128555
131187
|
for (var j = 0; j < message.errors.length; ++j)
|
|
128556
131188
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
128557
131189
|
}
|
|
128558
|
-
if (message.
|
|
128559
|
-
object.
|
|
128560
|
-
|
|
128561
|
-
|
|
128562
|
-
return object;
|
|
128563
|
-
};
|
|
128564
|
-
|
|
128565
|
-
/**
|
|
128566
|
-
* Converts this SendAnvilCloseEventResponse to JSON.
|
|
128567
|
-
* @function toJSON
|
|
128568
|
-
* @memberof SendAnvilCloseEventResponse
|
|
128569
|
-
* @instance
|
|
128570
|
-
* @returns {Object.<string,*>} JSON object
|
|
128571
|
-
*/
|
|
128572
|
-
SendAnvilCloseEventResponse.prototype.toJSON = function toJSON() {
|
|
128573
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
128574
|
-
};
|
|
128575
|
-
|
|
128576
|
-
return SendAnvilCloseEventResponse;
|
|
128577
|
-
})();
|
|
128578
|
-
|
|
128579
|
-
$root.PosterImageUrl = (function() {
|
|
128580
|
-
|
|
128581
|
-
/**
|
|
128582
|
-
* Properties of a PosterImageUrl.
|
|
128583
|
-
* @exports IPosterImageUrl
|
|
128584
|
-
* @interface IPosterImageUrl
|
|
128585
|
-
* @property {string|null} [original] PosterImageUrl original
|
|
128586
|
-
* @property {string|null} [medium] PosterImageUrl medium
|
|
128587
|
-
* @property {string|null} [small] PosterImageUrl small
|
|
128588
|
-
*/
|
|
128589
|
-
|
|
128590
|
-
/**
|
|
128591
|
-
* Constructs a new PosterImageUrl.
|
|
128592
|
-
* @exports PosterImageUrl
|
|
128593
|
-
* @classdesc Represents a PosterImageUrl.
|
|
128594
|
-
* @implements IPosterImageUrl
|
|
128595
|
-
* @constructor
|
|
128596
|
-
* @param {IPosterImageUrl=} [properties] Properties to set
|
|
128597
|
-
*/
|
|
128598
|
-
function PosterImageUrl(properties) {
|
|
128599
|
-
if (properties)
|
|
128600
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
128601
|
-
if (properties[keys[i]] != null)
|
|
128602
|
-
this[keys[i]] = properties[keys[i]];
|
|
128603
|
-
}
|
|
128604
|
-
|
|
128605
|
-
/**
|
|
128606
|
-
* PosterImageUrl original.
|
|
128607
|
-
* @member {string} original
|
|
128608
|
-
* @memberof PosterImageUrl
|
|
128609
|
-
* @instance
|
|
128610
|
-
*/
|
|
128611
|
-
PosterImageUrl.prototype.original = "";
|
|
128612
|
-
|
|
128613
|
-
/**
|
|
128614
|
-
* PosterImageUrl medium.
|
|
128615
|
-
* @member {string} medium
|
|
128616
|
-
* @memberof PosterImageUrl
|
|
128617
|
-
* @instance
|
|
128618
|
-
*/
|
|
128619
|
-
PosterImageUrl.prototype.medium = "";
|
|
128620
|
-
|
|
128621
|
-
/**
|
|
128622
|
-
* PosterImageUrl small.
|
|
128623
|
-
* @member {string} small
|
|
128624
|
-
* @memberof PosterImageUrl
|
|
128625
|
-
* @instance
|
|
128626
|
-
*/
|
|
128627
|
-
PosterImageUrl.prototype.small = "";
|
|
128628
|
-
|
|
128629
|
-
/**
|
|
128630
|
-
* Creates a new PosterImageUrl instance using the specified properties.
|
|
128631
|
-
* @function create
|
|
128632
|
-
* @memberof PosterImageUrl
|
|
128633
|
-
* @static
|
|
128634
|
-
* @param {IPosterImageUrl=} [properties] Properties to set
|
|
128635
|
-
* @returns {PosterImageUrl} PosterImageUrl instance
|
|
128636
|
-
*/
|
|
128637
|
-
PosterImageUrl.create = function create(properties) {
|
|
128638
|
-
return new PosterImageUrl(properties);
|
|
128639
|
-
};
|
|
128640
|
-
|
|
128641
|
-
/**
|
|
128642
|
-
* Encodes the specified PosterImageUrl message. Does not implicitly {@link PosterImageUrl.verify|verify} messages.
|
|
128643
|
-
* @function encode
|
|
128644
|
-
* @memberof PosterImageUrl
|
|
128645
|
-
* @static
|
|
128646
|
-
* @param {IPosterImageUrl} message PosterImageUrl message or plain object to encode
|
|
128647
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
128648
|
-
* @returns {$protobuf.Writer} Writer
|
|
128649
|
-
*/
|
|
128650
|
-
PosterImageUrl.encode = function encode(message, writer) {
|
|
128651
|
-
if (!writer)
|
|
128652
|
-
writer = $Writer.create();
|
|
128653
|
-
if (message.original != null && Object.hasOwnProperty.call(message, "original"))
|
|
128654
|
-
writer.uint32(/* id 0, wireType 2 =*/2).string(message.original);
|
|
128655
|
-
if (message.medium != null && Object.hasOwnProperty.call(message, "medium"))
|
|
128656
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.medium);
|
|
128657
|
-
if (message.small != null && Object.hasOwnProperty.call(message, "small"))
|
|
128658
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.small);
|
|
128659
|
-
return writer;
|
|
128660
|
-
};
|
|
128661
|
-
|
|
128662
|
-
/**
|
|
128663
|
-
* Encodes the specified PosterImageUrl message, length delimited. Does not implicitly {@link PosterImageUrl.verify|verify} messages.
|
|
128664
|
-
* @function encodeDelimited
|
|
128665
|
-
* @memberof PosterImageUrl
|
|
128666
|
-
* @static
|
|
128667
|
-
* @param {IPosterImageUrl} message PosterImageUrl message or plain object to encode
|
|
128668
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
128669
|
-
* @returns {$protobuf.Writer} Writer
|
|
128670
|
-
*/
|
|
128671
|
-
PosterImageUrl.encodeDelimited = function encodeDelimited(message, writer) {
|
|
128672
|
-
return this.encode(message, writer).ldelim();
|
|
128673
|
-
};
|
|
128674
|
-
|
|
128675
|
-
/**
|
|
128676
|
-
* Decodes a PosterImageUrl message from the specified reader or buffer.
|
|
128677
|
-
* @function decode
|
|
128678
|
-
* @memberof PosterImageUrl
|
|
128679
|
-
* @static
|
|
128680
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
128681
|
-
* @param {number} [length] Message length if known beforehand
|
|
128682
|
-
* @returns {PosterImageUrl} PosterImageUrl
|
|
128683
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
128684
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
128685
|
-
*/
|
|
128686
|
-
PosterImageUrl.decode = function decode(reader, length) {
|
|
128687
|
-
if (!(reader instanceof $Reader))
|
|
128688
|
-
reader = $Reader.create(reader);
|
|
128689
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PosterImageUrl();
|
|
128690
|
-
while (reader.pos < end) {
|
|
128691
|
-
var tag = reader.uint32();
|
|
128692
|
-
switch (tag >>> 3) {
|
|
128693
|
-
case 0:
|
|
128694
|
-
message.original = reader.string();
|
|
128695
|
-
break;
|
|
128696
|
-
case 1:
|
|
128697
|
-
message.medium = reader.string();
|
|
128698
|
-
break;
|
|
128699
|
-
case 2:
|
|
128700
|
-
message.small = reader.string();
|
|
128701
|
-
break;
|
|
128702
|
-
default:
|
|
128703
|
-
reader.skipType(tag & 7);
|
|
128704
|
-
break;
|
|
128705
|
-
}
|
|
131190
|
+
if (message.tags && message.tags.length) {
|
|
131191
|
+
object.tags = [];
|
|
131192
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
131193
|
+
object.tags[j] = $root.Tag.toObject(message.tags[j], options);
|
|
128706
131194
|
}
|
|
128707
|
-
return message;
|
|
128708
|
-
};
|
|
128709
|
-
|
|
128710
|
-
/**
|
|
128711
|
-
* Decodes a PosterImageUrl message from the specified reader or buffer, length delimited.
|
|
128712
|
-
* @function decodeDelimited
|
|
128713
|
-
* @memberof PosterImageUrl
|
|
128714
|
-
* @static
|
|
128715
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
128716
|
-
* @returns {PosterImageUrl} PosterImageUrl
|
|
128717
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
128718
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
128719
|
-
*/
|
|
128720
|
-
PosterImageUrl.decodeDelimited = function decodeDelimited(reader) {
|
|
128721
|
-
if (!(reader instanceof $Reader))
|
|
128722
|
-
reader = new $Reader(reader);
|
|
128723
|
-
return this.decode(reader, reader.uint32());
|
|
128724
|
-
};
|
|
128725
|
-
|
|
128726
|
-
/**
|
|
128727
|
-
* Verifies a PosterImageUrl message.
|
|
128728
|
-
* @function verify
|
|
128729
|
-
* @memberof PosterImageUrl
|
|
128730
|
-
* @static
|
|
128731
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
128732
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
128733
|
-
*/
|
|
128734
|
-
PosterImageUrl.verify = function verify(message) {
|
|
128735
|
-
if (typeof message !== "object" || message === null)
|
|
128736
|
-
return "object expected";
|
|
128737
|
-
if (message.original != null && message.hasOwnProperty("original"))
|
|
128738
|
-
if (!$util.isString(message.original))
|
|
128739
|
-
return "original: string expected";
|
|
128740
|
-
if (message.medium != null && message.hasOwnProperty("medium"))
|
|
128741
|
-
if (!$util.isString(message.medium))
|
|
128742
|
-
return "medium: string expected";
|
|
128743
|
-
if (message.small != null && message.hasOwnProperty("small"))
|
|
128744
|
-
if (!$util.isString(message.small))
|
|
128745
|
-
return "small: string expected";
|
|
128746
|
-
return null;
|
|
128747
|
-
};
|
|
128748
|
-
|
|
128749
|
-
/**
|
|
128750
|
-
* Creates a PosterImageUrl message from a plain object. Also converts values to their respective internal types.
|
|
128751
|
-
* @function fromObject
|
|
128752
|
-
* @memberof PosterImageUrl
|
|
128753
|
-
* @static
|
|
128754
|
-
* @param {Object.<string,*>} object Plain object
|
|
128755
|
-
* @returns {PosterImageUrl} PosterImageUrl
|
|
128756
|
-
*/
|
|
128757
|
-
PosterImageUrl.fromObject = function fromObject(object) {
|
|
128758
|
-
if (object instanceof $root.PosterImageUrl)
|
|
128759
|
-
return object;
|
|
128760
|
-
var message = new $root.PosterImageUrl();
|
|
128761
|
-
if (object.original != null)
|
|
128762
|
-
message.original = String(object.original);
|
|
128763
|
-
if (object.medium != null)
|
|
128764
|
-
message.medium = String(object.medium);
|
|
128765
|
-
if (object.small != null)
|
|
128766
|
-
message.small = String(object.small);
|
|
128767
|
-
return message;
|
|
128768
|
-
};
|
|
128769
|
-
|
|
128770
|
-
/**
|
|
128771
|
-
* Creates a plain object from a PosterImageUrl message. Also converts values to other types if specified.
|
|
128772
|
-
* @function toObject
|
|
128773
|
-
* @memberof PosterImageUrl
|
|
128774
|
-
* @static
|
|
128775
|
-
* @param {PosterImageUrl} message PosterImageUrl
|
|
128776
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
128777
|
-
* @returns {Object.<string,*>} Plain object
|
|
128778
|
-
*/
|
|
128779
|
-
PosterImageUrl.toObject = function toObject(message, options) {
|
|
128780
|
-
if (!options)
|
|
128781
|
-
options = {};
|
|
128782
|
-
var object = {};
|
|
128783
|
-
if (options.defaults) {
|
|
128784
|
-
object.original = "";
|
|
128785
|
-
object.medium = "";
|
|
128786
|
-
object.small = "";
|
|
128787
|
-
}
|
|
128788
|
-
if (message.original != null && message.hasOwnProperty("original"))
|
|
128789
|
-
object.original = message.original;
|
|
128790
|
-
if (message.medium != null && message.hasOwnProperty("medium"))
|
|
128791
|
-
object.medium = message.medium;
|
|
128792
|
-
if (message.small != null && message.hasOwnProperty("small"))
|
|
128793
|
-
object.small = message.small;
|
|
128794
131195
|
return object;
|
|
128795
131196
|
};
|
|
128796
131197
|
|
|
128797
131198
|
/**
|
|
128798
|
-
* Converts this
|
|
131199
|
+
* Converts this ListTagsResponse to JSON.
|
|
128799
131200
|
* @function toJSON
|
|
128800
|
-
* @memberof
|
|
131201
|
+
* @memberof ListTagsResponse
|
|
128801
131202
|
* @instance
|
|
128802
131203
|
* @returns {Object.<string,*>} JSON object
|
|
128803
131204
|
*/
|
|
128804
|
-
|
|
131205
|
+
ListTagsResponse.prototype.toJSON = function toJSON() {
|
|
128805
131206
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
128806
131207
|
};
|
|
128807
131208
|
|
|
128808
|
-
return
|
|
131209
|
+
return ListTagsResponse;
|
|
128809
131210
|
})();
|
|
128810
131211
|
|
|
128811
131212
|
$root.CheckStubUniquenessRequest = (function() {
|
|
@@ -134953,6 +137354,138 @@ $root.EventService = (function() {
|
|
|
134953
137354
|
* @variation 2
|
|
134954
137355
|
*/
|
|
134955
137356
|
|
|
137357
|
+
/**
|
|
137358
|
+
* Callback as used by {@link EventService#createTag}.
|
|
137359
|
+
* @memberof EventService
|
|
137360
|
+
* @typedef createTagCallback
|
|
137361
|
+
* @type {function}
|
|
137362
|
+
* @param {Error|null} error Error, if any
|
|
137363
|
+
* @param {CreateTagResponse} [response] CreateTagResponse
|
|
137364
|
+
*/
|
|
137365
|
+
|
|
137366
|
+
/**
|
|
137367
|
+
* Calls createTag.
|
|
137368
|
+
* @function createTag
|
|
137369
|
+
* @memberof EventService
|
|
137370
|
+
* @instance
|
|
137371
|
+
* @param {ICreateTagRequest} request CreateTagRequest message or plain object
|
|
137372
|
+
* @param {EventService.createTagCallback} callback Node-style callback called with the error, if any, and CreateTagResponse
|
|
137373
|
+
* @returns {undefined}
|
|
137374
|
+
* @variation 1
|
|
137375
|
+
*/
|
|
137376
|
+
Object.defineProperty(EventService.prototype.createTag = function createTag(request, callback) {
|
|
137377
|
+
return this.rpcCall(createTag, $root.CreateTagRequest, $root.CreateTagResponse, request, callback);
|
|
137378
|
+
}, "name", { value: "createTag" });
|
|
137379
|
+
|
|
137380
|
+
/**
|
|
137381
|
+
* Calls createTag.
|
|
137382
|
+
* @function createTag
|
|
137383
|
+
* @memberof EventService
|
|
137384
|
+
* @instance
|
|
137385
|
+
* @param {ICreateTagRequest} request CreateTagRequest message or plain object
|
|
137386
|
+
* @returns {Promise<CreateTagResponse>} Promise
|
|
137387
|
+
* @variation 2
|
|
137388
|
+
*/
|
|
137389
|
+
|
|
137390
|
+
/**
|
|
137391
|
+
* Callback as used by {@link EventService#updateTag}.
|
|
137392
|
+
* @memberof EventService
|
|
137393
|
+
* @typedef updateTagCallback
|
|
137394
|
+
* @type {function}
|
|
137395
|
+
* @param {Error|null} error Error, if any
|
|
137396
|
+
* @param {UpdateTagResponse} [response] UpdateTagResponse
|
|
137397
|
+
*/
|
|
137398
|
+
|
|
137399
|
+
/**
|
|
137400
|
+
* Calls updateTag.
|
|
137401
|
+
* @function updateTag
|
|
137402
|
+
* @memberof EventService
|
|
137403
|
+
* @instance
|
|
137404
|
+
* @param {IUpdateTagRequest} request UpdateTagRequest message or plain object
|
|
137405
|
+
* @param {EventService.updateTagCallback} callback Node-style callback called with the error, if any, and UpdateTagResponse
|
|
137406
|
+
* @returns {undefined}
|
|
137407
|
+
* @variation 1
|
|
137408
|
+
*/
|
|
137409
|
+
Object.defineProperty(EventService.prototype.updateTag = function updateTag(request, callback) {
|
|
137410
|
+
return this.rpcCall(updateTag, $root.UpdateTagRequest, $root.UpdateTagResponse, request, callback);
|
|
137411
|
+
}, "name", { value: "updateTag" });
|
|
137412
|
+
|
|
137413
|
+
/**
|
|
137414
|
+
* Calls updateTag.
|
|
137415
|
+
* @function updateTag
|
|
137416
|
+
* @memberof EventService
|
|
137417
|
+
* @instance
|
|
137418
|
+
* @param {IUpdateTagRequest} request UpdateTagRequest message or plain object
|
|
137419
|
+
* @returns {Promise<UpdateTagResponse>} Promise
|
|
137420
|
+
* @variation 2
|
|
137421
|
+
*/
|
|
137422
|
+
|
|
137423
|
+
/**
|
|
137424
|
+
* Callback as used by {@link EventService#deleteTag}.
|
|
137425
|
+
* @memberof EventService
|
|
137426
|
+
* @typedef deleteTagCallback
|
|
137427
|
+
* @type {function}
|
|
137428
|
+
* @param {Error|null} error Error, if any
|
|
137429
|
+
* @param {DeleteTagResponse} [response] DeleteTagResponse
|
|
137430
|
+
*/
|
|
137431
|
+
|
|
137432
|
+
/**
|
|
137433
|
+
* Calls deleteTag.
|
|
137434
|
+
* @function deleteTag
|
|
137435
|
+
* @memberof EventService
|
|
137436
|
+
* @instance
|
|
137437
|
+
* @param {IDeleteTagRequest} request DeleteTagRequest message or plain object
|
|
137438
|
+
* @param {EventService.deleteTagCallback} callback Node-style callback called with the error, if any, and DeleteTagResponse
|
|
137439
|
+
* @returns {undefined}
|
|
137440
|
+
* @variation 1
|
|
137441
|
+
*/
|
|
137442
|
+
Object.defineProperty(EventService.prototype.deleteTag = function deleteTag(request, callback) {
|
|
137443
|
+
return this.rpcCall(deleteTag, $root.DeleteTagRequest, $root.DeleteTagResponse, request, callback);
|
|
137444
|
+
}, "name", { value: "deleteTag" });
|
|
137445
|
+
|
|
137446
|
+
/**
|
|
137447
|
+
* Calls deleteTag.
|
|
137448
|
+
* @function deleteTag
|
|
137449
|
+
* @memberof EventService
|
|
137450
|
+
* @instance
|
|
137451
|
+
* @param {IDeleteTagRequest} request DeleteTagRequest message or plain object
|
|
137452
|
+
* @returns {Promise<DeleteTagResponse>} Promise
|
|
137453
|
+
* @variation 2
|
|
137454
|
+
*/
|
|
137455
|
+
|
|
137456
|
+
/**
|
|
137457
|
+
* Callback as used by {@link EventService#listTags}.
|
|
137458
|
+
* @memberof EventService
|
|
137459
|
+
* @typedef listTagsCallback
|
|
137460
|
+
* @type {function}
|
|
137461
|
+
* @param {Error|null} error Error, if any
|
|
137462
|
+
* @param {ListTagsResponse} [response] ListTagsResponse
|
|
137463
|
+
*/
|
|
137464
|
+
|
|
137465
|
+
/**
|
|
137466
|
+
* Calls listTags.
|
|
137467
|
+
* @function listTags
|
|
137468
|
+
* @memberof EventService
|
|
137469
|
+
* @instance
|
|
137470
|
+
* @param {IListTagsRequest} request ListTagsRequest message or plain object
|
|
137471
|
+
* @param {EventService.listTagsCallback} callback Node-style callback called with the error, if any, and ListTagsResponse
|
|
137472
|
+
* @returns {undefined}
|
|
137473
|
+
* @variation 1
|
|
137474
|
+
*/
|
|
137475
|
+
Object.defineProperty(EventService.prototype.listTags = function listTags(request, callback) {
|
|
137476
|
+
return this.rpcCall(listTags, $root.ListTagsRequest, $root.ListTagsResponse, request, callback);
|
|
137477
|
+
}, "name", { value: "listTags" });
|
|
137478
|
+
|
|
137479
|
+
/**
|
|
137480
|
+
* Calls listTags.
|
|
137481
|
+
* @function listTags
|
|
137482
|
+
* @memberof EventService
|
|
137483
|
+
* @instance
|
|
137484
|
+
* @param {IListTagsRequest} request ListTagsRequest message or plain object
|
|
137485
|
+
* @returns {Promise<ListTagsResponse>} Promise
|
|
137486
|
+
* @variation 2
|
|
137487
|
+
*/
|
|
137488
|
+
|
|
134956
137489
|
return EventService;
|
|
134957
137490
|
})();
|
|
134958
137491
|
|