@google-apps/chat 0.23.0 → 0.23.1
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/README.md +7 -0
- package/build/protos/google/chat/v1/chat_service.proto +152 -12
- package/build/protos/google/chat/v1/section.proto +344 -0
- package/build/protos/protos.d.ts +1532 -0
- package/build/protos/protos.js +3477 -0
- package/build/protos/protos.json +425 -2
- package/build/src/index.js +1 -1
- package/build/src/v1/chat_service_client.d.ts +592 -11
- package/build/src/v1/chat_service_client.js +578 -2
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +35 -0
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/build/src/v1/gapic_metadata.json +78 -0
- package/package.json +10 -2
- package/LICENSE +0 -202
package/build/protos/protos.js
CHANGED
|
@@ -39043,6 +39043,237 @@
|
|
|
39043
39043
|
* @variation 2
|
|
39044
39044
|
*/
|
|
39045
39045
|
|
|
39046
|
+
/**
|
|
39047
|
+
* Callback as used by {@link google.chat.v1.ChatService|createSection}.
|
|
39048
|
+
* @memberof google.chat.v1.ChatService
|
|
39049
|
+
* @typedef CreateSectionCallback
|
|
39050
|
+
* @type {function}
|
|
39051
|
+
* @param {Error|null} error Error, if any
|
|
39052
|
+
* @param {google.chat.v1.Section} [response] Section
|
|
39053
|
+
*/
|
|
39054
|
+
|
|
39055
|
+
/**
|
|
39056
|
+
* Calls CreateSection.
|
|
39057
|
+
* @function createSection
|
|
39058
|
+
* @memberof google.chat.v1.ChatService
|
|
39059
|
+
* @instance
|
|
39060
|
+
* @param {google.chat.v1.ICreateSectionRequest} request CreateSectionRequest message or plain object
|
|
39061
|
+
* @param {google.chat.v1.ChatService.CreateSectionCallback} callback Node-style callback called with the error, if any, and Section
|
|
39062
|
+
* @returns {undefined}
|
|
39063
|
+
* @variation 1
|
|
39064
|
+
*/
|
|
39065
|
+
Object.defineProperty(ChatService.prototype.createSection = function createSection(request, callback) {
|
|
39066
|
+
return this.rpcCall(createSection, $root.google.chat.v1.CreateSectionRequest, $root.google.chat.v1.Section, request, callback);
|
|
39067
|
+
}, "name", { value: "CreateSection" });
|
|
39068
|
+
|
|
39069
|
+
/**
|
|
39070
|
+
* Calls CreateSection.
|
|
39071
|
+
* @function createSection
|
|
39072
|
+
* @memberof google.chat.v1.ChatService
|
|
39073
|
+
* @instance
|
|
39074
|
+
* @param {google.chat.v1.ICreateSectionRequest} request CreateSectionRequest message or plain object
|
|
39075
|
+
* @returns {Promise<google.chat.v1.Section>} Promise
|
|
39076
|
+
* @variation 2
|
|
39077
|
+
*/
|
|
39078
|
+
|
|
39079
|
+
/**
|
|
39080
|
+
* Callback as used by {@link google.chat.v1.ChatService|deleteSection}.
|
|
39081
|
+
* @memberof google.chat.v1.ChatService
|
|
39082
|
+
* @typedef DeleteSectionCallback
|
|
39083
|
+
* @type {function}
|
|
39084
|
+
* @param {Error|null} error Error, if any
|
|
39085
|
+
* @param {google.protobuf.Empty} [response] Empty
|
|
39086
|
+
*/
|
|
39087
|
+
|
|
39088
|
+
/**
|
|
39089
|
+
* Calls DeleteSection.
|
|
39090
|
+
* @function deleteSection
|
|
39091
|
+
* @memberof google.chat.v1.ChatService
|
|
39092
|
+
* @instance
|
|
39093
|
+
* @param {google.chat.v1.IDeleteSectionRequest} request DeleteSectionRequest message or plain object
|
|
39094
|
+
* @param {google.chat.v1.ChatService.DeleteSectionCallback} callback Node-style callback called with the error, if any, and Empty
|
|
39095
|
+
* @returns {undefined}
|
|
39096
|
+
* @variation 1
|
|
39097
|
+
*/
|
|
39098
|
+
Object.defineProperty(ChatService.prototype.deleteSection = function deleteSection(request, callback) {
|
|
39099
|
+
return this.rpcCall(deleteSection, $root.google.chat.v1.DeleteSectionRequest, $root.google.protobuf.Empty, request, callback);
|
|
39100
|
+
}, "name", { value: "DeleteSection" });
|
|
39101
|
+
|
|
39102
|
+
/**
|
|
39103
|
+
* Calls DeleteSection.
|
|
39104
|
+
* @function deleteSection
|
|
39105
|
+
* @memberof google.chat.v1.ChatService
|
|
39106
|
+
* @instance
|
|
39107
|
+
* @param {google.chat.v1.IDeleteSectionRequest} request DeleteSectionRequest message or plain object
|
|
39108
|
+
* @returns {Promise<google.protobuf.Empty>} Promise
|
|
39109
|
+
* @variation 2
|
|
39110
|
+
*/
|
|
39111
|
+
|
|
39112
|
+
/**
|
|
39113
|
+
* Callback as used by {@link google.chat.v1.ChatService|updateSection}.
|
|
39114
|
+
* @memberof google.chat.v1.ChatService
|
|
39115
|
+
* @typedef UpdateSectionCallback
|
|
39116
|
+
* @type {function}
|
|
39117
|
+
* @param {Error|null} error Error, if any
|
|
39118
|
+
* @param {google.chat.v1.Section} [response] Section
|
|
39119
|
+
*/
|
|
39120
|
+
|
|
39121
|
+
/**
|
|
39122
|
+
* Calls UpdateSection.
|
|
39123
|
+
* @function updateSection
|
|
39124
|
+
* @memberof google.chat.v1.ChatService
|
|
39125
|
+
* @instance
|
|
39126
|
+
* @param {google.chat.v1.IUpdateSectionRequest} request UpdateSectionRequest message or plain object
|
|
39127
|
+
* @param {google.chat.v1.ChatService.UpdateSectionCallback} callback Node-style callback called with the error, if any, and Section
|
|
39128
|
+
* @returns {undefined}
|
|
39129
|
+
* @variation 1
|
|
39130
|
+
*/
|
|
39131
|
+
Object.defineProperty(ChatService.prototype.updateSection = function updateSection(request, callback) {
|
|
39132
|
+
return this.rpcCall(updateSection, $root.google.chat.v1.UpdateSectionRequest, $root.google.chat.v1.Section, request, callback);
|
|
39133
|
+
}, "name", { value: "UpdateSection" });
|
|
39134
|
+
|
|
39135
|
+
/**
|
|
39136
|
+
* Calls UpdateSection.
|
|
39137
|
+
* @function updateSection
|
|
39138
|
+
* @memberof google.chat.v1.ChatService
|
|
39139
|
+
* @instance
|
|
39140
|
+
* @param {google.chat.v1.IUpdateSectionRequest} request UpdateSectionRequest message or plain object
|
|
39141
|
+
* @returns {Promise<google.chat.v1.Section>} Promise
|
|
39142
|
+
* @variation 2
|
|
39143
|
+
*/
|
|
39144
|
+
|
|
39145
|
+
/**
|
|
39146
|
+
* Callback as used by {@link google.chat.v1.ChatService|listSections}.
|
|
39147
|
+
* @memberof google.chat.v1.ChatService
|
|
39148
|
+
* @typedef ListSectionsCallback
|
|
39149
|
+
* @type {function}
|
|
39150
|
+
* @param {Error|null} error Error, if any
|
|
39151
|
+
* @param {google.chat.v1.ListSectionsResponse} [response] ListSectionsResponse
|
|
39152
|
+
*/
|
|
39153
|
+
|
|
39154
|
+
/**
|
|
39155
|
+
* Calls ListSections.
|
|
39156
|
+
* @function listSections
|
|
39157
|
+
* @memberof google.chat.v1.ChatService
|
|
39158
|
+
* @instance
|
|
39159
|
+
* @param {google.chat.v1.IListSectionsRequest} request ListSectionsRequest message or plain object
|
|
39160
|
+
* @param {google.chat.v1.ChatService.ListSectionsCallback} callback Node-style callback called with the error, if any, and ListSectionsResponse
|
|
39161
|
+
* @returns {undefined}
|
|
39162
|
+
* @variation 1
|
|
39163
|
+
*/
|
|
39164
|
+
Object.defineProperty(ChatService.prototype.listSections = function listSections(request, callback) {
|
|
39165
|
+
return this.rpcCall(listSections, $root.google.chat.v1.ListSectionsRequest, $root.google.chat.v1.ListSectionsResponse, request, callback);
|
|
39166
|
+
}, "name", { value: "ListSections" });
|
|
39167
|
+
|
|
39168
|
+
/**
|
|
39169
|
+
* Calls ListSections.
|
|
39170
|
+
* @function listSections
|
|
39171
|
+
* @memberof google.chat.v1.ChatService
|
|
39172
|
+
* @instance
|
|
39173
|
+
* @param {google.chat.v1.IListSectionsRequest} request ListSectionsRequest message or plain object
|
|
39174
|
+
* @returns {Promise<google.chat.v1.ListSectionsResponse>} Promise
|
|
39175
|
+
* @variation 2
|
|
39176
|
+
*/
|
|
39177
|
+
|
|
39178
|
+
/**
|
|
39179
|
+
* Callback as used by {@link google.chat.v1.ChatService|positionSection}.
|
|
39180
|
+
* @memberof google.chat.v1.ChatService
|
|
39181
|
+
* @typedef PositionSectionCallback
|
|
39182
|
+
* @type {function}
|
|
39183
|
+
* @param {Error|null} error Error, if any
|
|
39184
|
+
* @param {google.chat.v1.PositionSectionResponse} [response] PositionSectionResponse
|
|
39185
|
+
*/
|
|
39186
|
+
|
|
39187
|
+
/**
|
|
39188
|
+
* Calls PositionSection.
|
|
39189
|
+
* @function positionSection
|
|
39190
|
+
* @memberof google.chat.v1.ChatService
|
|
39191
|
+
* @instance
|
|
39192
|
+
* @param {google.chat.v1.IPositionSectionRequest} request PositionSectionRequest message or plain object
|
|
39193
|
+
* @param {google.chat.v1.ChatService.PositionSectionCallback} callback Node-style callback called with the error, if any, and PositionSectionResponse
|
|
39194
|
+
* @returns {undefined}
|
|
39195
|
+
* @variation 1
|
|
39196
|
+
*/
|
|
39197
|
+
Object.defineProperty(ChatService.prototype.positionSection = function positionSection(request, callback) {
|
|
39198
|
+
return this.rpcCall(positionSection, $root.google.chat.v1.PositionSectionRequest, $root.google.chat.v1.PositionSectionResponse, request, callback);
|
|
39199
|
+
}, "name", { value: "PositionSection" });
|
|
39200
|
+
|
|
39201
|
+
/**
|
|
39202
|
+
* Calls PositionSection.
|
|
39203
|
+
* @function positionSection
|
|
39204
|
+
* @memberof google.chat.v1.ChatService
|
|
39205
|
+
* @instance
|
|
39206
|
+
* @param {google.chat.v1.IPositionSectionRequest} request PositionSectionRequest message or plain object
|
|
39207
|
+
* @returns {Promise<google.chat.v1.PositionSectionResponse>} Promise
|
|
39208
|
+
* @variation 2
|
|
39209
|
+
*/
|
|
39210
|
+
|
|
39211
|
+
/**
|
|
39212
|
+
* Callback as used by {@link google.chat.v1.ChatService|listSectionItems}.
|
|
39213
|
+
* @memberof google.chat.v1.ChatService
|
|
39214
|
+
* @typedef ListSectionItemsCallback
|
|
39215
|
+
* @type {function}
|
|
39216
|
+
* @param {Error|null} error Error, if any
|
|
39217
|
+
* @param {google.chat.v1.ListSectionItemsResponse} [response] ListSectionItemsResponse
|
|
39218
|
+
*/
|
|
39219
|
+
|
|
39220
|
+
/**
|
|
39221
|
+
* Calls ListSectionItems.
|
|
39222
|
+
* @function listSectionItems
|
|
39223
|
+
* @memberof google.chat.v1.ChatService
|
|
39224
|
+
* @instance
|
|
39225
|
+
* @param {google.chat.v1.IListSectionItemsRequest} request ListSectionItemsRequest message or plain object
|
|
39226
|
+
* @param {google.chat.v1.ChatService.ListSectionItemsCallback} callback Node-style callback called with the error, if any, and ListSectionItemsResponse
|
|
39227
|
+
* @returns {undefined}
|
|
39228
|
+
* @variation 1
|
|
39229
|
+
*/
|
|
39230
|
+
Object.defineProperty(ChatService.prototype.listSectionItems = function listSectionItems(request, callback) {
|
|
39231
|
+
return this.rpcCall(listSectionItems, $root.google.chat.v1.ListSectionItemsRequest, $root.google.chat.v1.ListSectionItemsResponse, request, callback);
|
|
39232
|
+
}, "name", { value: "ListSectionItems" });
|
|
39233
|
+
|
|
39234
|
+
/**
|
|
39235
|
+
* Calls ListSectionItems.
|
|
39236
|
+
* @function listSectionItems
|
|
39237
|
+
* @memberof google.chat.v1.ChatService
|
|
39238
|
+
* @instance
|
|
39239
|
+
* @param {google.chat.v1.IListSectionItemsRequest} request ListSectionItemsRequest message or plain object
|
|
39240
|
+
* @returns {Promise<google.chat.v1.ListSectionItemsResponse>} Promise
|
|
39241
|
+
* @variation 2
|
|
39242
|
+
*/
|
|
39243
|
+
|
|
39244
|
+
/**
|
|
39245
|
+
* Callback as used by {@link google.chat.v1.ChatService|moveSectionItem}.
|
|
39246
|
+
* @memberof google.chat.v1.ChatService
|
|
39247
|
+
* @typedef MoveSectionItemCallback
|
|
39248
|
+
* @type {function}
|
|
39249
|
+
* @param {Error|null} error Error, if any
|
|
39250
|
+
* @param {google.chat.v1.MoveSectionItemResponse} [response] MoveSectionItemResponse
|
|
39251
|
+
*/
|
|
39252
|
+
|
|
39253
|
+
/**
|
|
39254
|
+
* Calls MoveSectionItem.
|
|
39255
|
+
* @function moveSectionItem
|
|
39256
|
+
* @memberof google.chat.v1.ChatService
|
|
39257
|
+
* @instance
|
|
39258
|
+
* @param {google.chat.v1.IMoveSectionItemRequest} request MoveSectionItemRequest message or plain object
|
|
39259
|
+
* @param {google.chat.v1.ChatService.MoveSectionItemCallback} callback Node-style callback called with the error, if any, and MoveSectionItemResponse
|
|
39260
|
+
* @returns {undefined}
|
|
39261
|
+
* @variation 1
|
|
39262
|
+
*/
|
|
39263
|
+
Object.defineProperty(ChatService.prototype.moveSectionItem = function moveSectionItem(request, callback) {
|
|
39264
|
+
return this.rpcCall(moveSectionItem, $root.google.chat.v1.MoveSectionItemRequest, $root.google.chat.v1.MoveSectionItemResponse, request, callback);
|
|
39265
|
+
}, "name", { value: "MoveSectionItem" });
|
|
39266
|
+
|
|
39267
|
+
/**
|
|
39268
|
+
* Calls MoveSectionItem.
|
|
39269
|
+
* @function moveSectionItem
|
|
39270
|
+
* @memberof google.chat.v1.ChatService
|
|
39271
|
+
* @instance
|
|
39272
|
+
* @param {google.chat.v1.IMoveSectionItemRequest} request MoveSectionItemRequest message or plain object
|
|
39273
|
+
* @returns {Promise<google.chat.v1.MoveSectionItemResponse>} Promise
|
|
39274
|
+
* @variation 2
|
|
39275
|
+
*/
|
|
39276
|
+
|
|
39046
39277
|
return ChatService;
|
|
39047
39278
|
})();
|
|
39048
39279
|
|
|
@@ -57512,6 +57743,3252 @@
|
|
|
57512
57743
|
return values;
|
|
57513
57744
|
})();
|
|
57514
57745
|
|
|
57746
|
+
v1.Section = (function() {
|
|
57747
|
+
|
|
57748
|
+
/**
|
|
57749
|
+
* Properties of a Section.
|
|
57750
|
+
* @memberof google.chat.v1
|
|
57751
|
+
* @interface ISection
|
|
57752
|
+
* @property {string|null} [name] Section name
|
|
57753
|
+
* @property {string|null} [displayName] Section displayName
|
|
57754
|
+
* @property {number|null} [sortOrder] Section sortOrder
|
|
57755
|
+
* @property {google.chat.v1.Section.SectionType|null} [type] Section type
|
|
57756
|
+
*/
|
|
57757
|
+
|
|
57758
|
+
/**
|
|
57759
|
+
* Constructs a new Section.
|
|
57760
|
+
* @memberof google.chat.v1
|
|
57761
|
+
* @classdesc Represents a Section.
|
|
57762
|
+
* @implements ISection
|
|
57763
|
+
* @constructor
|
|
57764
|
+
* @param {google.chat.v1.ISection=} [properties] Properties to set
|
|
57765
|
+
*/
|
|
57766
|
+
function Section(properties) {
|
|
57767
|
+
if (properties)
|
|
57768
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57769
|
+
if (properties[keys[i]] != null)
|
|
57770
|
+
this[keys[i]] = properties[keys[i]];
|
|
57771
|
+
}
|
|
57772
|
+
|
|
57773
|
+
/**
|
|
57774
|
+
* Section name.
|
|
57775
|
+
* @member {string} name
|
|
57776
|
+
* @memberof google.chat.v1.Section
|
|
57777
|
+
* @instance
|
|
57778
|
+
*/
|
|
57779
|
+
Section.prototype.name = "";
|
|
57780
|
+
|
|
57781
|
+
/**
|
|
57782
|
+
* Section displayName.
|
|
57783
|
+
* @member {string} displayName
|
|
57784
|
+
* @memberof google.chat.v1.Section
|
|
57785
|
+
* @instance
|
|
57786
|
+
*/
|
|
57787
|
+
Section.prototype.displayName = "";
|
|
57788
|
+
|
|
57789
|
+
/**
|
|
57790
|
+
* Section sortOrder.
|
|
57791
|
+
* @member {number} sortOrder
|
|
57792
|
+
* @memberof google.chat.v1.Section
|
|
57793
|
+
* @instance
|
|
57794
|
+
*/
|
|
57795
|
+
Section.prototype.sortOrder = 0;
|
|
57796
|
+
|
|
57797
|
+
/**
|
|
57798
|
+
* Section type.
|
|
57799
|
+
* @member {google.chat.v1.Section.SectionType} type
|
|
57800
|
+
* @memberof google.chat.v1.Section
|
|
57801
|
+
* @instance
|
|
57802
|
+
*/
|
|
57803
|
+
Section.prototype.type = 0;
|
|
57804
|
+
|
|
57805
|
+
/**
|
|
57806
|
+
* Creates a new Section instance using the specified properties.
|
|
57807
|
+
* @function create
|
|
57808
|
+
* @memberof google.chat.v1.Section
|
|
57809
|
+
* @static
|
|
57810
|
+
* @param {google.chat.v1.ISection=} [properties] Properties to set
|
|
57811
|
+
* @returns {google.chat.v1.Section} Section instance
|
|
57812
|
+
*/
|
|
57813
|
+
Section.create = function create(properties) {
|
|
57814
|
+
return new Section(properties);
|
|
57815
|
+
};
|
|
57816
|
+
|
|
57817
|
+
/**
|
|
57818
|
+
* Encodes the specified Section message. Does not implicitly {@link google.chat.v1.Section.verify|verify} messages.
|
|
57819
|
+
* @function encode
|
|
57820
|
+
* @memberof google.chat.v1.Section
|
|
57821
|
+
* @static
|
|
57822
|
+
* @param {google.chat.v1.ISection} message Section message or plain object to encode
|
|
57823
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57824
|
+
* @returns {$protobuf.Writer} Writer
|
|
57825
|
+
*/
|
|
57826
|
+
Section.encode = function encode(message, writer) {
|
|
57827
|
+
if (!writer)
|
|
57828
|
+
writer = $Writer.create();
|
|
57829
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
57830
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
57831
|
+
if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
|
|
57832
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
|
|
57833
|
+
if (message.sortOrder != null && Object.hasOwnProperty.call(message, "sortOrder"))
|
|
57834
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sortOrder);
|
|
57835
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
57836
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type);
|
|
57837
|
+
return writer;
|
|
57838
|
+
};
|
|
57839
|
+
|
|
57840
|
+
/**
|
|
57841
|
+
* Encodes the specified Section message, length delimited. Does not implicitly {@link google.chat.v1.Section.verify|verify} messages.
|
|
57842
|
+
* @function encodeDelimited
|
|
57843
|
+
* @memberof google.chat.v1.Section
|
|
57844
|
+
* @static
|
|
57845
|
+
* @param {google.chat.v1.ISection} message Section message or plain object to encode
|
|
57846
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57847
|
+
* @returns {$protobuf.Writer} Writer
|
|
57848
|
+
*/
|
|
57849
|
+
Section.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57850
|
+
return this.encode(message, writer).ldelim();
|
|
57851
|
+
};
|
|
57852
|
+
|
|
57853
|
+
/**
|
|
57854
|
+
* Decodes a Section message from the specified reader or buffer.
|
|
57855
|
+
* @function decode
|
|
57856
|
+
* @memberof google.chat.v1.Section
|
|
57857
|
+
* @static
|
|
57858
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57859
|
+
* @param {number} [length] Message length if known beforehand
|
|
57860
|
+
* @returns {google.chat.v1.Section} Section
|
|
57861
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57862
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57863
|
+
*/
|
|
57864
|
+
Section.decode = function decode(reader, length, error) {
|
|
57865
|
+
if (!(reader instanceof $Reader))
|
|
57866
|
+
reader = $Reader.create(reader);
|
|
57867
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.Section();
|
|
57868
|
+
while (reader.pos < end) {
|
|
57869
|
+
var tag = reader.uint32();
|
|
57870
|
+
if (tag === error)
|
|
57871
|
+
break;
|
|
57872
|
+
switch (tag >>> 3) {
|
|
57873
|
+
case 1: {
|
|
57874
|
+
message.name = reader.string();
|
|
57875
|
+
break;
|
|
57876
|
+
}
|
|
57877
|
+
case 2: {
|
|
57878
|
+
message.displayName = reader.string();
|
|
57879
|
+
break;
|
|
57880
|
+
}
|
|
57881
|
+
case 3: {
|
|
57882
|
+
message.sortOrder = reader.int32();
|
|
57883
|
+
break;
|
|
57884
|
+
}
|
|
57885
|
+
case 4: {
|
|
57886
|
+
message.type = reader.int32();
|
|
57887
|
+
break;
|
|
57888
|
+
}
|
|
57889
|
+
default:
|
|
57890
|
+
reader.skipType(tag & 7);
|
|
57891
|
+
break;
|
|
57892
|
+
}
|
|
57893
|
+
}
|
|
57894
|
+
return message;
|
|
57895
|
+
};
|
|
57896
|
+
|
|
57897
|
+
/**
|
|
57898
|
+
* Decodes a Section message from the specified reader or buffer, length delimited.
|
|
57899
|
+
* @function decodeDelimited
|
|
57900
|
+
* @memberof google.chat.v1.Section
|
|
57901
|
+
* @static
|
|
57902
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57903
|
+
* @returns {google.chat.v1.Section} Section
|
|
57904
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57905
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57906
|
+
*/
|
|
57907
|
+
Section.decodeDelimited = function decodeDelimited(reader) {
|
|
57908
|
+
if (!(reader instanceof $Reader))
|
|
57909
|
+
reader = new $Reader(reader);
|
|
57910
|
+
return this.decode(reader, reader.uint32());
|
|
57911
|
+
};
|
|
57912
|
+
|
|
57913
|
+
/**
|
|
57914
|
+
* Verifies a Section message.
|
|
57915
|
+
* @function verify
|
|
57916
|
+
* @memberof google.chat.v1.Section
|
|
57917
|
+
* @static
|
|
57918
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
57919
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57920
|
+
*/
|
|
57921
|
+
Section.verify = function verify(message) {
|
|
57922
|
+
if (typeof message !== "object" || message === null)
|
|
57923
|
+
return "object expected";
|
|
57924
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
57925
|
+
if (!$util.isString(message.name))
|
|
57926
|
+
return "name: string expected";
|
|
57927
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
57928
|
+
if (!$util.isString(message.displayName))
|
|
57929
|
+
return "displayName: string expected";
|
|
57930
|
+
if (message.sortOrder != null && message.hasOwnProperty("sortOrder"))
|
|
57931
|
+
if (!$util.isInteger(message.sortOrder))
|
|
57932
|
+
return "sortOrder: integer expected";
|
|
57933
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
57934
|
+
switch (message.type) {
|
|
57935
|
+
default:
|
|
57936
|
+
return "type: enum value expected";
|
|
57937
|
+
case 0:
|
|
57938
|
+
case 1:
|
|
57939
|
+
case 2:
|
|
57940
|
+
case 3:
|
|
57941
|
+
case 6:
|
|
57942
|
+
break;
|
|
57943
|
+
}
|
|
57944
|
+
return null;
|
|
57945
|
+
};
|
|
57946
|
+
|
|
57947
|
+
/**
|
|
57948
|
+
* Creates a Section message from a plain object. Also converts values to their respective internal types.
|
|
57949
|
+
* @function fromObject
|
|
57950
|
+
* @memberof google.chat.v1.Section
|
|
57951
|
+
* @static
|
|
57952
|
+
* @param {Object.<string,*>} object Plain object
|
|
57953
|
+
* @returns {google.chat.v1.Section} Section
|
|
57954
|
+
*/
|
|
57955
|
+
Section.fromObject = function fromObject(object) {
|
|
57956
|
+
if (object instanceof $root.google.chat.v1.Section)
|
|
57957
|
+
return object;
|
|
57958
|
+
var message = new $root.google.chat.v1.Section();
|
|
57959
|
+
if (object.name != null)
|
|
57960
|
+
message.name = String(object.name);
|
|
57961
|
+
if (object.displayName != null)
|
|
57962
|
+
message.displayName = String(object.displayName);
|
|
57963
|
+
if (object.sortOrder != null)
|
|
57964
|
+
message.sortOrder = object.sortOrder | 0;
|
|
57965
|
+
switch (object.type) {
|
|
57966
|
+
default:
|
|
57967
|
+
if (typeof object.type === "number") {
|
|
57968
|
+
message.type = object.type;
|
|
57969
|
+
break;
|
|
57970
|
+
}
|
|
57971
|
+
break;
|
|
57972
|
+
case "SECTION_TYPE_UNSPECIFIED":
|
|
57973
|
+
case 0:
|
|
57974
|
+
message.type = 0;
|
|
57975
|
+
break;
|
|
57976
|
+
case "CUSTOM_SECTION":
|
|
57977
|
+
case 1:
|
|
57978
|
+
message.type = 1;
|
|
57979
|
+
break;
|
|
57980
|
+
case "DEFAULT_DIRECT_MESSAGES":
|
|
57981
|
+
case 2:
|
|
57982
|
+
message.type = 2;
|
|
57983
|
+
break;
|
|
57984
|
+
case "DEFAULT_SPACES":
|
|
57985
|
+
case 3:
|
|
57986
|
+
message.type = 3;
|
|
57987
|
+
break;
|
|
57988
|
+
case "DEFAULT_APPS":
|
|
57989
|
+
case 6:
|
|
57990
|
+
message.type = 6;
|
|
57991
|
+
break;
|
|
57992
|
+
}
|
|
57993
|
+
return message;
|
|
57994
|
+
};
|
|
57995
|
+
|
|
57996
|
+
/**
|
|
57997
|
+
* Creates a plain object from a Section message. Also converts values to other types if specified.
|
|
57998
|
+
* @function toObject
|
|
57999
|
+
* @memberof google.chat.v1.Section
|
|
58000
|
+
* @static
|
|
58001
|
+
* @param {google.chat.v1.Section} message Section
|
|
58002
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58003
|
+
* @returns {Object.<string,*>} Plain object
|
|
58004
|
+
*/
|
|
58005
|
+
Section.toObject = function toObject(message, options) {
|
|
58006
|
+
if (!options)
|
|
58007
|
+
options = {};
|
|
58008
|
+
var object = {};
|
|
58009
|
+
if (options.defaults) {
|
|
58010
|
+
object.name = "";
|
|
58011
|
+
object.displayName = "";
|
|
58012
|
+
object.sortOrder = 0;
|
|
58013
|
+
object.type = options.enums === String ? "SECTION_TYPE_UNSPECIFIED" : 0;
|
|
58014
|
+
}
|
|
58015
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58016
|
+
object.name = message.name;
|
|
58017
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
58018
|
+
object.displayName = message.displayName;
|
|
58019
|
+
if (message.sortOrder != null && message.hasOwnProperty("sortOrder"))
|
|
58020
|
+
object.sortOrder = message.sortOrder;
|
|
58021
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
58022
|
+
object.type = options.enums === String ? $root.google.chat.v1.Section.SectionType[message.type] === undefined ? message.type : $root.google.chat.v1.Section.SectionType[message.type] : message.type;
|
|
58023
|
+
return object;
|
|
58024
|
+
};
|
|
58025
|
+
|
|
58026
|
+
/**
|
|
58027
|
+
* Converts this Section to JSON.
|
|
58028
|
+
* @function toJSON
|
|
58029
|
+
* @memberof google.chat.v1.Section
|
|
58030
|
+
* @instance
|
|
58031
|
+
* @returns {Object.<string,*>} JSON object
|
|
58032
|
+
*/
|
|
58033
|
+
Section.prototype.toJSON = function toJSON() {
|
|
58034
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58035
|
+
};
|
|
58036
|
+
|
|
58037
|
+
/**
|
|
58038
|
+
* Gets the default type url for Section
|
|
58039
|
+
* @function getTypeUrl
|
|
58040
|
+
* @memberof google.chat.v1.Section
|
|
58041
|
+
* @static
|
|
58042
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58043
|
+
* @returns {string} The default type url
|
|
58044
|
+
*/
|
|
58045
|
+
Section.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58046
|
+
if (typeUrlPrefix === undefined) {
|
|
58047
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58048
|
+
}
|
|
58049
|
+
return typeUrlPrefix + "/google.chat.v1.Section";
|
|
58050
|
+
};
|
|
58051
|
+
|
|
58052
|
+
/**
|
|
58053
|
+
* SectionType enum.
|
|
58054
|
+
* @name google.chat.v1.Section.SectionType
|
|
58055
|
+
* @enum {number}
|
|
58056
|
+
* @property {number} SECTION_TYPE_UNSPECIFIED=0 SECTION_TYPE_UNSPECIFIED value
|
|
58057
|
+
* @property {number} CUSTOM_SECTION=1 CUSTOM_SECTION value
|
|
58058
|
+
* @property {number} DEFAULT_DIRECT_MESSAGES=2 DEFAULT_DIRECT_MESSAGES value
|
|
58059
|
+
* @property {number} DEFAULT_SPACES=3 DEFAULT_SPACES value
|
|
58060
|
+
* @property {number} DEFAULT_APPS=6 DEFAULT_APPS value
|
|
58061
|
+
*/
|
|
58062
|
+
Section.SectionType = (function() {
|
|
58063
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
58064
|
+
values[valuesById[0] = "SECTION_TYPE_UNSPECIFIED"] = 0;
|
|
58065
|
+
values[valuesById[1] = "CUSTOM_SECTION"] = 1;
|
|
58066
|
+
values[valuesById[2] = "DEFAULT_DIRECT_MESSAGES"] = 2;
|
|
58067
|
+
values[valuesById[3] = "DEFAULT_SPACES"] = 3;
|
|
58068
|
+
values[valuesById[6] = "DEFAULT_APPS"] = 6;
|
|
58069
|
+
return values;
|
|
58070
|
+
})();
|
|
58071
|
+
|
|
58072
|
+
return Section;
|
|
58073
|
+
})();
|
|
58074
|
+
|
|
58075
|
+
v1.SectionItem = (function() {
|
|
58076
|
+
|
|
58077
|
+
/**
|
|
58078
|
+
* Properties of a SectionItem.
|
|
58079
|
+
* @memberof google.chat.v1
|
|
58080
|
+
* @interface ISectionItem
|
|
58081
|
+
* @property {string|null} [name] SectionItem name
|
|
58082
|
+
* @property {string|null} [space] SectionItem space
|
|
58083
|
+
*/
|
|
58084
|
+
|
|
58085
|
+
/**
|
|
58086
|
+
* Constructs a new SectionItem.
|
|
58087
|
+
* @memberof google.chat.v1
|
|
58088
|
+
* @classdesc Represents a SectionItem.
|
|
58089
|
+
* @implements ISectionItem
|
|
58090
|
+
* @constructor
|
|
58091
|
+
* @param {google.chat.v1.ISectionItem=} [properties] Properties to set
|
|
58092
|
+
*/
|
|
58093
|
+
function SectionItem(properties) {
|
|
58094
|
+
if (properties)
|
|
58095
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58096
|
+
if (properties[keys[i]] != null)
|
|
58097
|
+
this[keys[i]] = properties[keys[i]];
|
|
58098
|
+
}
|
|
58099
|
+
|
|
58100
|
+
/**
|
|
58101
|
+
* SectionItem name.
|
|
58102
|
+
* @member {string} name
|
|
58103
|
+
* @memberof google.chat.v1.SectionItem
|
|
58104
|
+
* @instance
|
|
58105
|
+
*/
|
|
58106
|
+
SectionItem.prototype.name = "";
|
|
58107
|
+
|
|
58108
|
+
/**
|
|
58109
|
+
* SectionItem space.
|
|
58110
|
+
* @member {string|null|undefined} space
|
|
58111
|
+
* @memberof google.chat.v1.SectionItem
|
|
58112
|
+
* @instance
|
|
58113
|
+
*/
|
|
58114
|
+
SectionItem.prototype.space = null;
|
|
58115
|
+
|
|
58116
|
+
// OneOf field names bound to virtual getters and setters
|
|
58117
|
+
var $oneOfFields;
|
|
58118
|
+
|
|
58119
|
+
/**
|
|
58120
|
+
* SectionItem item.
|
|
58121
|
+
* @member {"space"|undefined} item
|
|
58122
|
+
* @memberof google.chat.v1.SectionItem
|
|
58123
|
+
* @instance
|
|
58124
|
+
*/
|
|
58125
|
+
Object.defineProperty(SectionItem.prototype, "item", {
|
|
58126
|
+
get: $util.oneOfGetter($oneOfFields = ["space"]),
|
|
58127
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
58128
|
+
});
|
|
58129
|
+
|
|
58130
|
+
/**
|
|
58131
|
+
* Creates a new SectionItem instance using the specified properties.
|
|
58132
|
+
* @function create
|
|
58133
|
+
* @memberof google.chat.v1.SectionItem
|
|
58134
|
+
* @static
|
|
58135
|
+
* @param {google.chat.v1.ISectionItem=} [properties] Properties to set
|
|
58136
|
+
* @returns {google.chat.v1.SectionItem} SectionItem instance
|
|
58137
|
+
*/
|
|
58138
|
+
SectionItem.create = function create(properties) {
|
|
58139
|
+
return new SectionItem(properties);
|
|
58140
|
+
};
|
|
58141
|
+
|
|
58142
|
+
/**
|
|
58143
|
+
* Encodes the specified SectionItem message. Does not implicitly {@link google.chat.v1.SectionItem.verify|verify} messages.
|
|
58144
|
+
* @function encode
|
|
58145
|
+
* @memberof google.chat.v1.SectionItem
|
|
58146
|
+
* @static
|
|
58147
|
+
* @param {google.chat.v1.ISectionItem} message SectionItem message or plain object to encode
|
|
58148
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58149
|
+
* @returns {$protobuf.Writer} Writer
|
|
58150
|
+
*/
|
|
58151
|
+
SectionItem.encode = function encode(message, writer) {
|
|
58152
|
+
if (!writer)
|
|
58153
|
+
writer = $Writer.create();
|
|
58154
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
58155
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
58156
|
+
if (message.space != null && Object.hasOwnProperty.call(message, "space"))
|
|
58157
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.space);
|
|
58158
|
+
return writer;
|
|
58159
|
+
};
|
|
58160
|
+
|
|
58161
|
+
/**
|
|
58162
|
+
* Encodes the specified SectionItem message, length delimited. Does not implicitly {@link google.chat.v1.SectionItem.verify|verify} messages.
|
|
58163
|
+
* @function encodeDelimited
|
|
58164
|
+
* @memberof google.chat.v1.SectionItem
|
|
58165
|
+
* @static
|
|
58166
|
+
* @param {google.chat.v1.ISectionItem} message SectionItem message or plain object to encode
|
|
58167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58168
|
+
* @returns {$protobuf.Writer} Writer
|
|
58169
|
+
*/
|
|
58170
|
+
SectionItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58171
|
+
return this.encode(message, writer).ldelim();
|
|
58172
|
+
};
|
|
58173
|
+
|
|
58174
|
+
/**
|
|
58175
|
+
* Decodes a SectionItem message from the specified reader or buffer.
|
|
58176
|
+
* @function decode
|
|
58177
|
+
* @memberof google.chat.v1.SectionItem
|
|
58178
|
+
* @static
|
|
58179
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58180
|
+
* @param {number} [length] Message length if known beforehand
|
|
58181
|
+
* @returns {google.chat.v1.SectionItem} SectionItem
|
|
58182
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58183
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58184
|
+
*/
|
|
58185
|
+
SectionItem.decode = function decode(reader, length, error) {
|
|
58186
|
+
if (!(reader instanceof $Reader))
|
|
58187
|
+
reader = $Reader.create(reader);
|
|
58188
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.SectionItem();
|
|
58189
|
+
while (reader.pos < end) {
|
|
58190
|
+
var tag = reader.uint32();
|
|
58191
|
+
if (tag === error)
|
|
58192
|
+
break;
|
|
58193
|
+
switch (tag >>> 3) {
|
|
58194
|
+
case 1: {
|
|
58195
|
+
message.name = reader.string();
|
|
58196
|
+
break;
|
|
58197
|
+
}
|
|
58198
|
+
case 2: {
|
|
58199
|
+
message.space = reader.string();
|
|
58200
|
+
break;
|
|
58201
|
+
}
|
|
58202
|
+
default:
|
|
58203
|
+
reader.skipType(tag & 7);
|
|
58204
|
+
break;
|
|
58205
|
+
}
|
|
58206
|
+
}
|
|
58207
|
+
return message;
|
|
58208
|
+
};
|
|
58209
|
+
|
|
58210
|
+
/**
|
|
58211
|
+
* Decodes a SectionItem message from the specified reader or buffer, length delimited.
|
|
58212
|
+
* @function decodeDelimited
|
|
58213
|
+
* @memberof google.chat.v1.SectionItem
|
|
58214
|
+
* @static
|
|
58215
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58216
|
+
* @returns {google.chat.v1.SectionItem} SectionItem
|
|
58217
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58218
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58219
|
+
*/
|
|
58220
|
+
SectionItem.decodeDelimited = function decodeDelimited(reader) {
|
|
58221
|
+
if (!(reader instanceof $Reader))
|
|
58222
|
+
reader = new $Reader(reader);
|
|
58223
|
+
return this.decode(reader, reader.uint32());
|
|
58224
|
+
};
|
|
58225
|
+
|
|
58226
|
+
/**
|
|
58227
|
+
* Verifies a SectionItem message.
|
|
58228
|
+
* @function verify
|
|
58229
|
+
* @memberof google.chat.v1.SectionItem
|
|
58230
|
+
* @static
|
|
58231
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58232
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58233
|
+
*/
|
|
58234
|
+
SectionItem.verify = function verify(message) {
|
|
58235
|
+
if (typeof message !== "object" || message === null)
|
|
58236
|
+
return "object expected";
|
|
58237
|
+
var properties = {};
|
|
58238
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58239
|
+
if (!$util.isString(message.name))
|
|
58240
|
+
return "name: string expected";
|
|
58241
|
+
if (message.space != null && message.hasOwnProperty("space")) {
|
|
58242
|
+
properties.item = 1;
|
|
58243
|
+
if (!$util.isString(message.space))
|
|
58244
|
+
return "space: string expected";
|
|
58245
|
+
}
|
|
58246
|
+
return null;
|
|
58247
|
+
};
|
|
58248
|
+
|
|
58249
|
+
/**
|
|
58250
|
+
* Creates a SectionItem message from a plain object. Also converts values to their respective internal types.
|
|
58251
|
+
* @function fromObject
|
|
58252
|
+
* @memberof google.chat.v1.SectionItem
|
|
58253
|
+
* @static
|
|
58254
|
+
* @param {Object.<string,*>} object Plain object
|
|
58255
|
+
* @returns {google.chat.v1.SectionItem} SectionItem
|
|
58256
|
+
*/
|
|
58257
|
+
SectionItem.fromObject = function fromObject(object) {
|
|
58258
|
+
if (object instanceof $root.google.chat.v1.SectionItem)
|
|
58259
|
+
return object;
|
|
58260
|
+
var message = new $root.google.chat.v1.SectionItem();
|
|
58261
|
+
if (object.name != null)
|
|
58262
|
+
message.name = String(object.name);
|
|
58263
|
+
if (object.space != null)
|
|
58264
|
+
message.space = String(object.space);
|
|
58265
|
+
return message;
|
|
58266
|
+
};
|
|
58267
|
+
|
|
58268
|
+
/**
|
|
58269
|
+
* Creates a plain object from a SectionItem message. Also converts values to other types if specified.
|
|
58270
|
+
* @function toObject
|
|
58271
|
+
* @memberof google.chat.v1.SectionItem
|
|
58272
|
+
* @static
|
|
58273
|
+
* @param {google.chat.v1.SectionItem} message SectionItem
|
|
58274
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58275
|
+
* @returns {Object.<string,*>} Plain object
|
|
58276
|
+
*/
|
|
58277
|
+
SectionItem.toObject = function toObject(message, options) {
|
|
58278
|
+
if (!options)
|
|
58279
|
+
options = {};
|
|
58280
|
+
var object = {};
|
|
58281
|
+
if (options.defaults)
|
|
58282
|
+
object.name = "";
|
|
58283
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58284
|
+
object.name = message.name;
|
|
58285
|
+
if (message.space != null && message.hasOwnProperty("space")) {
|
|
58286
|
+
object.space = message.space;
|
|
58287
|
+
if (options.oneofs)
|
|
58288
|
+
object.item = "space";
|
|
58289
|
+
}
|
|
58290
|
+
return object;
|
|
58291
|
+
};
|
|
58292
|
+
|
|
58293
|
+
/**
|
|
58294
|
+
* Converts this SectionItem to JSON.
|
|
58295
|
+
* @function toJSON
|
|
58296
|
+
* @memberof google.chat.v1.SectionItem
|
|
58297
|
+
* @instance
|
|
58298
|
+
* @returns {Object.<string,*>} JSON object
|
|
58299
|
+
*/
|
|
58300
|
+
SectionItem.prototype.toJSON = function toJSON() {
|
|
58301
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58302
|
+
};
|
|
58303
|
+
|
|
58304
|
+
/**
|
|
58305
|
+
* Gets the default type url for SectionItem
|
|
58306
|
+
* @function getTypeUrl
|
|
58307
|
+
* @memberof google.chat.v1.SectionItem
|
|
58308
|
+
* @static
|
|
58309
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58310
|
+
* @returns {string} The default type url
|
|
58311
|
+
*/
|
|
58312
|
+
SectionItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58313
|
+
if (typeUrlPrefix === undefined) {
|
|
58314
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58315
|
+
}
|
|
58316
|
+
return typeUrlPrefix + "/google.chat.v1.SectionItem";
|
|
58317
|
+
};
|
|
58318
|
+
|
|
58319
|
+
return SectionItem;
|
|
58320
|
+
})();
|
|
58321
|
+
|
|
58322
|
+
v1.CreateSectionRequest = (function() {
|
|
58323
|
+
|
|
58324
|
+
/**
|
|
58325
|
+
* Properties of a CreateSectionRequest.
|
|
58326
|
+
* @memberof google.chat.v1
|
|
58327
|
+
* @interface ICreateSectionRequest
|
|
58328
|
+
* @property {string|null} [parent] CreateSectionRequest parent
|
|
58329
|
+
* @property {google.chat.v1.ISection|null} [section] CreateSectionRequest section
|
|
58330
|
+
*/
|
|
58331
|
+
|
|
58332
|
+
/**
|
|
58333
|
+
* Constructs a new CreateSectionRequest.
|
|
58334
|
+
* @memberof google.chat.v1
|
|
58335
|
+
* @classdesc Represents a CreateSectionRequest.
|
|
58336
|
+
* @implements ICreateSectionRequest
|
|
58337
|
+
* @constructor
|
|
58338
|
+
* @param {google.chat.v1.ICreateSectionRequest=} [properties] Properties to set
|
|
58339
|
+
*/
|
|
58340
|
+
function CreateSectionRequest(properties) {
|
|
58341
|
+
if (properties)
|
|
58342
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58343
|
+
if (properties[keys[i]] != null)
|
|
58344
|
+
this[keys[i]] = properties[keys[i]];
|
|
58345
|
+
}
|
|
58346
|
+
|
|
58347
|
+
/**
|
|
58348
|
+
* CreateSectionRequest parent.
|
|
58349
|
+
* @member {string} parent
|
|
58350
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58351
|
+
* @instance
|
|
58352
|
+
*/
|
|
58353
|
+
CreateSectionRequest.prototype.parent = "";
|
|
58354
|
+
|
|
58355
|
+
/**
|
|
58356
|
+
* CreateSectionRequest section.
|
|
58357
|
+
* @member {google.chat.v1.ISection|null|undefined} section
|
|
58358
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58359
|
+
* @instance
|
|
58360
|
+
*/
|
|
58361
|
+
CreateSectionRequest.prototype.section = null;
|
|
58362
|
+
|
|
58363
|
+
/**
|
|
58364
|
+
* Creates a new CreateSectionRequest instance using the specified properties.
|
|
58365
|
+
* @function create
|
|
58366
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58367
|
+
* @static
|
|
58368
|
+
* @param {google.chat.v1.ICreateSectionRequest=} [properties] Properties to set
|
|
58369
|
+
* @returns {google.chat.v1.CreateSectionRequest} CreateSectionRequest instance
|
|
58370
|
+
*/
|
|
58371
|
+
CreateSectionRequest.create = function create(properties) {
|
|
58372
|
+
return new CreateSectionRequest(properties);
|
|
58373
|
+
};
|
|
58374
|
+
|
|
58375
|
+
/**
|
|
58376
|
+
* Encodes the specified CreateSectionRequest message. Does not implicitly {@link google.chat.v1.CreateSectionRequest.verify|verify} messages.
|
|
58377
|
+
* @function encode
|
|
58378
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58379
|
+
* @static
|
|
58380
|
+
* @param {google.chat.v1.ICreateSectionRequest} message CreateSectionRequest message or plain object to encode
|
|
58381
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58382
|
+
* @returns {$protobuf.Writer} Writer
|
|
58383
|
+
*/
|
|
58384
|
+
CreateSectionRequest.encode = function encode(message, writer) {
|
|
58385
|
+
if (!writer)
|
|
58386
|
+
writer = $Writer.create();
|
|
58387
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
58388
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
58389
|
+
if (message.section != null && Object.hasOwnProperty.call(message, "section"))
|
|
58390
|
+
$root.google.chat.v1.Section.encode(message.section, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58391
|
+
return writer;
|
|
58392
|
+
};
|
|
58393
|
+
|
|
58394
|
+
/**
|
|
58395
|
+
* Encodes the specified CreateSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.CreateSectionRequest.verify|verify} messages.
|
|
58396
|
+
* @function encodeDelimited
|
|
58397
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58398
|
+
* @static
|
|
58399
|
+
* @param {google.chat.v1.ICreateSectionRequest} message CreateSectionRequest message or plain object to encode
|
|
58400
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58401
|
+
* @returns {$protobuf.Writer} Writer
|
|
58402
|
+
*/
|
|
58403
|
+
CreateSectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58404
|
+
return this.encode(message, writer).ldelim();
|
|
58405
|
+
};
|
|
58406
|
+
|
|
58407
|
+
/**
|
|
58408
|
+
* Decodes a CreateSectionRequest message from the specified reader or buffer.
|
|
58409
|
+
* @function decode
|
|
58410
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58411
|
+
* @static
|
|
58412
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58413
|
+
* @param {number} [length] Message length if known beforehand
|
|
58414
|
+
* @returns {google.chat.v1.CreateSectionRequest} CreateSectionRequest
|
|
58415
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58416
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58417
|
+
*/
|
|
58418
|
+
CreateSectionRequest.decode = function decode(reader, length, error) {
|
|
58419
|
+
if (!(reader instanceof $Reader))
|
|
58420
|
+
reader = $Reader.create(reader);
|
|
58421
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.CreateSectionRequest();
|
|
58422
|
+
while (reader.pos < end) {
|
|
58423
|
+
var tag = reader.uint32();
|
|
58424
|
+
if (tag === error)
|
|
58425
|
+
break;
|
|
58426
|
+
switch (tag >>> 3) {
|
|
58427
|
+
case 1: {
|
|
58428
|
+
message.parent = reader.string();
|
|
58429
|
+
break;
|
|
58430
|
+
}
|
|
58431
|
+
case 2: {
|
|
58432
|
+
message.section = $root.google.chat.v1.Section.decode(reader, reader.uint32());
|
|
58433
|
+
break;
|
|
58434
|
+
}
|
|
58435
|
+
default:
|
|
58436
|
+
reader.skipType(tag & 7);
|
|
58437
|
+
break;
|
|
58438
|
+
}
|
|
58439
|
+
}
|
|
58440
|
+
return message;
|
|
58441
|
+
};
|
|
58442
|
+
|
|
58443
|
+
/**
|
|
58444
|
+
* Decodes a CreateSectionRequest message from the specified reader or buffer, length delimited.
|
|
58445
|
+
* @function decodeDelimited
|
|
58446
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58447
|
+
* @static
|
|
58448
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58449
|
+
* @returns {google.chat.v1.CreateSectionRequest} CreateSectionRequest
|
|
58450
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58451
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58452
|
+
*/
|
|
58453
|
+
CreateSectionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
58454
|
+
if (!(reader instanceof $Reader))
|
|
58455
|
+
reader = new $Reader(reader);
|
|
58456
|
+
return this.decode(reader, reader.uint32());
|
|
58457
|
+
};
|
|
58458
|
+
|
|
58459
|
+
/**
|
|
58460
|
+
* Verifies a CreateSectionRequest message.
|
|
58461
|
+
* @function verify
|
|
58462
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58463
|
+
* @static
|
|
58464
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58465
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58466
|
+
*/
|
|
58467
|
+
CreateSectionRequest.verify = function verify(message) {
|
|
58468
|
+
if (typeof message !== "object" || message === null)
|
|
58469
|
+
return "object expected";
|
|
58470
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
58471
|
+
if (!$util.isString(message.parent))
|
|
58472
|
+
return "parent: string expected";
|
|
58473
|
+
if (message.section != null && message.hasOwnProperty("section")) {
|
|
58474
|
+
var error = $root.google.chat.v1.Section.verify(message.section);
|
|
58475
|
+
if (error)
|
|
58476
|
+
return "section." + error;
|
|
58477
|
+
}
|
|
58478
|
+
return null;
|
|
58479
|
+
};
|
|
58480
|
+
|
|
58481
|
+
/**
|
|
58482
|
+
* Creates a CreateSectionRequest message from a plain object. Also converts values to their respective internal types.
|
|
58483
|
+
* @function fromObject
|
|
58484
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58485
|
+
* @static
|
|
58486
|
+
* @param {Object.<string,*>} object Plain object
|
|
58487
|
+
* @returns {google.chat.v1.CreateSectionRequest} CreateSectionRequest
|
|
58488
|
+
*/
|
|
58489
|
+
CreateSectionRequest.fromObject = function fromObject(object) {
|
|
58490
|
+
if (object instanceof $root.google.chat.v1.CreateSectionRequest)
|
|
58491
|
+
return object;
|
|
58492
|
+
var message = new $root.google.chat.v1.CreateSectionRequest();
|
|
58493
|
+
if (object.parent != null)
|
|
58494
|
+
message.parent = String(object.parent);
|
|
58495
|
+
if (object.section != null) {
|
|
58496
|
+
if (typeof object.section !== "object")
|
|
58497
|
+
throw TypeError(".google.chat.v1.CreateSectionRequest.section: object expected");
|
|
58498
|
+
message.section = $root.google.chat.v1.Section.fromObject(object.section);
|
|
58499
|
+
}
|
|
58500
|
+
return message;
|
|
58501
|
+
};
|
|
58502
|
+
|
|
58503
|
+
/**
|
|
58504
|
+
* Creates a plain object from a CreateSectionRequest message. Also converts values to other types if specified.
|
|
58505
|
+
* @function toObject
|
|
58506
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58507
|
+
* @static
|
|
58508
|
+
* @param {google.chat.v1.CreateSectionRequest} message CreateSectionRequest
|
|
58509
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58510
|
+
* @returns {Object.<string,*>} Plain object
|
|
58511
|
+
*/
|
|
58512
|
+
CreateSectionRequest.toObject = function toObject(message, options) {
|
|
58513
|
+
if (!options)
|
|
58514
|
+
options = {};
|
|
58515
|
+
var object = {};
|
|
58516
|
+
if (options.defaults) {
|
|
58517
|
+
object.parent = "";
|
|
58518
|
+
object.section = null;
|
|
58519
|
+
}
|
|
58520
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
58521
|
+
object.parent = message.parent;
|
|
58522
|
+
if (message.section != null && message.hasOwnProperty("section"))
|
|
58523
|
+
object.section = $root.google.chat.v1.Section.toObject(message.section, options);
|
|
58524
|
+
return object;
|
|
58525
|
+
};
|
|
58526
|
+
|
|
58527
|
+
/**
|
|
58528
|
+
* Converts this CreateSectionRequest to JSON.
|
|
58529
|
+
* @function toJSON
|
|
58530
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58531
|
+
* @instance
|
|
58532
|
+
* @returns {Object.<string,*>} JSON object
|
|
58533
|
+
*/
|
|
58534
|
+
CreateSectionRequest.prototype.toJSON = function toJSON() {
|
|
58535
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58536
|
+
};
|
|
58537
|
+
|
|
58538
|
+
/**
|
|
58539
|
+
* Gets the default type url for CreateSectionRequest
|
|
58540
|
+
* @function getTypeUrl
|
|
58541
|
+
* @memberof google.chat.v1.CreateSectionRequest
|
|
58542
|
+
* @static
|
|
58543
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58544
|
+
* @returns {string} The default type url
|
|
58545
|
+
*/
|
|
58546
|
+
CreateSectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58547
|
+
if (typeUrlPrefix === undefined) {
|
|
58548
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58549
|
+
}
|
|
58550
|
+
return typeUrlPrefix + "/google.chat.v1.CreateSectionRequest";
|
|
58551
|
+
};
|
|
58552
|
+
|
|
58553
|
+
return CreateSectionRequest;
|
|
58554
|
+
})();
|
|
58555
|
+
|
|
58556
|
+
v1.DeleteSectionRequest = (function() {
|
|
58557
|
+
|
|
58558
|
+
/**
|
|
58559
|
+
* Properties of a DeleteSectionRequest.
|
|
58560
|
+
* @memberof google.chat.v1
|
|
58561
|
+
* @interface IDeleteSectionRequest
|
|
58562
|
+
* @property {string|null} [name] DeleteSectionRequest name
|
|
58563
|
+
*/
|
|
58564
|
+
|
|
58565
|
+
/**
|
|
58566
|
+
* Constructs a new DeleteSectionRequest.
|
|
58567
|
+
* @memberof google.chat.v1
|
|
58568
|
+
* @classdesc Represents a DeleteSectionRequest.
|
|
58569
|
+
* @implements IDeleteSectionRequest
|
|
58570
|
+
* @constructor
|
|
58571
|
+
* @param {google.chat.v1.IDeleteSectionRequest=} [properties] Properties to set
|
|
58572
|
+
*/
|
|
58573
|
+
function DeleteSectionRequest(properties) {
|
|
58574
|
+
if (properties)
|
|
58575
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58576
|
+
if (properties[keys[i]] != null)
|
|
58577
|
+
this[keys[i]] = properties[keys[i]];
|
|
58578
|
+
}
|
|
58579
|
+
|
|
58580
|
+
/**
|
|
58581
|
+
* DeleteSectionRequest name.
|
|
58582
|
+
* @member {string} name
|
|
58583
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58584
|
+
* @instance
|
|
58585
|
+
*/
|
|
58586
|
+
DeleteSectionRequest.prototype.name = "";
|
|
58587
|
+
|
|
58588
|
+
/**
|
|
58589
|
+
* Creates a new DeleteSectionRequest instance using the specified properties.
|
|
58590
|
+
* @function create
|
|
58591
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58592
|
+
* @static
|
|
58593
|
+
* @param {google.chat.v1.IDeleteSectionRequest=} [properties] Properties to set
|
|
58594
|
+
* @returns {google.chat.v1.DeleteSectionRequest} DeleteSectionRequest instance
|
|
58595
|
+
*/
|
|
58596
|
+
DeleteSectionRequest.create = function create(properties) {
|
|
58597
|
+
return new DeleteSectionRequest(properties);
|
|
58598
|
+
};
|
|
58599
|
+
|
|
58600
|
+
/**
|
|
58601
|
+
* Encodes the specified DeleteSectionRequest message. Does not implicitly {@link google.chat.v1.DeleteSectionRequest.verify|verify} messages.
|
|
58602
|
+
* @function encode
|
|
58603
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58604
|
+
* @static
|
|
58605
|
+
* @param {google.chat.v1.IDeleteSectionRequest} message DeleteSectionRequest message or plain object to encode
|
|
58606
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58607
|
+
* @returns {$protobuf.Writer} Writer
|
|
58608
|
+
*/
|
|
58609
|
+
DeleteSectionRequest.encode = function encode(message, writer) {
|
|
58610
|
+
if (!writer)
|
|
58611
|
+
writer = $Writer.create();
|
|
58612
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
58613
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
58614
|
+
return writer;
|
|
58615
|
+
};
|
|
58616
|
+
|
|
58617
|
+
/**
|
|
58618
|
+
* Encodes the specified DeleteSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.DeleteSectionRequest.verify|verify} messages.
|
|
58619
|
+
* @function encodeDelimited
|
|
58620
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58621
|
+
* @static
|
|
58622
|
+
* @param {google.chat.v1.IDeleteSectionRequest} message DeleteSectionRequest message or plain object to encode
|
|
58623
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58624
|
+
* @returns {$protobuf.Writer} Writer
|
|
58625
|
+
*/
|
|
58626
|
+
DeleteSectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58627
|
+
return this.encode(message, writer).ldelim();
|
|
58628
|
+
};
|
|
58629
|
+
|
|
58630
|
+
/**
|
|
58631
|
+
* Decodes a DeleteSectionRequest message from the specified reader or buffer.
|
|
58632
|
+
* @function decode
|
|
58633
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58634
|
+
* @static
|
|
58635
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58636
|
+
* @param {number} [length] Message length if known beforehand
|
|
58637
|
+
* @returns {google.chat.v1.DeleteSectionRequest} DeleteSectionRequest
|
|
58638
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58639
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58640
|
+
*/
|
|
58641
|
+
DeleteSectionRequest.decode = function decode(reader, length, error) {
|
|
58642
|
+
if (!(reader instanceof $Reader))
|
|
58643
|
+
reader = $Reader.create(reader);
|
|
58644
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.DeleteSectionRequest();
|
|
58645
|
+
while (reader.pos < end) {
|
|
58646
|
+
var tag = reader.uint32();
|
|
58647
|
+
if (tag === error)
|
|
58648
|
+
break;
|
|
58649
|
+
switch (tag >>> 3) {
|
|
58650
|
+
case 1: {
|
|
58651
|
+
message.name = reader.string();
|
|
58652
|
+
break;
|
|
58653
|
+
}
|
|
58654
|
+
default:
|
|
58655
|
+
reader.skipType(tag & 7);
|
|
58656
|
+
break;
|
|
58657
|
+
}
|
|
58658
|
+
}
|
|
58659
|
+
return message;
|
|
58660
|
+
};
|
|
58661
|
+
|
|
58662
|
+
/**
|
|
58663
|
+
* Decodes a DeleteSectionRequest message from the specified reader or buffer, length delimited.
|
|
58664
|
+
* @function decodeDelimited
|
|
58665
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58666
|
+
* @static
|
|
58667
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58668
|
+
* @returns {google.chat.v1.DeleteSectionRequest} DeleteSectionRequest
|
|
58669
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58670
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58671
|
+
*/
|
|
58672
|
+
DeleteSectionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
58673
|
+
if (!(reader instanceof $Reader))
|
|
58674
|
+
reader = new $Reader(reader);
|
|
58675
|
+
return this.decode(reader, reader.uint32());
|
|
58676
|
+
};
|
|
58677
|
+
|
|
58678
|
+
/**
|
|
58679
|
+
* Verifies a DeleteSectionRequest message.
|
|
58680
|
+
* @function verify
|
|
58681
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58682
|
+
* @static
|
|
58683
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58684
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58685
|
+
*/
|
|
58686
|
+
DeleteSectionRequest.verify = function verify(message) {
|
|
58687
|
+
if (typeof message !== "object" || message === null)
|
|
58688
|
+
return "object expected";
|
|
58689
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58690
|
+
if (!$util.isString(message.name))
|
|
58691
|
+
return "name: string expected";
|
|
58692
|
+
return null;
|
|
58693
|
+
};
|
|
58694
|
+
|
|
58695
|
+
/**
|
|
58696
|
+
* Creates a DeleteSectionRequest message from a plain object. Also converts values to their respective internal types.
|
|
58697
|
+
* @function fromObject
|
|
58698
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58699
|
+
* @static
|
|
58700
|
+
* @param {Object.<string,*>} object Plain object
|
|
58701
|
+
* @returns {google.chat.v1.DeleteSectionRequest} DeleteSectionRequest
|
|
58702
|
+
*/
|
|
58703
|
+
DeleteSectionRequest.fromObject = function fromObject(object) {
|
|
58704
|
+
if (object instanceof $root.google.chat.v1.DeleteSectionRequest)
|
|
58705
|
+
return object;
|
|
58706
|
+
var message = new $root.google.chat.v1.DeleteSectionRequest();
|
|
58707
|
+
if (object.name != null)
|
|
58708
|
+
message.name = String(object.name);
|
|
58709
|
+
return message;
|
|
58710
|
+
};
|
|
58711
|
+
|
|
58712
|
+
/**
|
|
58713
|
+
* Creates a plain object from a DeleteSectionRequest message. Also converts values to other types if specified.
|
|
58714
|
+
* @function toObject
|
|
58715
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58716
|
+
* @static
|
|
58717
|
+
* @param {google.chat.v1.DeleteSectionRequest} message DeleteSectionRequest
|
|
58718
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58719
|
+
* @returns {Object.<string,*>} Plain object
|
|
58720
|
+
*/
|
|
58721
|
+
DeleteSectionRequest.toObject = function toObject(message, options) {
|
|
58722
|
+
if (!options)
|
|
58723
|
+
options = {};
|
|
58724
|
+
var object = {};
|
|
58725
|
+
if (options.defaults)
|
|
58726
|
+
object.name = "";
|
|
58727
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58728
|
+
object.name = message.name;
|
|
58729
|
+
return object;
|
|
58730
|
+
};
|
|
58731
|
+
|
|
58732
|
+
/**
|
|
58733
|
+
* Converts this DeleteSectionRequest to JSON.
|
|
58734
|
+
* @function toJSON
|
|
58735
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58736
|
+
* @instance
|
|
58737
|
+
* @returns {Object.<string,*>} JSON object
|
|
58738
|
+
*/
|
|
58739
|
+
DeleteSectionRequest.prototype.toJSON = function toJSON() {
|
|
58740
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58741
|
+
};
|
|
58742
|
+
|
|
58743
|
+
/**
|
|
58744
|
+
* Gets the default type url for DeleteSectionRequest
|
|
58745
|
+
* @function getTypeUrl
|
|
58746
|
+
* @memberof google.chat.v1.DeleteSectionRequest
|
|
58747
|
+
* @static
|
|
58748
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58749
|
+
* @returns {string} The default type url
|
|
58750
|
+
*/
|
|
58751
|
+
DeleteSectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58752
|
+
if (typeUrlPrefix === undefined) {
|
|
58753
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58754
|
+
}
|
|
58755
|
+
return typeUrlPrefix + "/google.chat.v1.DeleteSectionRequest";
|
|
58756
|
+
};
|
|
58757
|
+
|
|
58758
|
+
return DeleteSectionRequest;
|
|
58759
|
+
})();
|
|
58760
|
+
|
|
58761
|
+
v1.UpdateSectionRequest = (function() {
|
|
58762
|
+
|
|
58763
|
+
/**
|
|
58764
|
+
* Properties of an UpdateSectionRequest.
|
|
58765
|
+
* @memberof google.chat.v1
|
|
58766
|
+
* @interface IUpdateSectionRequest
|
|
58767
|
+
* @property {google.chat.v1.ISection|null} [section] UpdateSectionRequest section
|
|
58768
|
+
* @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSectionRequest updateMask
|
|
58769
|
+
*/
|
|
58770
|
+
|
|
58771
|
+
/**
|
|
58772
|
+
* Constructs a new UpdateSectionRequest.
|
|
58773
|
+
* @memberof google.chat.v1
|
|
58774
|
+
* @classdesc Represents an UpdateSectionRequest.
|
|
58775
|
+
* @implements IUpdateSectionRequest
|
|
58776
|
+
* @constructor
|
|
58777
|
+
* @param {google.chat.v1.IUpdateSectionRequest=} [properties] Properties to set
|
|
58778
|
+
*/
|
|
58779
|
+
function UpdateSectionRequest(properties) {
|
|
58780
|
+
if (properties)
|
|
58781
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58782
|
+
if (properties[keys[i]] != null)
|
|
58783
|
+
this[keys[i]] = properties[keys[i]];
|
|
58784
|
+
}
|
|
58785
|
+
|
|
58786
|
+
/**
|
|
58787
|
+
* UpdateSectionRequest section.
|
|
58788
|
+
* @member {google.chat.v1.ISection|null|undefined} section
|
|
58789
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58790
|
+
* @instance
|
|
58791
|
+
*/
|
|
58792
|
+
UpdateSectionRequest.prototype.section = null;
|
|
58793
|
+
|
|
58794
|
+
/**
|
|
58795
|
+
* UpdateSectionRequest updateMask.
|
|
58796
|
+
* @member {google.protobuf.IFieldMask|null|undefined} updateMask
|
|
58797
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58798
|
+
* @instance
|
|
58799
|
+
*/
|
|
58800
|
+
UpdateSectionRequest.prototype.updateMask = null;
|
|
58801
|
+
|
|
58802
|
+
/**
|
|
58803
|
+
* Creates a new UpdateSectionRequest instance using the specified properties.
|
|
58804
|
+
* @function create
|
|
58805
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58806
|
+
* @static
|
|
58807
|
+
* @param {google.chat.v1.IUpdateSectionRequest=} [properties] Properties to set
|
|
58808
|
+
* @returns {google.chat.v1.UpdateSectionRequest} UpdateSectionRequest instance
|
|
58809
|
+
*/
|
|
58810
|
+
UpdateSectionRequest.create = function create(properties) {
|
|
58811
|
+
return new UpdateSectionRequest(properties);
|
|
58812
|
+
};
|
|
58813
|
+
|
|
58814
|
+
/**
|
|
58815
|
+
* Encodes the specified UpdateSectionRequest message. Does not implicitly {@link google.chat.v1.UpdateSectionRequest.verify|verify} messages.
|
|
58816
|
+
* @function encode
|
|
58817
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58818
|
+
* @static
|
|
58819
|
+
* @param {google.chat.v1.IUpdateSectionRequest} message UpdateSectionRequest message or plain object to encode
|
|
58820
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58821
|
+
* @returns {$protobuf.Writer} Writer
|
|
58822
|
+
*/
|
|
58823
|
+
UpdateSectionRequest.encode = function encode(message, writer) {
|
|
58824
|
+
if (!writer)
|
|
58825
|
+
writer = $Writer.create();
|
|
58826
|
+
if (message.section != null && Object.hasOwnProperty.call(message, "section"))
|
|
58827
|
+
$root.google.chat.v1.Section.encode(message.section, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
58828
|
+
if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
|
|
58829
|
+
$root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58830
|
+
return writer;
|
|
58831
|
+
};
|
|
58832
|
+
|
|
58833
|
+
/**
|
|
58834
|
+
* Encodes the specified UpdateSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSectionRequest.verify|verify} messages.
|
|
58835
|
+
* @function encodeDelimited
|
|
58836
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58837
|
+
* @static
|
|
58838
|
+
* @param {google.chat.v1.IUpdateSectionRequest} message UpdateSectionRequest message or plain object to encode
|
|
58839
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58840
|
+
* @returns {$protobuf.Writer} Writer
|
|
58841
|
+
*/
|
|
58842
|
+
UpdateSectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58843
|
+
return this.encode(message, writer).ldelim();
|
|
58844
|
+
};
|
|
58845
|
+
|
|
58846
|
+
/**
|
|
58847
|
+
* Decodes an UpdateSectionRequest message from the specified reader or buffer.
|
|
58848
|
+
* @function decode
|
|
58849
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58850
|
+
* @static
|
|
58851
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58852
|
+
* @param {number} [length] Message length if known beforehand
|
|
58853
|
+
* @returns {google.chat.v1.UpdateSectionRequest} UpdateSectionRequest
|
|
58854
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58855
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58856
|
+
*/
|
|
58857
|
+
UpdateSectionRequest.decode = function decode(reader, length, error) {
|
|
58858
|
+
if (!(reader instanceof $Reader))
|
|
58859
|
+
reader = $Reader.create(reader);
|
|
58860
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.UpdateSectionRequest();
|
|
58861
|
+
while (reader.pos < end) {
|
|
58862
|
+
var tag = reader.uint32();
|
|
58863
|
+
if (tag === error)
|
|
58864
|
+
break;
|
|
58865
|
+
switch (tag >>> 3) {
|
|
58866
|
+
case 1: {
|
|
58867
|
+
message.section = $root.google.chat.v1.Section.decode(reader, reader.uint32());
|
|
58868
|
+
break;
|
|
58869
|
+
}
|
|
58870
|
+
case 2: {
|
|
58871
|
+
message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
58872
|
+
break;
|
|
58873
|
+
}
|
|
58874
|
+
default:
|
|
58875
|
+
reader.skipType(tag & 7);
|
|
58876
|
+
break;
|
|
58877
|
+
}
|
|
58878
|
+
}
|
|
58879
|
+
return message;
|
|
58880
|
+
};
|
|
58881
|
+
|
|
58882
|
+
/**
|
|
58883
|
+
* Decodes an UpdateSectionRequest message from the specified reader or buffer, length delimited.
|
|
58884
|
+
* @function decodeDelimited
|
|
58885
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58886
|
+
* @static
|
|
58887
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58888
|
+
* @returns {google.chat.v1.UpdateSectionRequest} UpdateSectionRequest
|
|
58889
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58890
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58891
|
+
*/
|
|
58892
|
+
UpdateSectionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
58893
|
+
if (!(reader instanceof $Reader))
|
|
58894
|
+
reader = new $Reader(reader);
|
|
58895
|
+
return this.decode(reader, reader.uint32());
|
|
58896
|
+
};
|
|
58897
|
+
|
|
58898
|
+
/**
|
|
58899
|
+
* Verifies an UpdateSectionRequest message.
|
|
58900
|
+
* @function verify
|
|
58901
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58902
|
+
* @static
|
|
58903
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58904
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58905
|
+
*/
|
|
58906
|
+
UpdateSectionRequest.verify = function verify(message) {
|
|
58907
|
+
if (typeof message !== "object" || message === null)
|
|
58908
|
+
return "object expected";
|
|
58909
|
+
if (message.section != null && message.hasOwnProperty("section")) {
|
|
58910
|
+
var error = $root.google.chat.v1.Section.verify(message.section);
|
|
58911
|
+
if (error)
|
|
58912
|
+
return "section." + error;
|
|
58913
|
+
}
|
|
58914
|
+
if (message.updateMask != null && message.hasOwnProperty("updateMask")) {
|
|
58915
|
+
var error = $root.google.protobuf.FieldMask.verify(message.updateMask);
|
|
58916
|
+
if (error)
|
|
58917
|
+
return "updateMask." + error;
|
|
58918
|
+
}
|
|
58919
|
+
return null;
|
|
58920
|
+
};
|
|
58921
|
+
|
|
58922
|
+
/**
|
|
58923
|
+
* Creates an UpdateSectionRequest message from a plain object. Also converts values to their respective internal types.
|
|
58924
|
+
* @function fromObject
|
|
58925
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58926
|
+
* @static
|
|
58927
|
+
* @param {Object.<string,*>} object Plain object
|
|
58928
|
+
* @returns {google.chat.v1.UpdateSectionRequest} UpdateSectionRequest
|
|
58929
|
+
*/
|
|
58930
|
+
UpdateSectionRequest.fromObject = function fromObject(object) {
|
|
58931
|
+
if (object instanceof $root.google.chat.v1.UpdateSectionRequest)
|
|
58932
|
+
return object;
|
|
58933
|
+
var message = new $root.google.chat.v1.UpdateSectionRequest();
|
|
58934
|
+
if (object.section != null) {
|
|
58935
|
+
if (typeof object.section !== "object")
|
|
58936
|
+
throw TypeError(".google.chat.v1.UpdateSectionRequest.section: object expected");
|
|
58937
|
+
message.section = $root.google.chat.v1.Section.fromObject(object.section);
|
|
58938
|
+
}
|
|
58939
|
+
if (object.updateMask != null) {
|
|
58940
|
+
if (typeof object.updateMask !== "object")
|
|
58941
|
+
throw TypeError(".google.chat.v1.UpdateSectionRequest.updateMask: object expected");
|
|
58942
|
+
message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask);
|
|
58943
|
+
}
|
|
58944
|
+
return message;
|
|
58945
|
+
};
|
|
58946
|
+
|
|
58947
|
+
/**
|
|
58948
|
+
* Creates a plain object from an UpdateSectionRequest message. Also converts values to other types if specified.
|
|
58949
|
+
* @function toObject
|
|
58950
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58951
|
+
* @static
|
|
58952
|
+
* @param {google.chat.v1.UpdateSectionRequest} message UpdateSectionRequest
|
|
58953
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58954
|
+
* @returns {Object.<string,*>} Plain object
|
|
58955
|
+
*/
|
|
58956
|
+
UpdateSectionRequest.toObject = function toObject(message, options) {
|
|
58957
|
+
if (!options)
|
|
58958
|
+
options = {};
|
|
58959
|
+
var object = {};
|
|
58960
|
+
if (options.defaults) {
|
|
58961
|
+
object.section = null;
|
|
58962
|
+
object.updateMask = null;
|
|
58963
|
+
}
|
|
58964
|
+
if (message.section != null && message.hasOwnProperty("section"))
|
|
58965
|
+
object.section = $root.google.chat.v1.Section.toObject(message.section, options);
|
|
58966
|
+
if (message.updateMask != null && message.hasOwnProperty("updateMask"))
|
|
58967
|
+
object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options);
|
|
58968
|
+
return object;
|
|
58969
|
+
};
|
|
58970
|
+
|
|
58971
|
+
/**
|
|
58972
|
+
* Converts this UpdateSectionRequest to JSON.
|
|
58973
|
+
* @function toJSON
|
|
58974
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58975
|
+
* @instance
|
|
58976
|
+
* @returns {Object.<string,*>} JSON object
|
|
58977
|
+
*/
|
|
58978
|
+
UpdateSectionRequest.prototype.toJSON = function toJSON() {
|
|
58979
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58980
|
+
};
|
|
58981
|
+
|
|
58982
|
+
/**
|
|
58983
|
+
* Gets the default type url for UpdateSectionRequest
|
|
58984
|
+
* @function getTypeUrl
|
|
58985
|
+
* @memberof google.chat.v1.UpdateSectionRequest
|
|
58986
|
+
* @static
|
|
58987
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58988
|
+
* @returns {string} The default type url
|
|
58989
|
+
*/
|
|
58990
|
+
UpdateSectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58991
|
+
if (typeUrlPrefix === undefined) {
|
|
58992
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58993
|
+
}
|
|
58994
|
+
return typeUrlPrefix + "/google.chat.v1.UpdateSectionRequest";
|
|
58995
|
+
};
|
|
58996
|
+
|
|
58997
|
+
return UpdateSectionRequest;
|
|
58998
|
+
})();
|
|
58999
|
+
|
|
59000
|
+
v1.ListSectionsRequest = (function() {
|
|
59001
|
+
|
|
59002
|
+
/**
|
|
59003
|
+
* Properties of a ListSectionsRequest.
|
|
59004
|
+
* @memberof google.chat.v1
|
|
59005
|
+
* @interface IListSectionsRequest
|
|
59006
|
+
* @property {string|null} [parent] ListSectionsRequest parent
|
|
59007
|
+
* @property {number|null} [pageSize] ListSectionsRequest pageSize
|
|
59008
|
+
* @property {string|null} [pageToken] ListSectionsRequest pageToken
|
|
59009
|
+
*/
|
|
59010
|
+
|
|
59011
|
+
/**
|
|
59012
|
+
* Constructs a new ListSectionsRequest.
|
|
59013
|
+
* @memberof google.chat.v1
|
|
59014
|
+
* @classdesc Represents a ListSectionsRequest.
|
|
59015
|
+
* @implements IListSectionsRequest
|
|
59016
|
+
* @constructor
|
|
59017
|
+
* @param {google.chat.v1.IListSectionsRequest=} [properties] Properties to set
|
|
59018
|
+
*/
|
|
59019
|
+
function ListSectionsRequest(properties) {
|
|
59020
|
+
if (properties)
|
|
59021
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59022
|
+
if (properties[keys[i]] != null)
|
|
59023
|
+
this[keys[i]] = properties[keys[i]];
|
|
59024
|
+
}
|
|
59025
|
+
|
|
59026
|
+
/**
|
|
59027
|
+
* ListSectionsRequest parent.
|
|
59028
|
+
* @member {string} parent
|
|
59029
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59030
|
+
* @instance
|
|
59031
|
+
*/
|
|
59032
|
+
ListSectionsRequest.prototype.parent = "";
|
|
59033
|
+
|
|
59034
|
+
/**
|
|
59035
|
+
* ListSectionsRequest pageSize.
|
|
59036
|
+
* @member {number} pageSize
|
|
59037
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59038
|
+
* @instance
|
|
59039
|
+
*/
|
|
59040
|
+
ListSectionsRequest.prototype.pageSize = 0;
|
|
59041
|
+
|
|
59042
|
+
/**
|
|
59043
|
+
* ListSectionsRequest pageToken.
|
|
59044
|
+
* @member {string} pageToken
|
|
59045
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59046
|
+
* @instance
|
|
59047
|
+
*/
|
|
59048
|
+
ListSectionsRequest.prototype.pageToken = "";
|
|
59049
|
+
|
|
59050
|
+
/**
|
|
59051
|
+
* Creates a new ListSectionsRequest instance using the specified properties.
|
|
59052
|
+
* @function create
|
|
59053
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59054
|
+
* @static
|
|
59055
|
+
* @param {google.chat.v1.IListSectionsRequest=} [properties] Properties to set
|
|
59056
|
+
* @returns {google.chat.v1.ListSectionsRequest} ListSectionsRequest instance
|
|
59057
|
+
*/
|
|
59058
|
+
ListSectionsRequest.create = function create(properties) {
|
|
59059
|
+
return new ListSectionsRequest(properties);
|
|
59060
|
+
};
|
|
59061
|
+
|
|
59062
|
+
/**
|
|
59063
|
+
* Encodes the specified ListSectionsRequest message. Does not implicitly {@link google.chat.v1.ListSectionsRequest.verify|verify} messages.
|
|
59064
|
+
* @function encode
|
|
59065
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59066
|
+
* @static
|
|
59067
|
+
* @param {google.chat.v1.IListSectionsRequest} message ListSectionsRequest message or plain object to encode
|
|
59068
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59069
|
+
* @returns {$protobuf.Writer} Writer
|
|
59070
|
+
*/
|
|
59071
|
+
ListSectionsRequest.encode = function encode(message, writer) {
|
|
59072
|
+
if (!writer)
|
|
59073
|
+
writer = $Writer.create();
|
|
59074
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
59075
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
59076
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
59077
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
|
|
59078
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
59079
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
|
|
59080
|
+
return writer;
|
|
59081
|
+
};
|
|
59082
|
+
|
|
59083
|
+
/**
|
|
59084
|
+
* Encodes the specified ListSectionsRequest message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionsRequest.verify|verify} messages.
|
|
59085
|
+
* @function encodeDelimited
|
|
59086
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59087
|
+
* @static
|
|
59088
|
+
* @param {google.chat.v1.IListSectionsRequest} message ListSectionsRequest message or plain object to encode
|
|
59089
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59090
|
+
* @returns {$protobuf.Writer} Writer
|
|
59091
|
+
*/
|
|
59092
|
+
ListSectionsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59093
|
+
return this.encode(message, writer).ldelim();
|
|
59094
|
+
};
|
|
59095
|
+
|
|
59096
|
+
/**
|
|
59097
|
+
* Decodes a ListSectionsRequest message from the specified reader or buffer.
|
|
59098
|
+
* @function decode
|
|
59099
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59100
|
+
* @static
|
|
59101
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59102
|
+
* @param {number} [length] Message length if known beforehand
|
|
59103
|
+
* @returns {google.chat.v1.ListSectionsRequest} ListSectionsRequest
|
|
59104
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59105
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59106
|
+
*/
|
|
59107
|
+
ListSectionsRequest.decode = function decode(reader, length, error) {
|
|
59108
|
+
if (!(reader instanceof $Reader))
|
|
59109
|
+
reader = $Reader.create(reader);
|
|
59110
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ListSectionsRequest();
|
|
59111
|
+
while (reader.pos < end) {
|
|
59112
|
+
var tag = reader.uint32();
|
|
59113
|
+
if (tag === error)
|
|
59114
|
+
break;
|
|
59115
|
+
switch (tag >>> 3) {
|
|
59116
|
+
case 1: {
|
|
59117
|
+
message.parent = reader.string();
|
|
59118
|
+
break;
|
|
59119
|
+
}
|
|
59120
|
+
case 2: {
|
|
59121
|
+
message.pageSize = reader.int32();
|
|
59122
|
+
break;
|
|
59123
|
+
}
|
|
59124
|
+
case 3: {
|
|
59125
|
+
message.pageToken = reader.string();
|
|
59126
|
+
break;
|
|
59127
|
+
}
|
|
59128
|
+
default:
|
|
59129
|
+
reader.skipType(tag & 7);
|
|
59130
|
+
break;
|
|
59131
|
+
}
|
|
59132
|
+
}
|
|
59133
|
+
return message;
|
|
59134
|
+
};
|
|
59135
|
+
|
|
59136
|
+
/**
|
|
59137
|
+
* Decodes a ListSectionsRequest message from the specified reader or buffer, length delimited.
|
|
59138
|
+
* @function decodeDelimited
|
|
59139
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59140
|
+
* @static
|
|
59141
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59142
|
+
* @returns {google.chat.v1.ListSectionsRequest} ListSectionsRequest
|
|
59143
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59144
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59145
|
+
*/
|
|
59146
|
+
ListSectionsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
59147
|
+
if (!(reader instanceof $Reader))
|
|
59148
|
+
reader = new $Reader(reader);
|
|
59149
|
+
return this.decode(reader, reader.uint32());
|
|
59150
|
+
};
|
|
59151
|
+
|
|
59152
|
+
/**
|
|
59153
|
+
* Verifies a ListSectionsRequest message.
|
|
59154
|
+
* @function verify
|
|
59155
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59156
|
+
* @static
|
|
59157
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59158
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59159
|
+
*/
|
|
59160
|
+
ListSectionsRequest.verify = function verify(message) {
|
|
59161
|
+
if (typeof message !== "object" || message === null)
|
|
59162
|
+
return "object expected";
|
|
59163
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
59164
|
+
if (!$util.isString(message.parent))
|
|
59165
|
+
return "parent: string expected";
|
|
59166
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
59167
|
+
if (!$util.isInteger(message.pageSize))
|
|
59168
|
+
return "pageSize: integer expected";
|
|
59169
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
59170
|
+
if (!$util.isString(message.pageToken))
|
|
59171
|
+
return "pageToken: string expected";
|
|
59172
|
+
return null;
|
|
59173
|
+
};
|
|
59174
|
+
|
|
59175
|
+
/**
|
|
59176
|
+
* Creates a ListSectionsRequest message from a plain object. Also converts values to their respective internal types.
|
|
59177
|
+
* @function fromObject
|
|
59178
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59179
|
+
* @static
|
|
59180
|
+
* @param {Object.<string,*>} object Plain object
|
|
59181
|
+
* @returns {google.chat.v1.ListSectionsRequest} ListSectionsRequest
|
|
59182
|
+
*/
|
|
59183
|
+
ListSectionsRequest.fromObject = function fromObject(object) {
|
|
59184
|
+
if (object instanceof $root.google.chat.v1.ListSectionsRequest)
|
|
59185
|
+
return object;
|
|
59186
|
+
var message = new $root.google.chat.v1.ListSectionsRequest();
|
|
59187
|
+
if (object.parent != null)
|
|
59188
|
+
message.parent = String(object.parent);
|
|
59189
|
+
if (object.pageSize != null)
|
|
59190
|
+
message.pageSize = object.pageSize | 0;
|
|
59191
|
+
if (object.pageToken != null)
|
|
59192
|
+
message.pageToken = String(object.pageToken);
|
|
59193
|
+
return message;
|
|
59194
|
+
};
|
|
59195
|
+
|
|
59196
|
+
/**
|
|
59197
|
+
* Creates a plain object from a ListSectionsRequest message. Also converts values to other types if specified.
|
|
59198
|
+
* @function toObject
|
|
59199
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59200
|
+
* @static
|
|
59201
|
+
* @param {google.chat.v1.ListSectionsRequest} message ListSectionsRequest
|
|
59202
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59203
|
+
* @returns {Object.<string,*>} Plain object
|
|
59204
|
+
*/
|
|
59205
|
+
ListSectionsRequest.toObject = function toObject(message, options) {
|
|
59206
|
+
if (!options)
|
|
59207
|
+
options = {};
|
|
59208
|
+
var object = {};
|
|
59209
|
+
if (options.defaults) {
|
|
59210
|
+
object.parent = "";
|
|
59211
|
+
object.pageSize = 0;
|
|
59212
|
+
object.pageToken = "";
|
|
59213
|
+
}
|
|
59214
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
59215
|
+
object.parent = message.parent;
|
|
59216
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
59217
|
+
object.pageSize = message.pageSize;
|
|
59218
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
59219
|
+
object.pageToken = message.pageToken;
|
|
59220
|
+
return object;
|
|
59221
|
+
};
|
|
59222
|
+
|
|
59223
|
+
/**
|
|
59224
|
+
* Converts this ListSectionsRequest to JSON.
|
|
59225
|
+
* @function toJSON
|
|
59226
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59227
|
+
* @instance
|
|
59228
|
+
* @returns {Object.<string,*>} JSON object
|
|
59229
|
+
*/
|
|
59230
|
+
ListSectionsRequest.prototype.toJSON = function toJSON() {
|
|
59231
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59232
|
+
};
|
|
59233
|
+
|
|
59234
|
+
/**
|
|
59235
|
+
* Gets the default type url for ListSectionsRequest
|
|
59236
|
+
* @function getTypeUrl
|
|
59237
|
+
* @memberof google.chat.v1.ListSectionsRequest
|
|
59238
|
+
* @static
|
|
59239
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59240
|
+
* @returns {string} The default type url
|
|
59241
|
+
*/
|
|
59242
|
+
ListSectionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59243
|
+
if (typeUrlPrefix === undefined) {
|
|
59244
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59245
|
+
}
|
|
59246
|
+
return typeUrlPrefix + "/google.chat.v1.ListSectionsRequest";
|
|
59247
|
+
};
|
|
59248
|
+
|
|
59249
|
+
return ListSectionsRequest;
|
|
59250
|
+
})();
|
|
59251
|
+
|
|
59252
|
+
v1.ListSectionsResponse = (function() {
|
|
59253
|
+
|
|
59254
|
+
/**
|
|
59255
|
+
* Properties of a ListSectionsResponse.
|
|
59256
|
+
* @memberof google.chat.v1
|
|
59257
|
+
* @interface IListSectionsResponse
|
|
59258
|
+
* @property {Array.<google.chat.v1.ISection>|null} [sections] ListSectionsResponse sections
|
|
59259
|
+
* @property {string|null} [nextPageToken] ListSectionsResponse nextPageToken
|
|
59260
|
+
*/
|
|
59261
|
+
|
|
59262
|
+
/**
|
|
59263
|
+
* Constructs a new ListSectionsResponse.
|
|
59264
|
+
* @memberof google.chat.v1
|
|
59265
|
+
* @classdesc Represents a ListSectionsResponse.
|
|
59266
|
+
* @implements IListSectionsResponse
|
|
59267
|
+
* @constructor
|
|
59268
|
+
* @param {google.chat.v1.IListSectionsResponse=} [properties] Properties to set
|
|
59269
|
+
*/
|
|
59270
|
+
function ListSectionsResponse(properties) {
|
|
59271
|
+
this.sections = [];
|
|
59272
|
+
if (properties)
|
|
59273
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59274
|
+
if (properties[keys[i]] != null)
|
|
59275
|
+
this[keys[i]] = properties[keys[i]];
|
|
59276
|
+
}
|
|
59277
|
+
|
|
59278
|
+
/**
|
|
59279
|
+
* ListSectionsResponse sections.
|
|
59280
|
+
* @member {Array.<google.chat.v1.ISection>} sections
|
|
59281
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59282
|
+
* @instance
|
|
59283
|
+
*/
|
|
59284
|
+
ListSectionsResponse.prototype.sections = $util.emptyArray;
|
|
59285
|
+
|
|
59286
|
+
/**
|
|
59287
|
+
* ListSectionsResponse nextPageToken.
|
|
59288
|
+
* @member {string} nextPageToken
|
|
59289
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59290
|
+
* @instance
|
|
59291
|
+
*/
|
|
59292
|
+
ListSectionsResponse.prototype.nextPageToken = "";
|
|
59293
|
+
|
|
59294
|
+
/**
|
|
59295
|
+
* Creates a new ListSectionsResponse instance using the specified properties.
|
|
59296
|
+
* @function create
|
|
59297
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59298
|
+
* @static
|
|
59299
|
+
* @param {google.chat.v1.IListSectionsResponse=} [properties] Properties to set
|
|
59300
|
+
* @returns {google.chat.v1.ListSectionsResponse} ListSectionsResponse instance
|
|
59301
|
+
*/
|
|
59302
|
+
ListSectionsResponse.create = function create(properties) {
|
|
59303
|
+
return new ListSectionsResponse(properties);
|
|
59304
|
+
};
|
|
59305
|
+
|
|
59306
|
+
/**
|
|
59307
|
+
* Encodes the specified ListSectionsResponse message. Does not implicitly {@link google.chat.v1.ListSectionsResponse.verify|verify} messages.
|
|
59308
|
+
* @function encode
|
|
59309
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59310
|
+
* @static
|
|
59311
|
+
* @param {google.chat.v1.IListSectionsResponse} message ListSectionsResponse message or plain object to encode
|
|
59312
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59313
|
+
* @returns {$protobuf.Writer} Writer
|
|
59314
|
+
*/
|
|
59315
|
+
ListSectionsResponse.encode = function encode(message, writer) {
|
|
59316
|
+
if (!writer)
|
|
59317
|
+
writer = $Writer.create();
|
|
59318
|
+
if (message.sections != null && message.sections.length)
|
|
59319
|
+
for (var i = 0; i < message.sections.length; ++i)
|
|
59320
|
+
$root.google.chat.v1.Section.encode(message.sections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59321
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
59322
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
59323
|
+
return writer;
|
|
59324
|
+
};
|
|
59325
|
+
|
|
59326
|
+
/**
|
|
59327
|
+
* Encodes the specified ListSectionsResponse message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionsResponse.verify|verify} messages.
|
|
59328
|
+
* @function encodeDelimited
|
|
59329
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59330
|
+
* @static
|
|
59331
|
+
* @param {google.chat.v1.IListSectionsResponse} message ListSectionsResponse message or plain object to encode
|
|
59332
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59333
|
+
* @returns {$protobuf.Writer} Writer
|
|
59334
|
+
*/
|
|
59335
|
+
ListSectionsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59336
|
+
return this.encode(message, writer).ldelim();
|
|
59337
|
+
};
|
|
59338
|
+
|
|
59339
|
+
/**
|
|
59340
|
+
* Decodes a ListSectionsResponse message from the specified reader or buffer.
|
|
59341
|
+
* @function decode
|
|
59342
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59343
|
+
* @static
|
|
59344
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59345
|
+
* @param {number} [length] Message length if known beforehand
|
|
59346
|
+
* @returns {google.chat.v1.ListSectionsResponse} ListSectionsResponse
|
|
59347
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59348
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59349
|
+
*/
|
|
59350
|
+
ListSectionsResponse.decode = function decode(reader, length, error) {
|
|
59351
|
+
if (!(reader instanceof $Reader))
|
|
59352
|
+
reader = $Reader.create(reader);
|
|
59353
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ListSectionsResponse();
|
|
59354
|
+
while (reader.pos < end) {
|
|
59355
|
+
var tag = reader.uint32();
|
|
59356
|
+
if (tag === error)
|
|
59357
|
+
break;
|
|
59358
|
+
switch (tag >>> 3) {
|
|
59359
|
+
case 1: {
|
|
59360
|
+
if (!(message.sections && message.sections.length))
|
|
59361
|
+
message.sections = [];
|
|
59362
|
+
message.sections.push($root.google.chat.v1.Section.decode(reader, reader.uint32()));
|
|
59363
|
+
break;
|
|
59364
|
+
}
|
|
59365
|
+
case 2: {
|
|
59366
|
+
message.nextPageToken = reader.string();
|
|
59367
|
+
break;
|
|
59368
|
+
}
|
|
59369
|
+
default:
|
|
59370
|
+
reader.skipType(tag & 7);
|
|
59371
|
+
break;
|
|
59372
|
+
}
|
|
59373
|
+
}
|
|
59374
|
+
return message;
|
|
59375
|
+
};
|
|
59376
|
+
|
|
59377
|
+
/**
|
|
59378
|
+
* Decodes a ListSectionsResponse message from the specified reader or buffer, length delimited.
|
|
59379
|
+
* @function decodeDelimited
|
|
59380
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59381
|
+
* @static
|
|
59382
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59383
|
+
* @returns {google.chat.v1.ListSectionsResponse} ListSectionsResponse
|
|
59384
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59385
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59386
|
+
*/
|
|
59387
|
+
ListSectionsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
59388
|
+
if (!(reader instanceof $Reader))
|
|
59389
|
+
reader = new $Reader(reader);
|
|
59390
|
+
return this.decode(reader, reader.uint32());
|
|
59391
|
+
};
|
|
59392
|
+
|
|
59393
|
+
/**
|
|
59394
|
+
* Verifies a ListSectionsResponse message.
|
|
59395
|
+
* @function verify
|
|
59396
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59397
|
+
* @static
|
|
59398
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59399
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59400
|
+
*/
|
|
59401
|
+
ListSectionsResponse.verify = function verify(message) {
|
|
59402
|
+
if (typeof message !== "object" || message === null)
|
|
59403
|
+
return "object expected";
|
|
59404
|
+
if (message.sections != null && message.hasOwnProperty("sections")) {
|
|
59405
|
+
if (!Array.isArray(message.sections))
|
|
59406
|
+
return "sections: array expected";
|
|
59407
|
+
for (var i = 0; i < message.sections.length; ++i) {
|
|
59408
|
+
var error = $root.google.chat.v1.Section.verify(message.sections[i]);
|
|
59409
|
+
if (error)
|
|
59410
|
+
return "sections." + error;
|
|
59411
|
+
}
|
|
59412
|
+
}
|
|
59413
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
59414
|
+
if (!$util.isString(message.nextPageToken))
|
|
59415
|
+
return "nextPageToken: string expected";
|
|
59416
|
+
return null;
|
|
59417
|
+
};
|
|
59418
|
+
|
|
59419
|
+
/**
|
|
59420
|
+
* Creates a ListSectionsResponse message from a plain object. Also converts values to their respective internal types.
|
|
59421
|
+
* @function fromObject
|
|
59422
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59423
|
+
* @static
|
|
59424
|
+
* @param {Object.<string,*>} object Plain object
|
|
59425
|
+
* @returns {google.chat.v1.ListSectionsResponse} ListSectionsResponse
|
|
59426
|
+
*/
|
|
59427
|
+
ListSectionsResponse.fromObject = function fromObject(object) {
|
|
59428
|
+
if (object instanceof $root.google.chat.v1.ListSectionsResponse)
|
|
59429
|
+
return object;
|
|
59430
|
+
var message = new $root.google.chat.v1.ListSectionsResponse();
|
|
59431
|
+
if (object.sections) {
|
|
59432
|
+
if (!Array.isArray(object.sections))
|
|
59433
|
+
throw TypeError(".google.chat.v1.ListSectionsResponse.sections: array expected");
|
|
59434
|
+
message.sections = [];
|
|
59435
|
+
for (var i = 0; i < object.sections.length; ++i) {
|
|
59436
|
+
if (typeof object.sections[i] !== "object")
|
|
59437
|
+
throw TypeError(".google.chat.v1.ListSectionsResponse.sections: object expected");
|
|
59438
|
+
message.sections[i] = $root.google.chat.v1.Section.fromObject(object.sections[i]);
|
|
59439
|
+
}
|
|
59440
|
+
}
|
|
59441
|
+
if (object.nextPageToken != null)
|
|
59442
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
59443
|
+
return message;
|
|
59444
|
+
};
|
|
59445
|
+
|
|
59446
|
+
/**
|
|
59447
|
+
* Creates a plain object from a ListSectionsResponse message. Also converts values to other types if specified.
|
|
59448
|
+
* @function toObject
|
|
59449
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59450
|
+
* @static
|
|
59451
|
+
* @param {google.chat.v1.ListSectionsResponse} message ListSectionsResponse
|
|
59452
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59453
|
+
* @returns {Object.<string,*>} Plain object
|
|
59454
|
+
*/
|
|
59455
|
+
ListSectionsResponse.toObject = function toObject(message, options) {
|
|
59456
|
+
if (!options)
|
|
59457
|
+
options = {};
|
|
59458
|
+
var object = {};
|
|
59459
|
+
if (options.arrays || options.defaults)
|
|
59460
|
+
object.sections = [];
|
|
59461
|
+
if (options.defaults)
|
|
59462
|
+
object.nextPageToken = "";
|
|
59463
|
+
if (message.sections && message.sections.length) {
|
|
59464
|
+
object.sections = [];
|
|
59465
|
+
for (var j = 0; j < message.sections.length; ++j)
|
|
59466
|
+
object.sections[j] = $root.google.chat.v1.Section.toObject(message.sections[j], options);
|
|
59467
|
+
}
|
|
59468
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
59469
|
+
object.nextPageToken = message.nextPageToken;
|
|
59470
|
+
return object;
|
|
59471
|
+
};
|
|
59472
|
+
|
|
59473
|
+
/**
|
|
59474
|
+
* Converts this ListSectionsResponse to JSON.
|
|
59475
|
+
* @function toJSON
|
|
59476
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59477
|
+
* @instance
|
|
59478
|
+
* @returns {Object.<string,*>} JSON object
|
|
59479
|
+
*/
|
|
59480
|
+
ListSectionsResponse.prototype.toJSON = function toJSON() {
|
|
59481
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59482
|
+
};
|
|
59483
|
+
|
|
59484
|
+
/**
|
|
59485
|
+
* Gets the default type url for ListSectionsResponse
|
|
59486
|
+
* @function getTypeUrl
|
|
59487
|
+
* @memberof google.chat.v1.ListSectionsResponse
|
|
59488
|
+
* @static
|
|
59489
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59490
|
+
* @returns {string} The default type url
|
|
59491
|
+
*/
|
|
59492
|
+
ListSectionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59493
|
+
if (typeUrlPrefix === undefined) {
|
|
59494
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59495
|
+
}
|
|
59496
|
+
return typeUrlPrefix + "/google.chat.v1.ListSectionsResponse";
|
|
59497
|
+
};
|
|
59498
|
+
|
|
59499
|
+
return ListSectionsResponse;
|
|
59500
|
+
})();
|
|
59501
|
+
|
|
59502
|
+
v1.PositionSectionRequest = (function() {
|
|
59503
|
+
|
|
59504
|
+
/**
|
|
59505
|
+
* Properties of a PositionSectionRequest.
|
|
59506
|
+
* @memberof google.chat.v1
|
|
59507
|
+
* @interface IPositionSectionRequest
|
|
59508
|
+
* @property {string|null} [name] PositionSectionRequest name
|
|
59509
|
+
* @property {number|null} [sortOrder] PositionSectionRequest sortOrder
|
|
59510
|
+
* @property {google.chat.v1.PositionSectionRequest.Position|null} [relativePosition] PositionSectionRequest relativePosition
|
|
59511
|
+
*/
|
|
59512
|
+
|
|
59513
|
+
/**
|
|
59514
|
+
* Constructs a new PositionSectionRequest.
|
|
59515
|
+
* @memberof google.chat.v1
|
|
59516
|
+
* @classdesc Represents a PositionSectionRequest.
|
|
59517
|
+
* @implements IPositionSectionRequest
|
|
59518
|
+
* @constructor
|
|
59519
|
+
* @param {google.chat.v1.IPositionSectionRequest=} [properties] Properties to set
|
|
59520
|
+
*/
|
|
59521
|
+
function PositionSectionRequest(properties) {
|
|
59522
|
+
if (properties)
|
|
59523
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59524
|
+
if (properties[keys[i]] != null)
|
|
59525
|
+
this[keys[i]] = properties[keys[i]];
|
|
59526
|
+
}
|
|
59527
|
+
|
|
59528
|
+
/**
|
|
59529
|
+
* PositionSectionRequest name.
|
|
59530
|
+
* @member {string} name
|
|
59531
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59532
|
+
* @instance
|
|
59533
|
+
*/
|
|
59534
|
+
PositionSectionRequest.prototype.name = "";
|
|
59535
|
+
|
|
59536
|
+
/**
|
|
59537
|
+
* PositionSectionRequest sortOrder.
|
|
59538
|
+
* @member {number|null|undefined} sortOrder
|
|
59539
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59540
|
+
* @instance
|
|
59541
|
+
*/
|
|
59542
|
+
PositionSectionRequest.prototype.sortOrder = null;
|
|
59543
|
+
|
|
59544
|
+
/**
|
|
59545
|
+
* PositionSectionRequest relativePosition.
|
|
59546
|
+
* @member {google.chat.v1.PositionSectionRequest.Position|null|undefined} relativePosition
|
|
59547
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59548
|
+
* @instance
|
|
59549
|
+
*/
|
|
59550
|
+
PositionSectionRequest.prototype.relativePosition = null;
|
|
59551
|
+
|
|
59552
|
+
// OneOf field names bound to virtual getters and setters
|
|
59553
|
+
var $oneOfFields;
|
|
59554
|
+
|
|
59555
|
+
/**
|
|
59556
|
+
* PositionSectionRequest position.
|
|
59557
|
+
* @member {"sortOrder"|"relativePosition"|undefined} position
|
|
59558
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59559
|
+
* @instance
|
|
59560
|
+
*/
|
|
59561
|
+
Object.defineProperty(PositionSectionRequest.prototype, "position", {
|
|
59562
|
+
get: $util.oneOfGetter($oneOfFields = ["sortOrder", "relativePosition"]),
|
|
59563
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59564
|
+
});
|
|
59565
|
+
|
|
59566
|
+
/**
|
|
59567
|
+
* Creates a new PositionSectionRequest instance using the specified properties.
|
|
59568
|
+
* @function create
|
|
59569
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59570
|
+
* @static
|
|
59571
|
+
* @param {google.chat.v1.IPositionSectionRequest=} [properties] Properties to set
|
|
59572
|
+
* @returns {google.chat.v1.PositionSectionRequest} PositionSectionRequest instance
|
|
59573
|
+
*/
|
|
59574
|
+
PositionSectionRequest.create = function create(properties) {
|
|
59575
|
+
return new PositionSectionRequest(properties);
|
|
59576
|
+
};
|
|
59577
|
+
|
|
59578
|
+
/**
|
|
59579
|
+
* Encodes the specified PositionSectionRequest message. Does not implicitly {@link google.chat.v1.PositionSectionRequest.verify|verify} messages.
|
|
59580
|
+
* @function encode
|
|
59581
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59582
|
+
* @static
|
|
59583
|
+
* @param {google.chat.v1.IPositionSectionRequest} message PositionSectionRequest message or plain object to encode
|
|
59584
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59585
|
+
* @returns {$protobuf.Writer} Writer
|
|
59586
|
+
*/
|
|
59587
|
+
PositionSectionRequest.encode = function encode(message, writer) {
|
|
59588
|
+
if (!writer)
|
|
59589
|
+
writer = $Writer.create();
|
|
59590
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
59591
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
59592
|
+
if (message.sortOrder != null && Object.hasOwnProperty.call(message, "sortOrder"))
|
|
59593
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sortOrder);
|
|
59594
|
+
if (message.relativePosition != null && Object.hasOwnProperty.call(message, "relativePosition"))
|
|
59595
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.relativePosition);
|
|
59596
|
+
return writer;
|
|
59597
|
+
};
|
|
59598
|
+
|
|
59599
|
+
/**
|
|
59600
|
+
* Encodes the specified PositionSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.PositionSectionRequest.verify|verify} messages.
|
|
59601
|
+
* @function encodeDelimited
|
|
59602
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59603
|
+
* @static
|
|
59604
|
+
* @param {google.chat.v1.IPositionSectionRequest} message PositionSectionRequest message or plain object to encode
|
|
59605
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59606
|
+
* @returns {$protobuf.Writer} Writer
|
|
59607
|
+
*/
|
|
59608
|
+
PositionSectionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59609
|
+
return this.encode(message, writer).ldelim();
|
|
59610
|
+
};
|
|
59611
|
+
|
|
59612
|
+
/**
|
|
59613
|
+
* Decodes a PositionSectionRequest message from the specified reader or buffer.
|
|
59614
|
+
* @function decode
|
|
59615
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59616
|
+
* @static
|
|
59617
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59618
|
+
* @param {number} [length] Message length if known beforehand
|
|
59619
|
+
* @returns {google.chat.v1.PositionSectionRequest} PositionSectionRequest
|
|
59620
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59621
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59622
|
+
*/
|
|
59623
|
+
PositionSectionRequest.decode = function decode(reader, length, error) {
|
|
59624
|
+
if (!(reader instanceof $Reader))
|
|
59625
|
+
reader = $Reader.create(reader);
|
|
59626
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.PositionSectionRequest();
|
|
59627
|
+
while (reader.pos < end) {
|
|
59628
|
+
var tag = reader.uint32();
|
|
59629
|
+
if (tag === error)
|
|
59630
|
+
break;
|
|
59631
|
+
switch (tag >>> 3) {
|
|
59632
|
+
case 1: {
|
|
59633
|
+
message.name = reader.string();
|
|
59634
|
+
break;
|
|
59635
|
+
}
|
|
59636
|
+
case 2: {
|
|
59637
|
+
message.sortOrder = reader.int32();
|
|
59638
|
+
break;
|
|
59639
|
+
}
|
|
59640
|
+
case 3: {
|
|
59641
|
+
message.relativePosition = reader.int32();
|
|
59642
|
+
break;
|
|
59643
|
+
}
|
|
59644
|
+
default:
|
|
59645
|
+
reader.skipType(tag & 7);
|
|
59646
|
+
break;
|
|
59647
|
+
}
|
|
59648
|
+
}
|
|
59649
|
+
return message;
|
|
59650
|
+
};
|
|
59651
|
+
|
|
59652
|
+
/**
|
|
59653
|
+
* Decodes a PositionSectionRequest message from the specified reader or buffer, length delimited.
|
|
59654
|
+
* @function decodeDelimited
|
|
59655
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59656
|
+
* @static
|
|
59657
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59658
|
+
* @returns {google.chat.v1.PositionSectionRequest} PositionSectionRequest
|
|
59659
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59660
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59661
|
+
*/
|
|
59662
|
+
PositionSectionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
59663
|
+
if (!(reader instanceof $Reader))
|
|
59664
|
+
reader = new $Reader(reader);
|
|
59665
|
+
return this.decode(reader, reader.uint32());
|
|
59666
|
+
};
|
|
59667
|
+
|
|
59668
|
+
/**
|
|
59669
|
+
* Verifies a PositionSectionRequest message.
|
|
59670
|
+
* @function verify
|
|
59671
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59672
|
+
* @static
|
|
59673
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59674
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59675
|
+
*/
|
|
59676
|
+
PositionSectionRequest.verify = function verify(message) {
|
|
59677
|
+
if (typeof message !== "object" || message === null)
|
|
59678
|
+
return "object expected";
|
|
59679
|
+
var properties = {};
|
|
59680
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
59681
|
+
if (!$util.isString(message.name))
|
|
59682
|
+
return "name: string expected";
|
|
59683
|
+
if (message.sortOrder != null && message.hasOwnProperty("sortOrder")) {
|
|
59684
|
+
properties.position = 1;
|
|
59685
|
+
if (!$util.isInteger(message.sortOrder))
|
|
59686
|
+
return "sortOrder: integer expected";
|
|
59687
|
+
}
|
|
59688
|
+
if (message.relativePosition != null && message.hasOwnProperty("relativePosition")) {
|
|
59689
|
+
if (properties.position === 1)
|
|
59690
|
+
return "position: multiple values";
|
|
59691
|
+
properties.position = 1;
|
|
59692
|
+
switch (message.relativePosition) {
|
|
59693
|
+
default:
|
|
59694
|
+
return "relativePosition: enum value expected";
|
|
59695
|
+
case 0:
|
|
59696
|
+
case 1:
|
|
59697
|
+
case 2:
|
|
59698
|
+
break;
|
|
59699
|
+
}
|
|
59700
|
+
}
|
|
59701
|
+
return null;
|
|
59702
|
+
};
|
|
59703
|
+
|
|
59704
|
+
/**
|
|
59705
|
+
* Creates a PositionSectionRequest message from a plain object. Also converts values to their respective internal types.
|
|
59706
|
+
* @function fromObject
|
|
59707
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59708
|
+
* @static
|
|
59709
|
+
* @param {Object.<string,*>} object Plain object
|
|
59710
|
+
* @returns {google.chat.v1.PositionSectionRequest} PositionSectionRequest
|
|
59711
|
+
*/
|
|
59712
|
+
PositionSectionRequest.fromObject = function fromObject(object) {
|
|
59713
|
+
if (object instanceof $root.google.chat.v1.PositionSectionRequest)
|
|
59714
|
+
return object;
|
|
59715
|
+
var message = new $root.google.chat.v1.PositionSectionRequest();
|
|
59716
|
+
if (object.name != null)
|
|
59717
|
+
message.name = String(object.name);
|
|
59718
|
+
if (object.sortOrder != null)
|
|
59719
|
+
message.sortOrder = object.sortOrder | 0;
|
|
59720
|
+
switch (object.relativePosition) {
|
|
59721
|
+
default:
|
|
59722
|
+
if (typeof object.relativePosition === "number") {
|
|
59723
|
+
message.relativePosition = object.relativePosition;
|
|
59724
|
+
break;
|
|
59725
|
+
}
|
|
59726
|
+
break;
|
|
59727
|
+
case "POSITION_UNSPECIFIED":
|
|
59728
|
+
case 0:
|
|
59729
|
+
message.relativePosition = 0;
|
|
59730
|
+
break;
|
|
59731
|
+
case "START":
|
|
59732
|
+
case 1:
|
|
59733
|
+
message.relativePosition = 1;
|
|
59734
|
+
break;
|
|
59735
|
+
case "END":
|
|
59736
|
+
case 2:
|
|
59737
|
+
message.relativePosition = 2;
|
|
59738
|
+
break;
|
|
59739
|
+
}
|
|
59740
|
+
return message;
|
|
59741
|
+
};
|
|
59742
|
+
|
|
59743
|
+
/**
|
|
59744
|
+
* Creates a plain object from a PositionSectionRequest message. Also converts values to other types if specified.
|
|
59745
|
+
* @function toObject
|
|
59746
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59747
|
+
* @static
|
|
59748
|
+
* @param {google.chat.v1.PositionSectionRequest} message PositionSectionRequest
|
|
59749
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59750
|
+
* @returns {Object.<string,*>} Plain object
|
|
59751
|
+
*/
|
|
59752
|
+
PositionSectionRequest.toObject = function toObject(message, options) {
|
|
59753
|
+
if (!options)
|
|
59754
|
+
options = {};
|
|
59755
|
+
var object = {};
|
|
59756
|
+
if (options.defaults)
|
|
59757
|
+
object.name = "";
|
|
59758
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
59759
|
+
object.name = message.name;
|
|
59760
|
+
if (message.sortOrder != null && message.hasOwnProperty("sortOrder")) {
|
|
59761
|
+
object.sortOrder = message.sortOrder;
|
|
59762
|
+
if (options.oneofs)
|
|
59763
|
+
object.position = "sortOrder";
|
|
59764
|
+
}
|
|
59765
|
+
if (message.relativePosition != null && message.hasOwnProperty("relativePosition")) {
|
|
59766
|
+
object.relativePosition = options.enums === String ? $root.google.chat.v1.PositionSectionRequest.Position[message.relativePosition] === undefined ? message.relativePosition : $root.google.chat.v1.PositionSectionRequest.Position[message.relativePosition] : message.relativePosition;
|
|
59767
|
+
if (options.oneofs)
|
|
59768
|
+
object.position = "relativePosition";
|
|
59769
|
+
}
|
|
59770
|
+
return object;
|
|
59771
|
+
};
|
|
59772
|
+
|
|
59773
|
+
/**
|
|
59774
|
+
* Converts this PositionSectionRequest to JSON.
|
|
59775
|
+
* @function toJSON
|
|
59776
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59777
|
+
* @instance
|
|
59778
|
+
* @returns {Object.<string,*>} JSON object
|
|
59779
|
+
*/
|
|
59780
|
+
PositionSectionRequest.prototype.toJSON = function toJSON() {
|
|
59781
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59782
|
+
};
|
|
59783
|
+
|
|
59784
|
+
/**
|
|
59785
|
+
* Gets the default type url for PositionSectionRequest
|
|
59786
|
+
* @function getTypeUrl
|
|
59787
|
+
* @memberof google.chat.v1.PositionSectionRequest
|
|
59788
|
+
* @static
|
|
59789
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59790
|
+
* @returns {string} The default type url
|
|
59791
|
+
*/
|
|
59792
|
+
PositionSectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59793
|
+
if (typeUrlPrefix === undefined) {
|
|
59794
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59795
|
+
}
|
|
59796
|
+
return typeUrlPrefix + "/google.chat.v1.PositionSectionRequest";
|
|
59797
|
+
};
|
|
59798
|
+
|
|
59799
|
+
/**
|
|
59800
|
+
* Position enum.
|
|
59801
|
+
* @name google.chat.v1.PositionSectionRequest.Position
|
|
59802
|
+
* @enum {number}
|
|
59803
|
+
* @property {number} POSITION_UNSPECIFIED=0 POSITION_UNSPECIFIED value
|
|
59804
|
+
* @property {number} START=1 START value
|
|
59805
|
+
* @property {number} END=2 END value
|
|
59806
|
+
*/
|
|
59807
|
+
PositionSectionRequest.Position = (function() {
|
|
59808
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
59809
|
+
values[valuesById[0] = "POSITION_UNSPECIFIED"] = 0;
|
|
59810
|
+
values[valuesById[1] = "START"] = 1;
|
|
59811
|
+
values[valuesById[2] = "END"] = 2;
|
|
59812
|
+
return values;
|
|
59813
|
+
})();
|
|
59814
|
+
|
|
59815
|
+
return PositionSectionRequest;
|
|
59816
|
+
})();
|
|
59817
|
+
|
|
59818
|
+
v1.PositionSectionResponse = (function() {
|
|
59819
|
+
|
|
59820
|
+
/**
|
|
59821
|
+
* Properties of a PositionSectionResponse.
|
|
59822
|
+
* @memberof google.chat.v1
|
|
59823
|
+
* @interface IPositionSectionResponse
|
|
59824
|
+
* @property {google.chat.v1.ISection|null} [section] PositionSectionResponse section
|
|
59825
|
+
*/
|
|
59826
|
+
|
|
59827
|
+
/**
|
|
59828
|
+
* Constructs a new PositionSectionResponse.
|
|
59829
|
+
* @memberof google.chat.v1
|
|
59830
|
+
* @classdesc Represents a PositionSectionResponse.
|
|
59831
|
+
* @implements IPositionSectionResponse
|
|
59832
|
+
* @constructor
|
|
59833
|
+
* @param {google.chat.v1.IPositionSectionResponse=} [properties] Properties to set
|
|
59834
|
+
*/
|
|
59835
|
+
function PositionSectionResponse(properties) {
|
|
59836
|
+
if (properties)
|
|
59837
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59838
|
+
if (properties[keys[i]] != null)
|
|
59839
|
+
this[keys[i]] = properties[keys[i]];
|
|
59840
|
+
}
|
|
59841
|
+
|
|
59842
|
+
/**
|
|
59843
|
+
* PositionSectionResponse section.
|
|
59844
|
+
* @member {google.chat.v1.ISection|null|undefined} section
|
|
59845
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59846
|
+
* @instance
|
|
59847
|
+
*/
|
|
59848
|
+
PositionSectionResponse.prototype.section = null;
|
|
59849
|
+
|
|
59850
|
+
/**
|
|
59851
|
+
* Creates a new PositionSectionResponse instance using the specified properties.
|
|
59852
|
+
* @function create
|
|
59853
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59854
|
+
* @static
|
|
59855
|
+
* @param {google.chat.v1.IPositionSectionResponse=} [properties] Properties to set
|
|
59856
|
+
* @returns {google.chat.v1.PositionSectionResponse} PositionSectionResponse instance
|
|
59857
|
+
*/
|
|
59858
|
+
PositionSectionResponse.create = function create(properties) {
|
|
59859
|
+
return new PositionSectionResponse(properties);
|
|
59860
|
+
};
|
|
59861
|
+
|
|
59862
|
+
/**
|
|
59863
|
+
* Encodes the specified PositionSectionResponse message. Does not implicitly {@link google.chat.v1.PositionSectionResponse.verify|verify} messages.
|
|
59864
|
+
* @function encode
|
|
59865
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59866
|
+
* @static
|
|
59867
|
+
* @param {google.chat.v1.IPositionSectionResponse} message PositionSectionResponse message or plain object to encode
|
|
59868
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59869
|
+
* @returns {$protobuf.Writer} Writer
|
|
59870
|
+
*/
|
|
59871
|
+
PositionSectionResponse.encode = function encode(message, writer) {
|
|
59872
|
+
if (!writer)
|
|
59873
|
+
writer = $Writer.create();
|
|
59874
|
+
if (message.section != null && Object.hasOwnProperty.call(message, "section"))
|
|
59875
|
+
$root.google.chat.v1.Section.encode(message.section, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59876
|
+
return writer;
|
|
59877
|
+
};
|
|
59878
|
+
|
|
59879
|
+
/**
|
|
59880
|
+
* Encodes the specified PositionSectionResponse message, length delimited. Does not implicitly {@link google.chat.v1.PositionSectionResponse.verify|verify} messages.
|
|
59881
|
+
* @function encodeDelimited
|
|
59882
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59883
|
+
* @static
|
|
59884
|
+
* @param {google.chat.v1.IPositionSectionResponse} message PositionSectionResponse message or plain object to encode
|
|
59885
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59886
|
+
* @returns {$protobuf.Writer} Writer
|
|
59887
|
+
*/
|
|
59888
|
+
PositionSectionResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59889
|
+
return this.encode(message, writer).ldelim();
|
|
59890
|
+
};
|
|
59891
|
+
|
|
59892
|
+
/**
|
|
59893
|
+
* Decodes a PositionSectionResponse message from the specified reader or buffer.
|
|
59894
|
+
* @function decode
|
|
59895
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59896
|
+
* @static
|
|
59897
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59898
|
+
* @param {number} [length] Message length if known beforehand
|
|
59899
|
+
* @returns {google.chat.v1.PositionSectionResponse} PositionSectionResponse
|
|
59900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59902
|
+
*/
|
|
59903
|
+
PositionSectionResponse.decode = function decode(reader, length, error) {
|
|
59904
|
+
if (!(reader instanceof $Reader))
|
|
59905
|
+
reader = $Reader.create(reader);
|
|
59906
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.PositionSectionResponse();
|
|
59907
|
+
while (reader.pos < end) {
|
|
59908
|
+
var tag = reader.uint32();
|
|
59909
|
+
if (tag === error)
|
|
59910
|
+
break;
|
|
59911
|
+
switch (tag >>> 3) {
|
|
59912
|
+
case 1: {
|
|
59913
|
+
message.section = $root.google.chat.v1.Section.decode(reader, reader.uint32());
|
|
59914
|
+
break;
|
|
59915
|
+
}
|
|
59916
|
+
default:
|
|
59917
|
+
reader.skipType(tag & 7);
|
|
59918
|
+
break;
|
|
59919
|
+
}
|
|
59920
|
+
}
|
|
59921
|
+
return message;
|
|
59922
|
+
};
|
|
59923
|
+
|
|
59924
|
+
/**
|
|
59925
|
+
* Decodes a PositionSectionResponse message from the specified reader or buffer, length delimited.
|
|
59926
|
+
* @function decodeDelimited
|
|
59927
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59928
|
+
* @static
|
|
59929
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59930
|
+
* @returns {google.chat.v1.PositionSectionResponse} PositionSectionResponse
|
|
59931
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59932
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59933
|
+
*/
|
|
59934
|
+
PositionSectionResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
59935
|
+
if (!(reader instanceof $Reader))
|
|
59936
|
+
reader = new $Reader(reader);
|
|
59937
|
+
return this.decode(reader, reader.uint32());
|
|
59938
|
+
};
|
|
59939
|
+
|
|
59940
|
+
/**
|
|
59941
|
+
* Verifies a PositionSectionResponse message.
|
|
59942
|
+
* @function verify
|
|
59943
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59944
|
+
* @static
|
|
59945
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59946
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59947
|
+
*/
|
|
59948
|
+
PositionSectionResponse.verify = function verify(message) {
|
|
59949
|
+
if (typeof message !== "object" || message === null)
|
|
59950
|
+
return "object expected";
|
|
59951
|
+
if (message.section != null && message.hasOwnProperty("section")) {
|
|
59952
|
+
var error = $root.google.chat.v1.Section.verify(message.section);
|
|
59953
|
+
if (error)
|
|
59954
|
+
return "section." + error;
|
|
59955
|
+
}
|
|
59956
|
+
return null;
|
|
59957
|
+
};
|
|
59958
|
+
|
|
59959
|
+
/**
|
|
59960
|
+
* Creates a PositionSectionResponse message from a plain object. Also converts values to their respective internal types.
|
|
59961
|
+
* @function fromObject
|
|
59962
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59963
|
+
* @static
|
|
59964
|
+
* @param {Object.<string,*>} object Plain object
|
|
59965
|
+
* @returns {google.chat.v1.PositionSectionResponse} PositionSectionResponse
|
|
59966
|
+
*/
|
|
59967
|
+
PositionSectionResponse.fromObject = function fromObject(object) {
|
|
59968
|
+
if (object instanceof $root.google.chat.v1.PositionSectionResponse)
|
|
59969
|
+
return object;
|
|
59970
|
+
var message = new $root.google.chat.v1.PositionSectionResponse();
|
|
59971
|
+
if (object.section != null) {
|
|
59972
|
+
if (typeof object.section !== "object")
|
|
59973
|
+
throw TypeError(".google.chat.v1.PositionSectionResponse.section: object expected");
|
|
59974
|
+
message.section = $root.google.chat.v1.Section.fromObject(object.section);
|
|
59975
|
+
}
|
|
59976
|
+
return message;
|
|
59977
|
+
};
|
|
59978
|
+
|
|
59979
|
+
/**
|
|
59980
|
+
* Creates a plain object from a PositionSectionResponse message. Also converts values to other types if specified.
|
|
59981
|
+
* @function toObject
|
|
59982
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
59983
|
+
* @static
|
|
59984
|
+
* @param {google.chat.v1.PositionSectionResponse} message PositionSectionResponse
|
|
59985
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59986
|
+
* @returns {Object.<string,*>} Plain object
|
|
59987
|
+
*/
|
|
59988
|
+
PositionSectionResponse.toObject = function toObject(message, options) {
|
|
59989
|
+
if (!options)
|
|
59990
|
+
options = {};
|
|
59991
|
+
var object = {};
|
|
59992
|
+
if (options.defaults)
|
|
59993
|
+
object.section = null;
|
|
59994
|
+
if (message.section != null && message.hasOwnProperty("section"))
|
|
59995
|
+
object.section = $root.google.chat.v1.Section.toObject(message.section, options);
|
|
59996
|
+
return object;
|
|
59997
|
+
};
|
|
59998
|
+
|
|
59999
|
+
/**
|
|
60000
|
+
* Converts this PositionSectionResponse to JSON.
|
|
60001
|
+
* @function toJSON
|
|
60002
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
60003
|
+
* @instance
|
|
60004
|
+
* @returns {Object.<string,*>} JSON object
|
|
60005
|
+
*/
|
|
60006
|
+
PositionSectionResponse.prototype.toJSON = function toJSON() {
|
|
60007
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60008
|
+
};
|
|
60009
|
+
|
|
60010
|
+
/**
|
|
60011
|
+
* Gets the default type url for PositionSectionResponse
|
|
60012
|
+
* @function getTypeUrl
|
|
60013
|
+
* @memberof google.chat.v1.PositionSectionResponse
|
|
60014
|
+
* @static
|
|
60015
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60016
|
+
* @returns {string} The default type url
|
|
60017
|
+
*/
|
|
60018
|
+
PositionSectionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60019
|
+
if (typeUrlPrefix === undefined) {
|
|
60020
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60021
|
+
}
|
|
60022
|
+
return typeUrlPrefix + "/google.chat.v1.PositionSectionResponse";
|
|
60023
|
+
};
|
|
60024
|
+
|
|
60025
|
+
return PositionSectionResponse;
|
|
60026
|
+
})();
|
|
60027
|
+
|
|
60028
|
+
v1.ListSectionItemsRequest = (function() {
|
|
60029
|
+
|
|
60030
|
+
/**
|
|
60031
|
+
* Properties of a ListSectionItemsRequest.
|
|
60032
|
+
* @memberof google.chat.v1
|
|
60033
|
+
* @interface IListSectionItemsRequest
|
|
60034
|
+
* @property {string|null} [parent] ListSectionItemsRequest parent
|
|
60035
|
+
* @property {number|null} [pageSize] ListSectionItemsRequest pageSize
|
|
60036
|
+
* @property {string|null} [pageToken] ListSectionItemsRequest pageToken
|
|
60037
|
+
* @property {string|null} [filter] ListSectionItemsRequest filter
|
|
60038
|
+
*/
|
|
60039
|
+
|
|
60040
|
+
/**
|
|
60041
|
+
* Constructs a new ListSectionItemsRequest.
|
|
60042
|
+
* @memberof google.chat.v1
|
|
60043
|
+
* @classdesc Represents a ListSectionItemsRequest.
|
|
60044
|
+
* @implements IListSectionItemsRequest
|
|
60045
|
+
* @constructor
|
|
60046
|
+
* @param {google.chat.v1.IListSectionItemsRequest=} [properties] Properties to set
|
|
60047
|
+
*/
|
|
60048
|
+
function ListSectionItemsRequest(properties) {
|
|
60049
|
+
if (properties)
|
|
60050
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60051
|
+
if (properties[keys[i]] != null)
|
|
60052
|
+
this[keys[i]] = properties[keys[i]];
|
|
60053
|
+
}
|
|
60054
|
+
|
|
60055
|
+
/**
|
|
60056
|
+
* ListSectionItemsRequest parent.
|
|
60057
|
+
* @member {string} parent
|
|
60058
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60059
|
+
* @instance
|
|
60060
|
+
*/
|
|
60061
|
+
ListSectionItemsRequest.prototype.parent = "";
|
|
60062
|
+
|
|
60063
|
+
/**
|
|
60064
|
+
* ListSectionItemsRequest pageSize.
|
|
60065
|
+
* @member {number} pageSize
|
|
60066
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60067
|
+
* @instance
|
|
60068
|
+
*/
|
|
60069
|
+
ListSectionItemsRequest.prototype.pageSize = 0;
|
|
60070
|
+
|
|
60071
|
+
/**
|
|
60072
|
+
* ListSectionItemsRequest pageToken.
|
|
60073
|
+
* @member {string} pageToken
|
|
60074
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60075
|
+
* @instance
|
|
60076
|
+
*/
|
|
60077
|
+
ListSectionItemsRequest.prototype.pageToken = "";
|
|
60078
|
+
|
|
60079
|
+
/**
|
|
60080
|
+
* ListSectionItemsRequest filter.
|
|
60081
|
+
* @member {string} filter
|
|
60082
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60083
|
+
* @instance
|
|
60084
|
+
*/
|
|
60085
|
+
ListSectionItemsRequest.prototype.filter = "";
|
|
60086
|
+
|
|
60087
|
+
/**
|
|
60088
|
+
* Creates a new ListSectionItemsRequest instance using the specified properties.
|
|
60089
|
+
* @function create
|
|
60090
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60091
|
+
* @static
|
|
60092
|
+
* @param {google.chat.v1.IListSectionItemsRequest=} [properties] Properties to set
|
|
60093
|
+
* @returns {google.chat.v1.ListSectionItemsRequest} ListSectionItemsRequest instance
|
|
60094
|
+
*/
|
|
60095
|
+
ListSectionItemsRequest.create = function create(properties) {
|
|
60096
|
+
return new ListSectionItemsRequest(properties);
|
|
60097
|
+
};
|
|
60098
|
+
|
|
60099
|
+
/**
|
|
60100
|
+
* Encodes the specified ListSectionItemsRequest message. Does not implicitly {@link google.chat.v1.ListSectionItemsRequest.verify|verify} messages.
|
|
60101
|
+
* @function encode
|
|
60102
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60103
|
+
* @static
|
|
60104
|
+
* @param {google.chat.v1.IListSectionItemsRequest} message ListSectionItemsRequest message or plain object to encode
|
|
60105
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60106
|
+
* @returns {$protobuf.Writer} Writer
|
|
60107
|
+
*/
|
|
60108
|
+
ListSectionItemsRequest.encode = function encode(message, writer) {
|
|
60109
|
+
if (!writer)
|
|
60110
|
+
writer = $Writer.create();
|
|
60111
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
|
60112
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
|
60113
|
+
if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
|
|
60114
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
|
|
60115
|
+
if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
|
|
60116
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
|
|
60117
|
+
if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
|
|
60118
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
|
|
60119
|
+
return writer;
|
|
60120
|
+
};
|
|
60121
|
+
|
|
60122
|
+
/**
|
|
60123
|
+
* Encodes the specified ListSectionItemsRequest message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionItemsRequest.verify|verify} messages.
|
|
60124
|
+
* @function encodeDelimited
|
|
60125
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60126
|
+
* @static
|
|
60127
|
+
* @param {google.chat.v1.IListSectionItemsRequest} message ListSectionItemsRequest message or plain object to encode
|
|
60128
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60129
|
+
* @returns {$protobuf.Writer} Writer
|
|
60130
|
+
*/
|
|
60131
|
+
ListSectionItemsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60132
|
+
return this.encode(message, writer).ldelim();
|
|
60133
|
+
};
|
|
60134
|
+
|
|
60135
|
+
/**
|
|
60136
|
+
* Decodes a ListSectionItemsRequest message from the specified reader or buffer.
|
|
60137
|
+
* @function decode
|
|
60138
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60139
|
+
* @static
|
|
60140
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60141
|
+
* @param {number} [length] Message length if known beforehand
|
|
60142
|
+
* @returns {google.chat.v1.ListSectionItemsRequest} ListSectionItemsRequest
|
|
60143
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60144
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60145
|
+
*/
|
|
60146
|
+
ListSectionItemsRequest.decode = function decode(reader, length, error) {
|
|
60147
|
+
if (!(reader instanceof $Reader))
|
|
60148
|
+
reader = $Reader.create(reader);
|
|
60149
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ListSectionItemsRequest();
|
|
60150
|
+
while (reader.pos < end) {
|
|
60151
|
+
var tag = reader.uint32();
|
|
60152
|
+
if (tag === error)
|
|
60153
|
+
break;
|
|
60154
|
+
switch (tag >>> 3) {
|
|
60155
|
+
case 1: {
|
|
60156
|
+
message.parent = reader.string();
|
|
60157
|
+
break;
|
|
60158
|
+
}
|
|
60159
|
+
case 2: {
|
|
60160
|
+
message.pageSize = reader.int32();
|
|
60161
|
+
break;
|
|
60162
|
+
}
|
|
60163
|
+
case 3: {
|
|
60164
|
+
message.pageToken = reader.string();
|
|
60165
|
+
break;
|
|
60166
|
+
}
|
|
60167
|
+
case 4: {
|
|
60168
|
+
message.filter = reader.string();
|
|
60169
|
+
break;
|
|
60170
|
+
}
|
|
60171
|
+
default:
|
|
60172
|
+
reader.skipType(tag & 7);
|
|
60173
|
+
break;
|
|
60174
|
+
}
|
|
60175
|
+
}
|
|
60176
|
+
return message;
|
|
60177
|
+
};
|
|
60178
|
+
|
|
60179
|
+
/**
|
|
60180
|
+
* Decodes a ListSectionItemsRequest message from the specified reader or buffer, length delimited.
|
|
60181
|
+
* @function decodeDelimited
|
|
60182
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60183
|
+
* @static
|
|
60184
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60185
|
+
* @returns {google.chat.v1.ListSectionItemsRequest} ListSectionItemsRequest
|
|
60186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60188
|
+
*/
|
|
60189
|
+
ListSectionItemsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
60190
|
+
if (!(reader instanceof $Reader))
|
|
60191
|
+
reader = new $Reader(reader);
|
|
60192
|
+
return this.decode(reader, reader.uint32());
|
|
60193
|
+
};
|
|
60194
|
+
|
|
60195
|
+
/**
|
|
60196
|
+
* Verifies a ListSectionItemsRequest message.
|
|
60197
|
+
* @function verify
|
|
60198
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60199
|
+
* @static
|
|
60200
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60201
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60202
|
+
*/
|
|
60203
|
+
ListSectionItemsRequest.verify = function verify(message) {
|
|
60204
|
+
if (typeof message !== "object" || message === null)
|
|
60205
|
+
return "object expected";
|
|
60206
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
60207
|
+
if (!$util.isString(message.parent))
|
|
60208
|
+
return "parent: string expected";
|
|
60209
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
60210
|
+
if (!$util.isInteger(message.pageSize))
|
|
60211
|
+
return "pageSize: integer expected";
|
|
60212
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
60213
|
+
if (!$util.isString(message.pageToken))
|
|
60214
|
+
return "pageToken: string expected";
|
|
60215
|
+
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
60216
|
+
if (!$util.isString(message.filter))
|
|
60217
|
+
return "filter: string expected";
|
|
60218
|
+
return null;
|
|
60219
|
+
};
|
|
60220
|
+
|
|
60221
|
+
/**
|
|
60222
|
+
* Creates a ListSectionItemsRequest message from a plain object. Also converts values to their respective internal types.
|
|
60223
|
+
* @function fromObject
|
|
60224
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60225
|
+
* @static
|
|
60226
|
+
* @param {Object.<string,*>} object Plain object
|
|
60227
|
+
* @returns {google.chat.v1.ListSectionItemsRequest} ListSectionItemsRequest
|
|
60228
|
+
*/
|
|
60229
|
+
ListSectionItemsRequest.fromObject = function fromObject(object) {
|
|
60230
|
+
if (object instanceof $root.google.chat.v1.ListSectionItemsRequest)
|
|
60231
|
+
return object;
|
|
60232
|
+
var message = new $root.google.chat.v1.ListSectionItemsRequest();
|
|
60233
|
+
if (object.parent != null)
|
|
60234
|
+
message.parent = String(object.parent);
|
|
60235
|
+
if (object.pageSize != null)
|
|
60236
|
+
message.pageSize = object.pageSize | 0;
|
|
60237
|
+
if (object.pageToken != null)
|
|
60238
|
+
message.pageToken = String(object.pageToken);
|
|
60239
|
+
if (object.filter != null)
|
|
60240
|
+
message.filter = String(object.filter);
|
|
60241
|
+
return message;
|
|
60242
|
+
};
|
|
60243
|
+
|
|
60244
|
+
/**
|
|
60245
|
+
* Creates a plain object from a ListSectionItemsRequest message. Also converts values to other types if specified.
|
|
60246
|
+
* @function toObject
|
|
60247
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60248
|
+
* @static
|
|
60249
|
+
* @param {google.chat.v1.ListSectionItemsRequest} message ListSectionItemsRequest
|
|
60250
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60251
|
+
* @returns {Object.<string,*>} Plain object
|
|
60252
|
+
*/
|
|
60253
|
+
ListSectionItemsRequest.toObject = function toObject(message, options) {
|
|
60254
|
+
if (!options)
|
|
60255
|
+
options = {};
|
|
60256
|
+
var object = {};
|
|
60257
|
+
if (options.defaults) {
|
|
60258
|
+
object.parent = "";
|
|
60259
|
+
object.pageSize = 0;
|
|
60260
|
+
object.pageToken = "";
|
|
60261
|
+
object.filter = "";
|
|
60262
|
+
}
|
|
60263
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
60264
|
+
object.parent = message.parent;
|
|
60265
|
+
if (message.pageSize != null && message.hasOwnProperty("pageSize"))
|
|
60266
|
+
object.pageSize = message.pageSize;
|
|
60267
|
+
if (message.pageToken != null && message.hasOwnProperty("pageToken"))
|
|
60268
|
+
object.pageToken = message.pageToken;
|
|
60269
|
+
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
60270
|
+
object.filter = message.filter;
|
|
60271
|
+
return object;
|
|
60272
|
+
};
|
|
60273
|
+
|
|
60274
|
+
/**
|
|
60275
|
+
* Converts this ListSectionItemsRequest to JSON.
|
|
60276
|
+
* @function toJSON
|
|
60277
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60278
|
+
* @instance
|
|
60279
|
+
* @returns {Object.<string,*>} JSON object
|
|
60280
|
+
*/
|
|
60281
|
+
ListSectionItemsRequest.prototype.toJSON = function toJSON() {
|
|
60282
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60283
|
+
};
|
|
60284
|
+
|
|
60285
|
+
/**
|
|
60286
|
+
* Gets the default type url for ListSectionItemsRequest
|
|
60287
|
+
* @function getTypeUrl
|
|
60288
|
+
* @memberof google.chat.v1.ListSectionItemsRequest
|
|
60289
|
+
* @static
|
|
60290
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60291
|
+
* @returns {string} The default type url
|
|
60292
|
+
*/
|
|
60293
|
+
ListSectionItemsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60294
|
+
if (typeUrlPrefix === undefined) {
|
|
60295
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60296
|
+
}
|
|
60297
|
+
return typeUrlPrefix + "/google.chat.v1.ListSectionItemsRequest";
|
|
60298
|
+
};
|
|
60299
|
+
|
|
60300
|
+
return ListSectionItemsRequest;
|
|
60301
|
+
})();
|
|
60302
|
+
|
|
60303
|
+
v1.ListSectionItemsResponse = (function() {
|
|
60304
|
+
|
|
60305
|
+
/**
|
|
60306
|
+
* Properties of a ListSectionItemsResponse.
|
|
60307
|
+
* @memberof google.chat.v1
|
|
60308
|
+
* @interface IListSectionItemsResponse
|
|
60309
|
+
* @property {Array.<google.chat.v1.ISectionItem>|null} [sectionItems] ListSectionItemsResponse sectionItems
|
|
60310
|
+
* @property {string|null} [nextPageToken] ListSectionItemsResponse nextPageToken
|
|
60311
|
+
*/
|
|
60312
|
+
|
|
60313
|
+
/**
|
|
60314
|
+
* Constructs a new ListSectionItemsResponse.
|
|
60315
|
+
* @memberof google.chat.v1
|
|
60316
|
+
* @classdesc Represents a ListSectionItemsResponse.
|
|
60317
|
+
* @implements IListSectionItemsResponse
|
|
60318
|
+
* @constructor
|
|
60319
|
+
* @param {google.chat.v1.IListSectionItemsResponse=} [properties] Properties to set
|
|
60320
|
+
*/
|
|
60321
|
+
function ListSectionItemsResponse(properties) {
|
|
60322
|
+
this.sectionItems = [];
|
|
60323
|
+
if (properties)
|
|
60324
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60325
|
+
if (properties[keys[i]] != null)
|
|
60326
|
+
this[keys[i]] = properties[keys[i]];
|
|
60327
|
+
}
|
|
60328
|
+
|
|
60329
|
+
/**
|
|
60330
|
+
* ListSectionItemsResponse sectionItems.
|
|
60331
|
+
* @member {Array.<google.chat.v1.ISectionItem>} sectionItems
|
|
60332
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60333
|
+
* @instance
|
|
60334
|
+
*/
|
|
60335
|
+
ListSectionItemsResponse.prototype.sectionItems = $util.emptyArray;
|
|
60336
|
+
|
|
60337
|
+
/**
|
|
60338
|
+
* ListSectionItemsResponse nextPageToken.
|
|
60339
|
+
* @member {string} nextPageToken
|
|
60340
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60341
|
+
* @instance
|
|
60342
|
+
*/
|
|
60343
|
+
ListSectionItemsResponse.prototype.nextPageToken = "";
|
|
60344
|
+
|
|
60345
|
+
/**
|
|
60346
|
+
* Creates a new ListSectionItemsResponse instance using the specified properties.
|
|
60347
|
+
* @function create
|
|
60348
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60349
|
+
* @static
|
|
60350
|
+
* @param {google.chat.v1.IListSectionItemsResponse=} [properties] Properties to set
|
|
60351
|
+
* @returns {google.chat.v1.ListSectionItemsResponse} ListSectionItemsResponse instance
|
|
60352
|
+
*/
|
|
60353
|
+
ListSectionItemsResponse.create = function create(properties) {
|
|
60354
|
+
return new ListSectionItemsResponse(properties);
|
|
60355
|
+
};
|
|
60356
|
+
|
|
60357
|
+
/**
|
|
60358
|
+
* Encodes the specified ListSectionItemsResponse message. Does not implicitly {@link google.chat.v1.ListSectionItemsResponse.verify|verify} messages.
|
|
60359
|
+
* @function encode
|
|
60360
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60361
|
+
* @static
|
|
60362
|
+
* @param {google.chat.v1.IListSectionItemsResponse} message ListSectionItemsResponse message or plain object to encode
|
|
60363
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60364
|
+
* @returns {$protobuf.Writer} Writer
|
|
60365
|
+
*/
|
|
60366
|
+
ListSectionItemsResponse.encode = function encode(message, writer) {
|
|
60367
|
+
if (!writer)
|
|
60368
|
+
writer = $Writer.create();
|
|
60369
|
+
if (message.sectionItems != null && message.sectionItems.length)
|
|
60370
|
+
for (var i = 0; i < message.sectionItems.length; ++i)
|
|
60371
|
+
$root.google.chat.v1.SectionItem.encode(message.sectionItems[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
60372
|
+
if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
|
|
60373
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
|
|
60374
|
+
return writer;
|
|
60375
|
+
};
|
|
60376
|
+
|
|
60377
|
+
/**
|
|
60378
|
+
* Encodes the specified ListSectionItemsResponse message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionItemsResponse.verify|verify} messages.
|
|
60379
|
+
* @function encodeDelimited
|
|
60380
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60381
|
+
* @static
|
|
60382
|
+
* @param {google.chat.v1.IListSectionItemsResponse} message ListSectionItemsResponse message or plain object to encode
|
|
60383
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60384
|
+
* @returns {$protobuf.Writer} Writer
|
|
60385
|
+
*/
|
|
60386
|
+
ListSectionItemsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60387
|
+
return this.encode(message, writer).ldelim();
|
|
60388
|
+
};
|
|
60389
|
+
|
|
60390
|
+
/**
|
|
60391
|
+
* Decodes a ListSectionItemsResponse message from the specified reader or buffer.
|
|
60392
|
+
* @function decode
|
|
60393
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60394
|
+
* @static
|
|
60395
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60396
|
+
* @param {number} [length] Message length if known beforehand
|
|
60397
|
+
* @returns {google.chat.v1.ListSectionItemsResponse} ListSectionItemsResponse
|
|
60398
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60399
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60400
|
+
*/
|
|
60401
|
+
ListSectionItemsResponse.decode = function decode(reader, length, error) {
|
|
60402
|
+
if (!(reader instanceof $Reader))
|
|
60403
|
+
reader = $Reader.create(reader);
|
|
60404
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.ListSectionItemsResponse();
|
|
60405
|
+
while (reader.pos < end) {
|
|
60406
|
+
var tag = reader.uint32();
|
|
60407
|
+
if (tag === error)
|
|
60408
|
+
break;
|
|
60409
|
+
switch (tag >>> 3) {
|
|
60410
|
+
case 1: {
|
|
60411
|
+
if (!(message.sectionItems && message.sectionItems.length))
|
|
60412
|
+
message.sectionItems = [];
|
|
60413
|
+
message.sectionItems.push($root.google.chat.v1.SectionItem.decode(reader, reader.uint32()));
|
|
60414
|
+
break;
|
|
60415
|
+
}
|
|
60416
|
+
case 2: {
|
|
60417
|
+
message.nextPageToken = reader.string();
|
|
60418
|
+
break;
|
|
60419
|
+
}
|
|
60420
|
+
default:
|
|
60421
|
+
reader.skipType(tag & 7);
|
|
60422
|
+
break;
|
|
60423
|
+
}
|
|
60424
|
+
}
|
|
60425
|
+
return message;
|
|
60426
|
+
};
|
|
60427
|
+
|
|
60428
|
+
/**
|
|
60429
|
+
* Decodes a ListSectionItemsResponse message from the specified reader or buffer, length delimited.
|
|
60430
|
+
* @function decodeDelimited
|
|
60431
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60432
|
+
* @static
|
|
60433
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60434
|
+
* @returns {google.chat.v1.ListSectionItemsResponse} ListSectionItemsResponse
|
|
60435
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60436
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60437
|
+
*/
|
|
60438
|
+
ListSectionItemsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
60439
|
+
if (!(reader instanceof $Reader))
|
|
60440
|
+
reader = new $Reader(reader);
|
|
60441
|
+
return this.decode(reader, reader.uint32());
|
|
60442
|
+
};
|
|
60443
|
+
|
|
60444
|
+
/**
|
|
60445
|
+
* Verifies a ListSectionItemsResponse message.
|
|
60446
|
+
* @function verify
|
|
60447
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60448
|
+
* @static
|
|
60449
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60450
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60451
|
+
*/
|
|
60452
|
+
ListSectionItemsResponse.verify = function verify(message) {
|
|
60453
|
+
if (typeof message !== "object" || message === null)
|
|
60454
|
+
return "object expected";
|
|
60455
|
+
if (message.sectionItems != null && message.hasOwnProperty("sectionItems")) {
|
|
60456
|
+
if (!Array.isArray(message.sectionItems))
|
|
60457
|
+
return "sectionItems: array expected";
|
|
60458
|
+
for (var i = 0; i < message.sectionItems.length; ++i) {
|
|
60459
|
+
var error = $root.google.chat.v1.SectionItem.verify(message.sectionItems[i]);
|
|
60460
|
+
if (error)
|
|
60461
|
+
return "sectionItems." + error;
|
|
60462
|
+
}
|
|
60463
|
+
}
|
|
60464
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
60465
|
+
if (!$util.isString(message.nextPageToken))
|
|
60466
|
+
return "nextPageToken: string expected";
|
|
60467
|
+
return null;
|
|
60468
|
+
};
|
|
60469
|
+
|
|
60470
|
+
/**
|
|
60471
|
+
* Creates a ListSectionItemsResponse message from a plain object. Also converts values to their respective internal types.
|
|
60472
|
+
* @function fromObject
|
|
60473
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60474
|
+
* @static
|
|
60475
|
+
* @param {Object.<string,*>} object Plain object
|
|
60476
|
+
* @returns {google.chat.v1.ListSectionItemsResponse} ListSectionItemsResponse
|
|
60477
|
+
*/
|
|
60478
|
+
ListSectionItemsResponse.fromObject = function fromObject(object) {
|
|
60479
|
+
if (object instanceof $root.google.chat.v1.ListSectionItemsResponse)
|
|
60480
|
+
return object;
|
|
60481
|
+
var message = new $root.google.chat.v1.ListSectionItemsResponse();
|
|
60482
|
+
if (object.sectionItems) {
|
|
60483
|
+
if (!Array.isArray(object.sectionItems))
|
|
60484
|
+
throw TypeError(".google.chat.v1.ListSectionItemsResponse.sectionItems: array expected");
|
|
60485
|
+
message.sectionItems = [];
|
|
60486
|
+
for (var i = 0; i < object.sectionItems.length; ++i) {
|
|
60487
|
+
if (typeof object.sectionItems[i] !== "object")
|
|
60488
|
+
throw TypeError(".google.chat.v1.ListSectionItemsResponse.sectionItems: object expected");
|
|
60489
|
+
message.sectionItems[i] = $root.google.chat.v1.SectionItem.fromObject(object.sectionItems[i]);
|
|
60490
|
+
}
|
|
60491
|
+
}
|
|
60492
|
+
if (object.nextPageToken != null)
|
|
60493
|
+
message.nextPageToken = String(object.nextPageToken);
|
|
60494
|
+
return message;
|
|
60495
|
+
};
|
|
60496
|
+
|
|
60497
|
+
/**
|
|
60498
|
+
* Creates a plain object from a ListSectionItemsResponse message. Also converts values to other types if specified.
|
|
60499
|
+
* @function toObject
|
|
60500
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60501
|
+
* @static
|
|
60502
|
+
* @param {google.chat.v1.ListSectionItemsResponse} message ListSectionItemsResponse
|
|
60503
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60504
|
+
* @returns {Object.<string,*>} Plain object
|
|
60505
|
+
*/
|
|
60506
|
+
ListSectionItemsResponse.toObject = function toObject(message, options) {
|
|
60507
|
+
if (!options)
|
|
60508
|
+
options = {};
|
|
60509
|
+
var object = {};
|
|
60510
|
+
if (options.arrays || options.defaults)
|
|
60511
|
+
object.sectionItems = [];
|
|
60512
|
+
if (options.defaults)
|
|
60513
|
+
object.nextPageToken = "";
|
|
60514
|
+
if (message.sectionItems && message.sectionItems.length) {
|
|
60515
|
+
object.sectionItems = [];
|
|
60516
|
+
for (var j = 0; j < message.sectionItems.length; ++j)
|
|
60517
|
+
object.sectionItems[j] = $root.google.chat.v1.SectionItem.toObject(message.sectionItems[j], options);
|
|
60518
|
+
}
|
|
60519
|
+
if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
|
|
60520
|
+
object.nextPageToken = message.nextPageToken;
|
|
60521
|
+
return object;
|
|
60522
|
+
};
|
|
60523
|
+
|
|
60524
|
+
/**
|
|
60525
|
+
* Converts this ListSectionItemsResponse to JSON.
|
|
60526
|
+
* @function toJSON
|
|
60527
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60528
|
+
* @instance
|
|
60529
|
+
* @returns {Object.<string,*>} JSON object
|
|
60530
|
+
*/
|
|
60531
|
+
ListSectionItemsResponse.prototype.toJSON = function toJSON() {
|
|
60532
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60533
|
+
};
|
|
60534
|
+
|
|
60535
|
+
/**
|
|
60536
|
+
* Gets the default type url for ListSectionItemsResponse
|
|
60537
|
+
* @function getTypeUrl
|
|
60538
|
+
* @memberof google.chat.v1.ListSectionItemsResponse
|
|
60539
|
+
* @static
|
|
60540
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60541
|
+
* @returns {string} The default type url
|
|
60542
|
+
*/
|
|
60543
|
+
ListSectionItemsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60544
|
+
if (typeUrlPrefix === undefined) {
|
|
60545
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60546
|
+
}
|
|
60547
|
+
return typeUrlPrefix + "/google.chat.v1.ListSectionItemsResponse";
|
|
60548
|
+
};
|
|
60549
|
+
|
|
60550
|
+
return ListSectionItemsResponse;
|
|
60551
|
+
})();
|
|
60552
|
+
|
|
60553
|
+
v1.MoveSectionItemRequest = (function() {
|
|
60554
|
+
|
|
60555
|
+
/**
|
|
60556
|
+
* Properties of a MoveSectionItemRequest.
|
|
60557
|
+
* @memberof google.chat.v1
|
|
60558
|
+
* @interface IMoveSectionItemRequest
|
|
60559
|
+
* @property {string|null} [name] MoveSectionItemRequest name
|
|
60560
|
+
* @property {string|null} [targetSection] MoveSectionItemRequest targetSection
|
|
60561
|
+
*/
|
|
60562
|
+
|
|
60563
|
+
/**
|
|
60564
|
+
* Constructs a new MoveSectionItemRequest.
|
|
60565
|
+
* @memberof google.chat.v1
|
|
60566
|
+
* @classdesc Represents a MoveSectionItemRequest.
|
|
60567
|
+
* @implements IMoveSectionItemRequest
|
|
60568
|
+
* @constructor
|
|
60569
|
+
* @param {google.chat.v1.IMoveSectionItemRequest=} [properties] Properties to set
|
|
60570
|
+
*/
|
|
60571
|
+
function MoveSectionItemRequest(properties) {
|
|
60572
|
+
if (properties)
|
|
60573
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60574
|
+
if (properties[keys[i]] != null)
|
|
60575
|
+
this[keys[i]] = properties[keys[i]];
|
|
60576
|
+
}
|
|
60577
|
+
|
|
60578
|
+
/**
|
|
60579
|
+
* MoveSectionItemRequest name.
|
|
60580
|
+
* @member {string} name
|
|
60581
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60582
|
+
* @instance
|
|
60583
|
+
*/
|
|
60584
|
+
MoveSectionItemRequest.prototype.name = "";
|
|
60585
|
+
|
|
60586
|
+
/**
|
|
60587
|
+
* MoveSectionItemRequest targetSection.
|
|
60588
|
+
* @member {string} targetSection
|
|
60589
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60590
|
+
* @instance
|
|
60591
|
+
*/
|
|
60592
|
+
MoveSectionItemRequest.prototype.targetSection = "";
|
|
60593
|
+
|
|
60594
|
+
/**
|
|
60595
|
+
* Creates a new MoveSectionItemRequest instance using the specified properties.
|
|
60596
|
+
* @function create
|
|
60597
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60598
|
+
* @static
|
|
60599
|
+
* @param {google.chat.v1.IMoveSectionItemRequest=} [properties] Properties to set
|
|
60600
|
+
* @returns {google.chat.v1.MoveSectionItemRequest} MoveSectionItemRequest instance
|
|
60601
|
+
*/
|
|
60602
|
+
MoveSectionItemRequest.create = function create(properties) {
|
|
60603
|
+
return new MoveSectionItemRequest(properties);
|
|
60604
|
+
};
|
|
60605
|
+
|
|
60606
|
+
/**
|
|
60607
|
+
* Encodes the specified MoveSectionItemRequest message. Does not implicitly {@link google.chat.v1.MoveSectionItemRequest.verify|verify} messages.
|
|
60608
|
+
* @function encode
|
|
60609
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60610
|
+
* @static
|
|
60611
|
+
* @param {google.chat.v1.IMoveSectionItemRequest} message MoveSectionItemRequest message or plain object to encode
|
|
60612
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60613
|
+
* @returns {$protobuf.Writer} Writer
|
|
60614
|
+
*/
|
|
60615
|
+
MoveSectionItemRequest.encode = function encode(message, writer) {
|
|
60616
|
+
if (!writer)
|
|
60617
|
+
writer = $Writer.create();
|
|
60618
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
60619
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
60620
|
+
if (message.targetSection != null && Object.hasOwnProperty.call(message, "targetSection"))
|
|
60621
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetSection);
|
|
60622
|
+
return writer;
|
|
60623
|
+
};
|
|
60624
|
+
|
|
60625
|
+
/**
|
|
60626
|
+
* Encodes the specified MoveSectionItemRequest message, length delimited. Does not implicitly {@link google.chat.v1.MoveSectionItemRequest.verify|verify} messages.
|
|
60627
|
+
* @function encodeDelimited
|
|
60628
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60629
|
+
* @static
|
|
60630
|
+
* @param {google.chat.v1.IMoveSectionItemRequest} message MoveSectionItemRequest message or plain object to encode
|
|
60631
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60632
|
+
* @returns {$protobuf.Writer} Writer
|
|
60633
|
+
*/
|
|
60634
|
+
MoveSectionItemRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60635
|
+
return this.encode(message, writer).ldelim();
|
|
60636
|
+
};
|
|
60637
|
+
|
|
60638
|
+
/**
|
|
60639
|
+
* Decodes a MoveSectionItemRequest message from the specified reader or buffer.
|
|
60640
|
+
* @function decode
|
|
60641
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60642
|
+
* @static
|
|
60643
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60644
|
+
* @param {number} [length] Message length if known beforehand
|
|
60645
|
+
* @returns {google.chat.v1.MoveSectionItemRequest} MoveSectionItemRequest
|
|
60646
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60647
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60648
|
+
*/
|
|
60649
|
+
MoveSectionItemRequest.decode = function decode(reader, length, error) {
|
|
60650
|
+
if (!(reader instanceof $Reader))
|
|
60651
|
+
reader = $Reader.create(reader);
|
|
60652
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.MoveSectionItemRequest();
|
|
60653
|
+
while (reader.pos < end) {
|
|
60654
|
+
var tag = reader.uint32();
|
|
60655
|
+
if (tag === error)
|
|
60656
|
+
break;
|
|
60657
|
+
switch (tag >>> 3) {
|
|
60658
|
+
case 1: {
|
|
60659
|
+
message.name = reader.string();
|
|
60660
|
+
break;
|
|
60661
|
+
}
|
|
60662
|
+
case 2: {
|
|
60663
|
+
message.targetSection = reader.string();
|
|
60664
|
+
break;
|
|
60665
|
+
}
|
|
60666
|
+
default:
|
|
60667
|
+
reader.skipType(tag & 7);
|
|
60668
|
+
break;
|
|
60669
|
+
}
|
|
60670
|
+
}
|
|
60671
|
+
return message;
|
|
60672
|
+
};
|
|
60673
|
+
|
|
60674
|
+
/**
|
|
60675
|
+
* Decodes a MoveSectionItemRequest message from the specified reader or buffer, length delimited.
|
|
60676
|
+
* @function decodeDelimited
|
|
60677
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60678
|
+
* @static
|
|
60679
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60680
|
+
* @returns {google.chat.v1.MoveSectionItemRequest} MoveSectionItemRequest
|
|
60681
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60682
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60683
|
+
*/
|
|
60684
|
+
MoveSectionItemRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
60685
|
+
if (!(reader instanceof $Reader))
|
|
60686
|
+
reader = new $Reader(reader);
|
|
60687
|
+
return this.decode(reader, reader.uint32());
|
|
60688
|
+
};
|
|
60689
|
+
|
|
60690
|
+
/**
|
|
60691
|
+
* Verifies a MoveSectionItemRequest message.
|
|
60692
|
+
* @function verify
|
|
60693
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60694
|
+
* @static
|
|
60695
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60696
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60697
|
+
*/
|
|
60698
|
+
MoveSectionItemRequest.verify = function verify(message) {
|
|
60699
|
+
if (typeof message !== "object" || message === null)
|
|
60700
|
+
return "object expected";
|
|
60701
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
60702
|
+
if (!$util.isString(message.name))
|
|
60703
|
+
return "name: string expected";
|
|
60704
|
+
if (message.targetSection != null && message.hasOwnProperty("targetSection"))
|
|
60705
|
+
if (!$util.isString(message.targetSection))
|
|
60706
|
+
return "targetSection: string expected";
|
|
60707
|
+
return null;
|
|
60708
|
+
};
|
|
60709
|
+
|
|
60710
|
+
/**
|
|
60711
|
+
* Creates a MoveSectionItemRequest message from a plain object. Also converts values to their respective internal types.
|
|
60712
|
+
* @function fromObject
|
|
60713
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60714
|
+
* @static
|
|
60715
|
+
* @param {Object.<string,*>} object Plain object
|
|
60716
|
+
* @returns {google.chat.v1.MoveSectionItemRequest} MoveSectionItemRequest
|
|
60717
|
+
*/
|
|
60718
|
+
MoveSectionItemRequest.fromObject = function fromObject(object) {
|
|
60719
|
+
if (object instanceof $root.google.chat.v1.MoveSectionItemRequest)
|
|
60720
|
+
return object;
|
|
60721
|
+
var message = new $root.google.chat.v1.MoveSectionItemRequest();
|
|
60722
|
+
if (object.name != null)
|
|
60723
|
+
message.name = String(object.name);
|
|
60724
|
+
if (object.targetSection != null)
|
|
60725
|
+
message.targetSection = String(object.targetSection);
|
|
60726
|
+
return message;
|
|
60727
|
+
};
|
|
60728
|
+
|
|
60729
|
+
/**
|
|
60730
|
+
* Creates a plain object from a MoveSectionItemRequest message. Also converts values to other types if specified.
|
|
60731
|
+
* @function toObject
|
|
60732
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60733
|
+
* @static
|
|
60734
|
+
* @param {google.chat.v1.MoveSectionItemRequest} message MoveSectionItemRequest
|
|
60735
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60736
|
+
* @returns {Object.<string,*>} Plain object
|
|
60737
|
+
*/
|
|
60738
|
+
MoveSectionItemRequest.toObject = function toObject(message, options) {
|
|
60739
|
+
if (!options)
|
|
60740
|
+
options = {};
|
|
60741
|
+
var object = {};
|
|
60742
|
+
if (options.defaults) {
|
|
60743
|
+
object.name = "";
|
|
60744
|
+
object.targetSection = "";
|
|
60745
|
+
}
|
|
60746
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
60747
|
+
object.name = message.name;
|
|
60748
|
+
if (message.targetSection != null && message.hasOwnProperty("targetSection"))
|
|
60749
|
+
object.targetSection = message.targetSection;
|
|
60750
|
+
return object;
|
|
60751
|
+
};
|
|
60752
|
+
|
|
60753
|
+
/**
|
|
60754
|
+
* Converts this MoveSectionItemRequest to JSON.
|
|
60755
|
+
* @function toJSON
|
|
60756
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60757
|
+
* @instance
|
|
60758
|
+
* @returns {Object.<string,*>} JSON object
|
|
60759
|
+
*/
|
|
60760
|
+
MoveSectionItemRequest.prototype.toJSON = function toJSON() {
|
|
60761
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60762
|
+
};
|
|
60763
|
+
|
|
60764
|
+
/**
|
|
60765
|
+
* Gets the default type url for MoveSectionItemRequest
|
|
60766
|
+
* @function getTypeUrl
|
|
60767
|
+
* @memberof google.chat.v1.MoveSectionItemRequest
|
|
60768
|
+
* @static
|
|
60769
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60770
|
+
* @returns {string} The default type url
|
|
60771
|
+
*/
|
|
60772
|
+
MoveSectionItemRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60773
|
+
if (typeUrlPrefix === undefined) {
|
|
60774
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60775
|
+
}
|
|
60776
|
+
return typeUrlPrefix + "/google.chat.v1.MoveSectionItemRequest";
|
|
60777
|
+
};
|
|
60778
|
+
|
|
60779
|
+
return MoveSectionItemRequest;
|
|
60780
|
+
})();
|
|
60781
|
+
|
|
60782
|
+
v1.MoveSectionItemResponse = (function() {
|
|
60783
|
+
|
|
60784
|
+
/**
|
|
60785
|
+
* Properties of a MoveSectionItemResponse.
|
|
60786
|
+
* @memberof google.chat.v1
|
|
60787
|
+
* @interface IMoveSectionItemResponse
|
|
60788
|
+
* @property {google.chat.v1.ISectionItem|null} [sectionItem] MoveSectionItemResponse sectionItem
|
|
60789
|
+
*/
|
|
60790
|
+
|
|
60791
|
+
/**
|
|
60792
|
+
* Constructs a new MoveSectionItemResponse.
|
|
60793
|
+
* @memberof google.chat.v1
|
|
60794
|
+
* @classdesc Represents a MoveSectionItemResponse.
|
|
60795
|
+
* @implements IMoveSectionItemResponse
|
|
60796
|
+
* @constructor
|
|
60797
|
+
* @param {google.chat.v1.IMoveSectionItemResponse=} [properties] Properties to set
|
|
60798
|
+
*/
|
|
60799
|
+
function MoveSectionItemResponse(properties) {
|
|
60800
|
+
if (properties)
|
|
60801
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60802
|
+
if (properties[keys[i]] != null)
|
|
60803
|
+
this[keys[i]] = properties[keys[i]];
|
|
60804
|
+
}
|
|
60805
|
+
|
|
60806
|
+
/**
|
|
60807
|
+
* MoveSectionItemResponse sectionItem.
|
|
60808
|
+
* @member {google.chat.v1.ISectionItem|null|undefined} sectionItem
|
|
60809
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60810
|
+
* @instance
|
|
60811
|
+
*/
|
|
60812
|
+
MoveSectionItemResponse.prototype.sectionItem = null;
|
|
60813
|
+
|
|
60814
|
+
/**
|
|
60815
|
+
* Creates a new MoveSectionItemResponse instance using the specified properties.
|
|
60816
|
+
* @function create
|
|
60817
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60818
|
+
* @static
|
|
60819
|
+
* @param {google.chat.v1.IMoveSectionItemResponse=} [properties] Properties to set
|
|
60820
|
+
* @returns {google.chat.v1.MoveSectionItemResponse} MoveSectionItemResponse instance
|
|
60821
|
+
*/
|
|
60822
|
+
MoveSectionItemResponse.create = function create(properties) {
|
|
60823
|
+
return new MoveSectionItemResponse(properties);
|
|
60824
|
+
};
|
|
60825
|
+
|
|
60826
|
+
/**
|
|
60827
|
+
* Encodes the specified MoveSectionItemResponse message. Does not implicitly {@link google.chat.v1.MoveSectionItemResponse.verify|verify} messages.
|
|
60828
|
+
* @function encode
|
|
60829
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60830
|
+
* @static
|
|
60831
|
+
* @param {google.chat.v1.IMoveSectionItemResponse} message MoveSectionItemResponse message or plain object to encode
|
|
60832
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60833
|
+
* @returns {$protobuf.Writer} Writer
|
|
60834
|
+
*/
|
|
60835
|
+
MoveSectionItemResponse.encode = function encode(message, writer) {
|
|
60836
|
+
if (!writer)
|
|
60837
|
+
writer = $Writer.create();
|
|
60838
|
+
if (message.sectionItem != null && Object.hasOwnProperty.call(message, "sectionItem"))
|
|
60839
|
+
$root.google.chat.v1.SectionItem.encode(message.sectionItem, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
60840
|
+
return writer;
|
|
60841
|
+
};
|
|
60842
|
+
|
|
60843
|
+
/**
|
|
60844
|
+
* Encodes the specified MoveSectionItemResponse message, length delimited. Does not implicitly {@link google.chat.v1.MoveSectionItemResponse.verify|verify} messages.
|
|
60845
|
+
* @function encodeDelimited
|
|
60846
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60847
|
+
* @static
|
|
60848
|
+
* @param {google.chat.v1.IMoveSectionItemResponse} message MoveSectionItemResponse message or plain object to encode
|
|
60849
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60850
|
+
* @returns {$protobuf.Writer} Writer
|
|
60851
|
+
*/
|
|
60852
|
+
MoveSectionItemResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60853
|
+
return this.encode(message, writer).ldelim();
|
|
60854
|
+
};
|
|
60855
|
+
|
|
60856
|
+
/**
|
|
60857
|
+
* Decodes a MoveSectionItemResponse message from the specified reader or buffer.
|
|
60858
|
+
* @function decode
|
|
60859
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60860
|
+
* @static
|
|
60861
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60862
|
+
* @param {number} [length] Message length if known beforehand
|
|
60863
|
+
* @returns {google.chat.v1.MoveSectionItemResponse} MoveSectionItemResponse
|
|
60864
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60865
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60866
|
+
*/
|
|
60867
|
+
MoveSectionItemResponse.decode = function decode(reader, length, error) {
|
|
60868
|
+
if (!(reader instanceof $Reader))
|
|
60869
|
+
reader = $Reader.create(reader);
|
|
60870
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.chat.v1.MoveSectionItemResponse();
|
|
60871
|
+
while (reader.pos < end) {
|
|
60872
|
+
var tag = reader.uint32();
|
|
60873
|
+
if (tag === error)
|
|
60874
|
+
break;
|
|
60875
|
+
switch (tag >>> 3) {
|
|
60876
|
+
case 1: {
|
|
60877
|
+
message.sectionItem = $root.google.chat.v1.SectionItem.decode(reader, reader.uint32());
|
|
60878
|
+
break;
|
|
60879
|
+
}
|
|
60880
|
+
default:
|
|
60881
|
+
reader.skipType(tag & 7);
|
|
60882
|
+
break;
|
|
60883
|
+
}
|
|
60884
|
+
}
|
|
60885
|
+
return message;
|
|
60886
|
+
};
|
|
60887
|
+
|
|
60888
|
+
/**
|
|
60889
|
+
* Decodes a MoveSectionItemResponse message from the specified reader or buffer, length delimited.
|
|
60890
|
+
* @function decodeDelimited
|
|
60891
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60892
|
+
* @static
|
|
60893
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60894
|
+
* @returns {google.chat.v1.MoveSectionItemResponse} MoveSectionItemResponse
|
|
60895
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60896
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60897
|
+
*/
|
|
60898
|
+
MoveSectionItemResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
60899
|
+
if (!(reader instanceof $Reader))
|
|
60900
|
+
reader = new $Reader(reader);
|
|
60901
|
+
return this.decode(reader, reader.uint32());
|
|
60902
|
+
};
|
|
60903
|
+
|
|
60904
|
+
/**
|
|
60905
|
+
* Verifies a MoveSectionItemResponse message.
|
|
60906
|
+
* @function verify
|
|
60907
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60908
|
+
* @static
|
|
60909
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60910
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60911
|
+
*/
|
|
60912
|
+
MoveSectionItemResponse.verify = function verify(message) {
|
|
60913
|
+
if (typeof message !== "object" || message === null)
|
|
60914
|
+
return "object expected";
|
|
60915
|
+
if (message.sectionItem != null && message.hasOwnProperty("sectionItem")) {
|
|
60916
|
+
var error = $root.google.chat.v1.SectionItem.verify(message.sectionItem);
|
|
60917
|
+
if (error)
|
|
60918
|
+
return "sectionItem." + error;
|
|
60919
|
+
}
|
|
60920
|
+
return null;
|
|
60921
|
+
};
|
|
60922
|
+
|
|
60923
|
+
/**
|
|
60924
|
+
* Creates a MoveSectionItemResponse message from a plain object. Also converts values to their respective internal types.
|
|
60925
|
+
* @function fromObject
|
|
60926
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60927
|
+
* @static
|
|
60928
|
+
* @param {Object.<string,*>} object Plain object
|
|
60929
|
+
* @returns {google.chat.v1.MoveSectionItemResponse} MoveSectionItemResponse
|
|
60930
|
+
*/
|
|
60931
|
+
MoveSectionItemResponse.fromObject = function fromObject(object) {
|
|
60932
|
+
if (object instanceof $root.google.chat.v1.MoveSectionItemResponse)
|
|
60933
|
+
return object;
|
|
60934
|
+
var message = new $root.google.chat.v1.MoveSectionItemResponse();
|
|
60935
|
+
if (object.sectionItem != null) {
|
|
60936
|
+
if (typeof object.sectionItem !== "object")
|
|
60937
|
+
throw TypeError(".google.chat.v1.MoveSectionItemResponse.sectionItem: object expected");
|
|
60938
|
+
message.sectionItem = $root.google.chat.v1.SectionItem.fromObject(object.sectionItem);
|
|
60939
|
+
}
|
|
60940
|
+
return message;
|
|
60941
|
+
};
|
|
60942
|
+
|
|
60943
|
+
/**
|
|
60944
|
+
* Creates a plain object from a MoveSectionItemResponse message. Also converts values to other types if specified.
|
|
60945
|
+
* @function toObject
|
|
60946
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60947
|
+
* @static
|
|
60948
|
+
* @param {google.chat.v1.MoveSectionItemResponse} message MoveSectionItemResponse
|
|
60949
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60950
|
+
* @returns {Object.<string,*>} Plain object
|
|
60951
|
+
*/
|
|
60952
|
+
MoveSectionItemResponse.toObject = function toObject(message, options) {
|
|
60953
|
+
if (!options)
|
|
60954
|
+
options = {};
|
|
60955
|
+
var object = {};
|
|
60956
|
+
if (options.defaults)
|
|
60957
|
+
object.sectionItem = null;
|
|
60958
|
+
if (message.sectionItem != null && message.hasOwnProperty("sectionItem"))
|
|
60959
|
+
object.sectionItem = $root.google.chat.v1.SectionItem.toObject(message.sectionItem, options);
|
|
60960
|
+
return object;
|
|
60961
|
+
};
|
|
60962
|
+
|
|
60963
|
+
/**
|
|
60964
|
+
* Converts this MoveSectionItemResponse to JSON.
|
|
60965
|
+
* @function toJSON
|
|
60966
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60967
|
+
* @instance
|
|
60968
|
+
* @returns {Object.<string,*>} JSON object
|
|
60969
|
+
*/
|
|
60970
|
+
MoveSectionItemResponse.prototype.toJSON = function toJSON() {
|
|
60971
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60972
|
+
};
|
|
60973
|
+
|
|
60974
|
+
/**
|
|
60975
|
+
* Gets the default type url for MoveSectionItemResponse
|
|
60976
|
+
* @function getTypeUrl
|
|
60977
|
+
* @memberof google.chat.v1.MoveSectionItemResponse
|
|
60978
|
+
* @static
|
|
60979
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60980
|
+
* @returns {string} The default type url
|
|
60981
|
+
*/
|
|
60982
|
+
MoveSectionItemResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60983
|
+
if (typeUrlPrefix === undefined) {
|
|
60984
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60985
|
+
}
|
|
60986
|
+
return typeUrlPrefix + "/google.chat.v1.MoveSectionItemResponse";
|
|
60987
|
+
};
|
|
60988
|
+
|
|
60989
|
+
return MoveSectionItemResponse;
|
|
60990
|
+
})();
|
|
60991
|
+
|
|
57515
60992
|
v1.SpaceEvent = (function() {
|
|
57516
60993
|
|
|
57517
60994
|
/**
|