@headspace/protos-events 1.205.0 → 1.206.0
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/lib/index.d.ts +312 -0
- package/lib/index.js +874 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7000,6 +7000,318 @@ export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
|
|
|
7000
7000
|
public toJSON(): { [k: string]: any };
|
|
7001
7001
|
}
|
|
7002
7002
|
|
|
7003
|
+
/** Properties of a ContentfulMediaWrapperCreated. */
|
|
7004
|
+
export interface IContentfulMediaWrapperCreated {
|
|
7005
|
+
|
|
7006
|
+
/** ContentfulMediaWrapperCreated slug */
|
|
7007
|
+
slug?: (string|null);
|
|
7008
|
+
|
|
7009
|
+
/** ContentfulMediaWrapperCreated media */
|
|
7010
|
+
media?: ({ [k: string]: contentful.IIdReference }|null);
|
|
7011
|
+
|
|
7012
|
+
/** ContentfulMediaWrapperCreated caption */
|
|
7013
|
+
caption?: ({ [k: string]: contentful.IIdReference }|null);
|
|
7014
|
+
|
|
7015
|
+
/** ContentfulMediaWrapperCreated createdAt */
|
|
7016
|
+
createdAt?: (number|Long|null);
|
|
7017
|
+
}
|
|
7018
|
+
|
|
7019
|
+
/** Represents a ContentfulMediaWrapperCreated. */
|
|
7020
|
+
export class ContentfulMediaWrapperCreated implements IContentfulMediaWrapperCreated {
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* Constructs a new ContentfulMediaWrapperCreated.
|
|
7024
|
+
* @param [properties] Properties to set
|
|
7025
|
+
*/
|
|
7026
|
+
constructor(properties?: IContentfulMediaWrapperCreated);
|
|
7027
|
+
|
|
7028
|
+
/** ContentfulMediaWrapperCreated slug. */
|
|
7029
|
+
public slug: string;
|
|
7030
|
+
|
|
7031
|
+
/** ContentfulMediaWrapperCreated media. */
|
|
7032
|
+
public media: { [k: string]: contentful.IIdReference };
|
|
7033
|
+
|
|
7034
|
+
/** ContentfulMediaWrapperCreated caption. */
|
|
7035
|
+
public caption: { [k: string]: contentful.IIdReference };
|
|
7036
|
+
|
|
7037
|
+
/** ContentfulMediaWrapperCreated createdAt. */
|
|
7038
|
+
public createdAt: (number|Long);
|
|
7039
|
+
|
|
7040
|
+
/**
|
|
7041
|
+
* Creates a new ContentfulMediaWrapperCreated instance using the specified properties.
|
|
7042
|
+
* @param [properties] Properties to set
|
|
7043
|
+
* @returns ContentfulMediaWrapperCreated instance
|
|
7044
|
+
*/
|
|
7045
|
+
public static create(properties?: IContentfulMediaWrapperCreated): ContentfulMediaWrapperCreated;
|
|
7046
|
+
|
|
7047
|
+
/**
|
|
7048
|
+
* Encodes the specified ContentfulMediaWrapperCreated message. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
7049
|
+
* @param message ContentfulMediaWrapperCreated message or plain object to encode
|
|
7050
|
+
* @param [writer] Writer to encode to
|
|
7051
|
+
* @returns Writer
|
|
7052
|
+
*/
|
|
7053
|
+
public static encode(message: IContentfulMediaWrapperCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7054
|
+
|
|
7055
|
+
/**
|
|
7056
|
+
* Encodes the specified ContentfulMediaWrapperCreated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
7057
|
+
* @param message ContentfulMediaWrapperCreated message or plain object to encode
|
|
7058
|
+
* @param [writer] Writer to encode to
|
|
7059
|
+
* @returns Writer
|
|
7060
|
+
*/
|
|
7061
|
+
public static encodeDelimited(message: IContentfulMediaWrapperCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7062
|
+
|
|
7063
|
+
/**
|
|
7064
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer.
|
|
7065
|
+
* @param reader Reader or buffer to decode from
|
|
7066
|
+
* @param [length] Message length if known beforehand
|
|
7067
|
+
* @returns ContentfulMediaWrapperCreated
|
|
7068
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7069
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7070
|
+
*/
|
|
7071
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulMediaWrapperCreated;
|
|
7072
|
+
|
|
7073
|
+
/**
|
|
7074
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer, length delimited.
|
|
7075
|
+
* @param reader Reader or buffer to decode from
|
|
7076
|
+
* @returns ContentfulMediaWrapperCreated
|
|
7077
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7078
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7079
|
+
*/
|
|
7080
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulMediaWrapperCreated;
|
|
7081
|
+
|
|
7082
|
+
/**
|
|
7083
|
+
* Verifies a ContentfulMediaWrapperCreated message.
|
|
7084
|
+
* @param message Plain object to verify
|
|
7085
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7086
|
+
*/
|
|
7087
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7088
|
+
|
|
7089
|
+
/**
|
|
7090
|
+
* Creates a ContentfulMediaWrapperCreated message from a plain object. Also converts values to their respective internal types.
|
|
7091
|
+
* @param object Plain object
|
|
7092
|
+
* @returns ContentfulMediaWrapperCreated
|
|
7093
|
+
*/
|
|
7094
|
+
public static fromObject(object: { [k: string]: any }): ContentfulMediaWrapperCreated;
|
|
7095
|
+
|
|
7096
|
+
/**
|
|
7097
|
+
* Creates a plain object from a ContentfulMediaWrapperCreated message. Also converts values to other types if specified.
|
|
7098
|
+
* @param message ContentfulMediaWrapperCreated
|
|
7099
|
+
* @param [options] Conversion options
|
|
7100
|
+
* @returns Plain object
|
|
7101
|
+
*/
|
|
7102
|
+
public static toObject(message: ContentfulMediaWrapperCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7103
|
+
|
|
7104
|
+
/**
|
|
7105
|
+
* Converts this ContentfulMediaWrapperCreated to JSON.
|
|
7106
|
+
* @returns JSON object
|
|
7107
|
+
*/
|
|
7108
|
+
public toJSON(): { [k: string]: any };
|
|
7109
|
+
}
|
|
7110
|
+
|
|
7111
|
+
/** Properties of a ContentfulMediaWrapperUpdated. */
|
|
7112
|
+
export interface IContentfulMediaWrapperUpdated {
|
|
7113
|
+
|
|
7114
|
+
/** ContentfulMediaWrapperUpdated slug */
|
|
7115
|
+
slug?: (string|null);
|
|
7116
|
+
|
|
7117
|
+
/** ContentfulMediaWrapperUpdated media */
|
|
7118
|
+
media?: ({ [k: string]: contentful.IIdReference }|null);
|
|
7119
|
+
|
|
7120
|
+
/** ContentfulMediaWrapperUpdated caption */
|
|
7121
|
+
caption?: ({ [k: string]: contentful.IIdReference }|null);
|
|
7122
|
+
|
|
7123
|
+
/** ContentfulMediaWrapperUpdated updatedAt */
|
|
7124
|
+
updatedAt?: (number|Long|null);
|
|
7125
|
+
}
|
|
7126
|
+
|
|
7127
|
+
/** Represents a ContentfulMediaWrapperUpdated. */
|
|
7128
|
+
export class ContentfulMediaWrapperUpdated implements IContentfulMediaWrapperUpdated {
|
|
7129
|
+
|
|
7130
|
+
/**
|
|
7131
|
+
* Constructs a new ContentfulMediaWrapperUpdated.
|
|
7132
|
+
* @param [properties] Properties to set
|
|
7133
|
+
*/
|
|
7134
|
+
constructor(properties?: IContentfulMediaWrapperUpdated);
|
|
7135
|
+
|
|
7136
|
+
/** ContentfulMediaWrapperUpdated slug. */
|
|
7137
|
+
public slug: string;
|
|
7138
|
+
|
|
7139
|
+
/** ContentfulMediaWrapperUpdated media. */
|
|
7140
|
+
public media: { [k: string]: contentful.IIdReference };
|
|
7141
|
+
|
|
7142
|
+
/** ContentfulMediaWrapperUpdated caption. */
|
|
7143
|
+
public caption: { [k: string]: contentful.IIdReference };
|
|
7144
|
+
|
|
7145
|
+
/** ContentfulMediaWrapperUpdated updatedAt. */
|
|
7146
|
+
public updatedAt: (number|Long);
|
|
7147
|
+
|
|
7148
|
+
/**
|
|
7149
|
+
* Creates a new ContentfulMediaWrapperUpdated instance using the specified properties.
|
|
7150
|
+
* @param [properties] Properties to set
|
|
7151
|
+
* @returns ContentfulMediaWrapperUpdated instance
|
|
7152
|
+
*/
|
|
7153
|
+
public static create(properties?: IContentfulMediaWrapperUpdated): ContentfulMediaWrapperUpdated;
|
|
7154
|
+
|
|
7155
|
+
/**
|
|
7156
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
7157
|
+
* @param message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
7158
|
+
* @param [writer] Writer to encode to
|
|
7159
|
+
* @returns Writer
|
|
7160
|
+
*/
|
|
7161
|
+
public static encode(message: IContentfulMediaWrapperUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7162
|
+
|
|
7163
|
+
/**
|
|
7164
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
7165
|
+
* @param message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
7166
|
+
* @param [writer] Writer to encode to
|
|
7167
|
+
* @returns Writer
|
|
7168
|
+
*/
|
|
7169
|
+
public static encodeDelimited(message: IContentfulMediaWrapperUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer.
|
|
7173
|
+
* @param reader Reader or buffer to decode from
|
|
7174
|
+
* @param [length] Message length if known beforehand
|
|
7175
|
+
* @returns ContentfulMediaWrapperUpdated
|
|
7176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7178
|
+
*/
|
|
7179
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulMediaWrapperUpdated;
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer, length delimited.
|
|
7183
|
+
* @param reader Reader or buffer to decode from
|
|
7184
|
+
* @returns ContentfulMediaWrapperUpdated
|
|
7185
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7186
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7187
|
+
*/
|
|
7188
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulMediaWrapperUpdated;
|
|
7189
|
+
|
|
7190
|
+
/**
|
|
7191
|
+
* Verifies a ContentfulMediaWrapperUpdated message.
|
|
7192
|
+
* @param message Plain object to verify
|
|
7193
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7194
|
+
*/
|
|
7195
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7196
|
+
|
|
7197
|
+
/**
|
|
7198
|
+
* Creates a ContentfulMediaWrapperUpdated message from a plain object. Also converts values to their respective internal types.
|
|
7199
|
+
* @param object Plain object
|
|
7200
|
+
* @returns ContentfulMediaWrapperUpdated
|
|
7201
|
+
*/
|
|
7202
|
+
public static fromObject(object: { [k: string]: any }): ContentfulMediaWrapperUpdated;
|
|
7203
|
+
|
|
7204
|
+
/**
|
|
7205
|
+
* Creates a plain object from a ContentfulMediaWrapperUpdated message. Also converts values to other types if specified.
|
|
7206
|
+
* @param message ContentfulMediaWrapperUpdated
|
|
7207
|
+
* @param [options] Conversion options
|
|
7208
|
+
* @returns Plain object
|
|
7209
|
+
*/
|
|
7210
|
+
public static toObject(message: ContentfulMediaWrapperUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7211
|
+
|
|
7212
|
+
/**
|
|
7213
|
+
* Converts this ContentfulMediaWrapperUpdated to JSON.
|
|
7214
|
+
* @returns JSON object
|
|
7215
|
+
*/
|
|
7216
|
+
public toJSON(): { [k: string]: any };
|
|
7217
|
+
}
|
|
7218
|
+
|
|
7219
|
+
/** Properties of a ContentfulMediaWrapperDeleted. */
|
|
7220
|
+
export interface IContentfulMediaWrapperDeleted {
|
|
7221
|
+
|
|
7222
|
+
/** ContentfulMediaWrapperDeleted slug */
|
|
7223
|
+
slug?: (string|null);
|
|
7224
|
+
|
|
7225
|
+
/** ContentfulMediaWrapperDeleted deletedAt */
|
|
7226
|
+
deletedAt?: (number|Long|null);
|
|
7227
|
+
}
|
|
7228
|
+
|
|
7229
|
+
/** Represents a ContentfulMediaWrapperDeleted. */
|
|
7230
|
+
export class ContentfulMediaWrapperDeleted implements IContentfulMediaWrapperDeleted {
|
|
7231
|
+
|
|
7232
|
+
/**
|
|
7233
|
+
* Constructs a new ContentfulMediaWrapperDeleted.
|
|
7234
|
+
* @param [properties] Properties to set
|
|
7235
|
+
*/
|
|
7236
|
+
constructor(properties?: IContentfulMediaWrapperDeleted);
|
|
7237
|
+
|
|
7238
|
+
/** ContentfulMediaWrapperDeleted slug. */
|
|
7239
|
+
public slug: string;
|
|
7240
|
+
|
|
7241
|
+
/** ContentfulMediaWrapperDeleted deletedAt. */
|
|
7242
|
+
public deletedAt: (number|Long);
|
|
7243
|
+
|
|
7244
|
+
/**
|
|
7245
|
+
* Creates a new ContentfulMediaWrapperDeleted instance using the specified properties.
|
|
7246
|
+
* @param [properties] Properties to set
|
|
7247
|
+
* @returns ContentfulMediaWrapperDeleted instance
|
|
7248
|
+
*/
|
|
7249
|
+
public static create(properties?: IContentfulMediaWrapperDeleted): ContentfulMediaWrapperDeleted;
|
|
7250
|
+
|
|
7251
|
+
/**
|
|
7252
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
7253
|
+
* @param message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
7254
|
+
* @param [writer] Writer to encode to
|
|
7255
|
+
* @returns Writer
|
|
7256
|
+
*/
|
|
7257
|
+
public static encode(message: IContentfulMediaWrapperDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7258
|
+
|
|
7259
|
+
/**
|
|
7260
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message, length delimited. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
7261
|
+
* @param message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
7262
|
+
* @param [writer] Writer to encode to
|
|
7263
|
+
* @returns Writer
|
|
7264
|
+
*/
|
|
7265
|
+
public static encodeDelimited(message: IContentfulMediaWrapperDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7266
|
+
|
|
7267
|
+
/**
|
|
7268
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer.
|
|
7269
|
+
* @param reader Reader or buffer to decode from
|
|
7270
|
+
* @param [length] Message length if known beforehand
|
|
7271
|
+
* @returns ContentfulMediaWrapperDeleted
|
|
7272
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7273
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7274
|
+
*/
|
|
7275
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulMediaWrapperDeleted;
|
|
7276
|
+
|
|
7277
|
+
/**
|
|
7278
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer, length delimited.
|
|
7279
|
+
* @param reader Reader or buffer to decode from
|
|
7280
|
+
* @returns ContentfulMediaWrapperDeleted
|
|
7281
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7282
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7283
|
+
*/
|
|
7284
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulMediaWrapperDeleted;
|
|
7285
|
+
|
|
7286
|
+
/**
|
|
7287
|
+
* Verifies a ContentfulMediaWrapperDeleted message.
|
|
7288
|
+
* @param message Plain object to verify
|
|
7289
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7290
|
+
*/
|
|
7291
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7292
|
+
|
|
7293
|
+
/**
|
|
7294
|
+
* Creates a ContentfulMediaWrapperDeleted message from a plain object. Also converts values to their respective internal types.
|
|
7295
|
+
* @param object Plain object
|
|
7296
|
+
* @returns ContentfulMediaWrapperDeleted
|
|
7297
|
+
*/
|
|
7298
|
+
public static fromObject(object: { [k: string]: any }): ContentfulMediaWrapperDeleted;
|
|
7299
|
+
|
|
7300
|
+
/**
|
|
7301
|
+
* Creates a plain object from a ContentfulMediaWrapperDeleted message. Also converts values to other types if specified.
|
|
7302
|
+
* @param message ContentfulMediaWrapperDeleted
|
|
7303
|
+
* @param [options] Conversion options
|
|
7304
|
+
* @returns Plain object
|
|
7305
|
+
*/
|
|
7306
|
+
public static toObject(message: ContentfulMediaWrapperDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7307
|
+
|
|
7308
|
+
/**
|
|
7309
|
+
* Converts this ContentfulMediaWrapperDeleted to JSON.
|
|
7310
|
+
* @returns JSON object
|
|
7311
|
+
*/
|
|
7312
|
+
public toJSON(): { [k: string]: any };
|
|
7313
|
+
}
|
|
7314
|
+
|
|
7003
7315
|
/** Properties of a ContentfulTopicCreated. */
|
|
7004
7316
|
export interface IContentfulTopicCreated {
|
|
7005
7317
|
|
package/lib/index.js
CHANGED
|
@@ -18217,6 +18217,880 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18217
18217
|
return ContentfulCategoryDeleted;
|
|
18218
18218
|
})();
|
|
18219
18219
|
|
|
18220
|
+
$root.ContentfulMediaWrapperCreated = (function() {
|
|
18221
|
+
|
|
18222
|
+
/**
|
|
18223
|
+
* Properties of a ContentfulMediaWrapperCreated.
|
|
18224
|
+
* @exports IContentfulMediaWrapperCreated
|
|
18225
|
+
* @interface IContentfulMediaWrapperCreated
|
|
18226
|
+
* @property {string|null} [slug] ContentfulMediaWrapperCreated slug
|
|
18227
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulMediaWrapperCreated media
|
|
18228
|
+
* @property {Object.<string,contentful.IIdReference>|null} [caption] ContentfulMediaWrapperCreated caption
|
|
18229
|
+
* @property {number|Long|null} [createdAt] ContentfulMediaWrapperCreated createdAt
|
|
18230
|
+
*/
|
|
18231
|
+
|
|
18232
|
+
/**
|
|
18233
|
+
* Constructs a new ContentfulMediaWrapperCreated.
|
|
18234
|
+
* @exports ContentfulMediaWrapperCreated
|
|
18235
|
+
* @classdesc Represents a ContentfulMediaWrapperCreated.
|
|
18236
|
+
* @implements IContentfulMediaWrapperCreated
|
|
18237
|
+
* @constructor
|
|
18238
|
+
* @param {IContentfulMediaWrapperCreated=} [properties] Properties to set
|
|
18239
|
+
*/
|
|
18240
|
+
function ContentfulMediaWrapperCreated(properties) {
|
|
18241
|
+
this.media = {};
|
|
18242
|
+
this.caption = {};
|
|
18243
|
+
if (properties)
|
|
18244
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18245
|
+
if (properties[keys[i]] != null)
|
|
18246
|
+
this[keys[i]] = properties[keys[i]];
|
|
18247
|
+
}
|
|
18248
|
+
|
|
18249
|
+
/**
|
|
18250
|
+
* ContentfulMediaWrapperCreated slug.
|
|
18251
|
+
* @member {string} slug
|
|
18252
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18253
|
+
* @instance
|
|
18254
|
+
*/
|
|
18255
|
+
ContentfulMediaWrapperCreated.prototype.slug = "";
|
|
18256
|
+
|
|
18257
|
+
/**
|
|
18258
|
+
* ContentfulMediaWrapperCreated media.
|
|
18259
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
18260
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18261
|
+
* @instance
|
|
18262
|
+
*/
|
|
18263
|
+
ContentfulMediaWrapperCreated.prototype.media = $util.emptyObject;
|
|
18264
|
+
|
|
18265
|
+
/**
|
|
18266
|
+
* ContentfulMediaWrapperCreated caption.
|
|
18267
|
+
* @member {Object.<string,contentful.IIdReference>} caption
|
|
18268
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18269
|
+
* @instance
|
|
18270
|
+
*/
|
|
18271
|
+
ContentfulMediaWrapperCreated.prototype.caption = $util.emptyObject;
|
|
18272
|
+
|
|
18273
|
+
/**
|
|
18274
|
+
* ContentfulMediaWrapperCreated createdAt.
|
|
18275
|
+
* @member {number|Long} createdAt
|
|
18276
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18277
|
+
* @instance
|
|
18278
|
+
*/
|
|
18279
|
+
ContentfulMediaWrapperCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18280
|
+
|
|
18281
|
+
/**
|
|
18282
|
+
* Creates a new ContentfulMediaWrapperCreated instance using the specified properties.
|
|
18283
|
+
* @function create
|
|
18284
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18285
|
+
* @static
|
|
18286
|
+
* @param {IContentfulMediaWrapperCreated=} [properties] Properties to set
|
|
18287
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated instance
|
|
18288
|
+
*/
|
|
18289
|
+
ContentfulMediaWrapperCreated.create = function create(properties) {
|
|
18290
|
+
return new ContentfulMediaWrapperCreated(properties);
|
|
18291
|
+
};
|
|
18292
|
+
|
|
18293
|
+
/**
|
|
18294
|
+
* Encodes the specified ContentfulMediaWrapperCreated message. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
18295
|
+
* @function encode
|
|
18296
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18297
|
+
* @static
|
|
18298
|
+
* @param {IContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated message or plain object to encode
|
|
18299
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18300
|
+
* @returns {$protobuf.Writer} Writer
|
|
18301
|
+
*/
|
|
18302
|
+
ContentfulMediaWrapperCreated.encode = function encode(message, writer) {
|
|
18303
|
+
if (!writer)
|
|
18304
|
+
writer = $Writer.create();
|
|
18305
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18306
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18307
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
18308
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
18309
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18310
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18311
|
+
}
|
|
18312
|
+
if (message.caption != null && message.hasOwnProperty("caption"))
|
|
18313
|
+
for (var keys = Object.keys(message.caption), i = 0; i < keys.length; ++i) {
|
|
18314
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18315
|
+
$root.contentful.IdReference.encode(message.caption[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18316
|
+
}
|
|
18317
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18318
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
18319
|
+
return writer;
|
|
18320
|
+
};
|
|
18321
|
+
|
|
18322
|
+
/**
|
|
18323
|
+
* Encodes the specified ContentfulMediaWrapperCreated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
18324
|
+
* @function encodeDelimited
|
|
18325
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18326
|
+
* @static
|
|
18327
|
+
* @param {IContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated message or plain object to encode
|
|
18328
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18329
|
+
* @returns {$protobuf.Writer} Writer
|
|
18330
|
+
*/
|
|
18331
|
+
ContentfulMediaWrapperCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18332
|
+
return this.encode(message, writer).ldelim();
|
|
18333
|
+
};
|
|
18334
|
+
|
|
18335
|
+
/**
|
|
18336
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer.
|
|
18337
|
+
* @function decode
|
|
18338
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18339
|
+
* @static
|
|
18340
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18341
|
+
* @param {number} [length] Message length if known beforehand
|
|
18342
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
18343
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18344
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18345
|
+
*/
|
|
18346
|
+
ContentfulMediaWrapperCreated.decode = function decode(reader, length) {
|
|
18347
|
+
if (!(reader instanceof $Reader))
|
|
18348
|
+
reader = $Reader.create(reader);
|
|
18349
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperCreated(), key;
|
|
18350
|
+
while (reader.pos < end) {
|
|
18351
|
+
var tag = reader.uint32();
|
|
18352
|
+
switch (tag >>> 3) {
|
|
18353
|
+
case 1:
|
|
18354
|
+
message.slug = reader.string();
|
|
18355
|
+
break;
|
|
18356
|
+
case 2:
|
|
18357
|
+
reader.skip().pos++;
|
|
18358
|
+
if (message.media === $util.emptyObject)
|
|
18359
|
+
message.media = {};
|
|
18360
|
+
key = reader.string();
|
|
18361
|
+
reader.pos++;
|
|
18362
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18363
|
+
break;
|
|
18364
|
+
case 3:
|
|
18365
|
+
reader.skip().pos++;
|
|
18366
|
+
if (message.caption === $util.emptyObject)
|
|
18367
|
+
message.caption = {};
|
|
18368
|
+
key = reader.string();
|
|
18369
|
+
reader.pos++;
|
|
18370
|
+
message.caption[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18371
|
+
break;
|
|
18372
|
+
case 4:
|
|
18373
|
+
message.createdAt = reader.uint64();
|
|
18374
|
+
break;
|
|
18375
|
+
default:
|
|
18376
|
+
reader.skipType(tag & 7);
|
|
18377
|
+
break;
|
|
18378
|
+
}
|
|
18379
|
+
}
|
|
18380
|
+
return message;
|
|
18381
|
+
};
|
|
18382
|
+
|
|
18383
|
+
/**
|
|
18384
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer, length delimited.
|
|
18385
|
+
* @function decodeDelimited
|
|
18386
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18387
|
+
* @static
|
|
18388
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18389
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
18390
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18391
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18392
|
+
*/
|
|
18393
|
+
ContentfulMediaWrapperCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
18394
|
+
if (!(reader instanceof $Reader))
|
|
18395
|
+
reader = new $Reader(reader);
|
|
18396
|
+
return this.decode(reader, reader.uint32());
|
|
18397
|
+
};
|
|
18398
|
+
|
|
18399
|
+
/**
|
|
18400
|
+
* Verifies a ContentfulMediaWrapperCreated message.
|
|
18401
|
+
* @function verify
|
|
18402
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18403
|
+
* @static
|
|
18404
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18405
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18406
|
+
*/
|
|
18407
|
+
ContentfulMediaWrapperCreated.verify = function verify(message) {
|
|
18408
|
+
if (typeof message !== "object" || message === null)
|
|
18409
|
+
return "object expected";
|
|
18410
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18411
|
+
if (!$util.isString(message.slug))
|
|
18412
|
+
return "slug: string expected";
|
|
18413
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
18414
|
+
if (!$util.isObject(message.media))
|
|
18415
|
+
return "media: object expected";
|
|
18416
|
+
var key = Object.keys(message.media);
|
|
18417
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18418
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
18419
|
+
if (error)
|
|
18420
|
+
return "media." + error;
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
if (message.caption != null && message.hasOwnProperty("caption")) {
|
|
18424
|
+
if (!$util.isObject(message.caption))
|
|
18425
|
+
return "caption: object expected";
|
|
18426
|
+
var key = Object.keys(message.caption);
|
|
18427
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18428
|
+
var error = $root.contentful.IdReference.verify(message.caption[key[i]]);
|
|
18429
|
+
if (error)
|
|
18430
|
+
return "caption." + error;
|
|
18431
|
+
}
|
|
18432
|
+
}
|
|
18433
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18434
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
18435
|
+
return "createdAt: integer|Long expected";
|
|
18436
|
+
return null;
|
|
18437
|
+
};
|
|
18438
|
+
|
|
18439
|
+
/**
|
|
18440
|
+
* Creates a ContentfulMediaWrapperCreated message from a plain object. Also converts values to their respective internal types.
|
|
18441
|
+
* @function fromObject
|
|
18442
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18443
|
+
* @static
|
|
18444
|
+
* @param {Object.<string,*>} object Plain object
|
|
18445
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
18446
|
+
*/
|
|
18447
|
+
ContentfulMediaWrapperCreated.fromObject = function fromObject(object) {
|
|
18448
|
+
if (object instanceof $root.ContentfulMediaWrapperCreated)
|
|
18449
|
+
return object;
|
|
18450
|
+
var message = new $root.ContentfulMediaWrapperCreated();
|
|
18451
|
+
if (object.slug != null)
|
|
18452
|
+
message.slug = String(object.slug);
|
|
18453
|
+
if (object.media) {
|
|
18454
|
+
if (typeof object.media !== "object")
|
|
18455
|
+
throw TypeError(".ContentfulMediaWrapperCreated.media: object expected");
|
|
18456
|
+
message.media = {};
|
|
18457
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
18458
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
18459
|
+
throw TypeError(".ContentfulMediaWrapperCreated.media: object expected");
|
|
18460
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
18461
|
+
}
|
|
18462
|
+
}
|
|
18463
|
+
if (object.caption) {
|
|
18464
|
+
if (typeof object.caption !== "object")
|
|
18465
|
+
throw TypeError(".ContentfulMediaWrapperCreated.caption: object expected");
|
|
18466
|
+
message.caption = {};
|
|
18467
|
+
for (var keys = Object.keys(object.caption), i = 0; i < keys.length; ++i) {
|
|
18468
|
+
if (typeof object.caption[keys[i]] !== "object")
|
|
18469
|
+
throw TypeError(".ContentfulMediaWrapperCreated.caption: object expected");
|
|
18470
|
+
message.caption[keys[i]] = $root.contentful.IdReference.fromObject(object.caption[keys[i]]);
|
|
18471
|
+
}
|
|
18472
|
+
}
|
|
18473
|
+
if (object.createdAt != null)
|
|
18474
|
+
if ($util.Long)
|
|
18475
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
18476
|
+
else if (typeof object.createdAt === "string")
|
|
18477
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
18478
|
+
else if (typeof object.createdAt === "number")
|
|
18479
|
+
message.createdAt = object.createdAt;
|
|
18480
|
+
else if (typeof object.createdAt === "object")
|
|
18481
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
18482
|
+
return message;
|
|
18483
|
+
};
|
|
18484
|
+
|
|
18485
|
+
/**
|
|
18486
|
+
* Creates a plain object from a ContentfulMediaWrapperCreated message. Also converts values to other types if specified.
|
|
18487
|
+
* @function toObject
|
|
18488
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18489
|
+
* @static
|
|
18490
|
+
* @param {ContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated
|
|
18491
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18492
|
+
* @returns {Object.<string,*>} Plain object
|
|
18493
|
+
*/
|
|
18494
|
+
ContentfulMediaWrapperCreated.toObject = function toObject(message, options) {
|
|
18495
|
+
if (!options)
|
|
18496
|
+
options = {};
|
|
18497
|
+
var object = {};
|
|
18498
|
+
if (options.objects || options.defaults) {
|
|
18499
|
+
object.media = {};
|
|
18500
|
+
object.caption = {};
|
|
18501
|
+
}
|
|
18502
|
+
if (options.defaults) {
|
|
18503
|
+
object.slug = "";
|
|
18504
|
+
if ($util.Long) {
|
|
18505
|
+
var long = new $util.Long(0, 0, true);
|
|
18506
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18507
|
+
} else
|
|
18508
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
18509
|
+
}
|
|
18510
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18511
|
+
object.slug = message.slug;
|
|
18512
|
+
var keys2;
|
|
18513
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
18514
|
+
object.media = {};
|
|
18515
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18516
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
18517
|
+
}
|
|
18518
|
+
if (message.caption && (keys2 = Object.keys(message.caption)).length) {
|
|
18519
|
+
object.caption = {};
|
|
18520
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18521
|
+
object.caption[keys2[j]] = $root.contentful.IdReference.toObject(message.caption[keys2[j]], options);
|
|
18522
|
+
}
|
|
18523
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18524
|
+
if (typeof message.createdAt === "number")
|
|
18525
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
18526
|
+
else
|
|
18527
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
18528
|
+
return object;
|
|
18529
|
+
};
|
|
18530
|
+
|
|
18531
|
+
/**
|
|
18532
|
+
* Converts this ContentfulMediaWrapperCreated to JSON.
|
|
18533
|
+
* @function toJSON
|
|
18534
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18535
|
+
* @instance
|
|
18536
|
+
* @returns {Object.<string,*>} JSON object
|
|
18537
|
+
*/
|
|
18538
|
+
ContentfulMediaWrapperCreated.prototype.toJSON = function toJSON() {
|
|
18539
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18540
|
+
};
|
|
18541
|
+
|
|
18542
|
+
return ContentfulMediaWrapperCreated;
|
|
18543
|
+
})();
|
|
18544
|
+
|
|
18545
|
+
$root.ContentfulMediaWrapperUpdated = (function() {
|
|
18546
|
+
|
|
18547
|
+
/**
|
|
18548
|
+
* Properties of a ContentfulMediaWrapperUpdated.
|
|
18549
|
+
* @exports IContentfulMediaWrapperUpdated
|
|
18550
|
+
* @interface IContentfulMediaWrapperUpdated
|
|
18551
|
+
* @property {string|null} [slug] ContentfulMediaWrapperUpdated slug
|
|
18552
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulMediaWrapperUpdated media
|
|
18553
|
+
* @property {Object.<string,contentful.IIdReference>|null} [caption] ContentfulMediaWrapperUpdated caption
|
|
18554
|
+
* @property {number|Long|null} [updatedAt] ContentfulMediaWrapperUpdated updatedAt
|
|
18555
|
+
*/
|
|
18556
|
+
|
|
18557
|
+
/**
|
|
18558
|
+
* Constructs a new ContentfulMediaWrapperUpdated.
|
|
18559
|
+
* @exports ContentfulMediaWrapperUpdated
|
|
18560
|
+
* @classdesc Represents a ContentfulMediaWrapperUpdated.
|
|
18561
|
+
* @implements IContentfulMediaWrapperUpdated
|
|
18562
|
+
* @constructor
|
|
18563
|
+
* @param {IContentfulMediaWrapperUpdated=} [properties] Properties to set
|
|
18564
|
+
*/
|
|
18565
|
+
function ContentfulMediaWrapperUpdated(properties) {
|
|
18566
|
+
this.media = {};
|
|
18567
|
+
this.caption = {};
|
|
18568
|
+
if (properties)
|
|
18569
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18570
|
+
if (properties[keys[i]] != null)
|
|
18571
|
+
this[keys[i]] = properties[keys[i]];
|
|
18572
|
+
}
|
|
18573
|
+
|
|
18574
|
+
/**
|
|
18575
|
+
* ContentfulMediaWrapperUpdated slug.
|
|
18576
|
+
* @member {string} slug
|
|
18577
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18578
|
+
* @instance
|
|
18579
|
+
*/
|
|
18580
|
+
ContentfulMediaWrapperUpdated.prototype.slug = "";
|
|
18581
|
+
|
|
18582
|
+
/**
|
|
18583
|
+
* ContentfulMediaWrapperUpdated media.
|
|
18584
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
18585
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18586
|
+
* @instance
|
|
18587
|
+
*/
|
|
18588
|
+
ContentfulMediaWrapperUpdated.prototype.media = $util.emptyObject;
|
|
18589
|
+
|
|
18590
|
+
/**
|
|
18591
|
+
* ContentfulMediaWrapperUpdated caption.
|
|
18592
|
+
* @member {Object.<string,contentful.IIdReference>} caption
|
|
18593
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18594
|
+
* @instance
|
|
18595
|
+
*/
|
|
18596
|
+
ContentfulMediaWrapperUpdated.prototype.caption = $util.emptyObject;
|
|
18597
|
+
|
|
18598
|
+
/**
|
|
18599
|
+
* ContentfulMediaWrapperUpdated updatedAt.
|
|
18600
|
+
* @member {number|Long} updatedAt
|
|
18601
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18602
|
+
* @instance
|
|
18603
|
+
*/
|
|
18604
|
+
ContentfulMediaWrapperUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18605
|
+
|
|
18606
|
+
/**
|
|
18607
|
+
* Creates a new ContentfulMediaWrapperUpdated instance using the specified properties.
|
|
18608
|
+
* @function create
|
|
18609
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18610
|
+
* @static
|
|
18611
|
+
* @param {IContentfulMediaWrapperUpdated=} [properties] Properties to set
|
|
18612
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated instance
|
|
18613
|
+
*/
|
|
18614
|
+
ContentfulMediaWrapperUpdated.create = function create(properties) {
|
|
18615
|
+
return new ContentfulMediaWrapperUpdated(properties);
|
|
18616
|
+
};
|
|
18617
|
+
|
|
18618
|
+
/**
|
|
18619
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
18620
|
+
* @function encode
|
|
18621
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18622
|
+
* @static
|
|
18623
|
+
* @param {IContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
18624
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18625
|
+
* @returns {$protobuf.Writer} Writer
|
|
18626
|
+
*/
|
|
18627
|
+
ContentfulMediaWrapperUpdated.encode = function encode(message, writer) {
|
|
18628
|
+
if (!writer)
|
|
18629
|
+
writer = $Writer.create();
|
|
18630
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18631
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18632
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
18633
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
18634
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18635
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18636
|
+
}
|
|
18637
|
+
if (message.caption != null && message.hasOwnProperty("caption"))
|
|
18638
|
+
for (var keys = Object.keys(message.caption), i = 0; i < keys.length; ++i) {
|
|
18639
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18640
|
+
$root.contentful.IdReference.encode(message.caption[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18641
|
+
}
|
|
18642
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18643
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
18644
|
+
return writer;
|
|
18645
|
+
};
|
|
18646
|
+
|
|
18647
|
+
/**
|
|
18648
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
18649
|
+
* @function encodeDelimited
|
|
18650
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18651
|
+
* @static
|
|
18652
|
+
* @param {IContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
18653
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18654
|
+
* @returns {$protobuf.Writer} Writer
|
|
18655
|
+
*/
|
|
18656
|
+
ContentfulMediaWrapperUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18657
|
+
return this.encode(message, writer).ldelim();
|
|
18658
|
+
};
|
|
18659
|
+
|
|
18660
|
+
/**
|
|
18661
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer.
|
|
18662
|
+
* @function decode
|
|
18663
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18664
|
+
* @static
|
|
18665
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18666
|
+
* @param {number} [length] Message length if known beforehand
|
|
18667
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
18668
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18669
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18670
|
+
*/
|
|
18671
|
+
ContentfulMediaWrapperUpdated.decode = function decode(reader, length) {
|
|
18672
|
+
if (!(reader instanceof $Reader))
|
|
18673
|
+
reader = $Reader.create(reader);
|
|
18674
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperUpdated(), key;
|
|
18675
|
+
while (reader.pos < end) {
|
|
18676
|
+
var tag = reader.uint32();
|
|
18677
|
+
switch (tag >>> 3) {
|
|
18678
|
+
case 1:
|
|
18679
|
+
message.slug = reader.string();
|
|
18680
|
+
break;
|
|
18681
|
+
case 2:
|
|
18682
|
+
reader.skip().pos++;
|
|
18683
|
+
if (message.media === $util.emptyObject)
|
|
18684
|
+
message.media = {};
|
|
18685
|
+
key = reader.string();
|
|
18686
|
+
reader.pos++;
|
|
18687
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18688
|
+
break;
|
|
18689
|
+
case 3:
|
|
18690
|
+
reader.skip().pos++;
|
|
18691
|
+
if (message.caption === $util.emptyObject)
|
|
18692
|
+
message.caption = {};
|
|
18693
|
+
key = reader.string();
|
|
18694
|
+
reader.pos++;
|
|
18695
|
+
message.caption[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18696
|
+
break;
|
|
18697
|
+
case 4:
|
|
18698
|
+
message.updatedAt = reader.uint64();
|
|
18699
|
+
break;
|
|
18700
|
+
default:
|
|
18701
|
+
reader.skipType(tag & 7);
|
|
18702
|
+
break;
|
|
18703
|
+
}
|
|
18704
|
+
}
|
|
18705
|
+
return message;
|
|
18706
|
+
};
|
|
18707
|
+
|
|
18708
|
+
/**
|
|
18709
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer, length delimited.
|
|
18710
|
+
* @function decodeDelimited
|
|
18711
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18712
|
+
* @static
|
|
18713
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18714
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
18715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18717
|
+
*/
|
|
18718
|
+
ContentfulMediaWrapperUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
18719
|
+
if (!(reader instanceof $Reader))
|
|
18720
|
+
reader = new $Reader(reader);
|
|
18721
|
+
return this.decode(reader, reader.uint32());
|
|
18722
|
+
};
|
|
18723
|
+
|
|
18724
|
+
/**
|
|
18725
|
+
* Verifies a ContentfulMediaWrapperUpdated message.
|
|
18726
|
+
* @function verify
|
|
18727
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18728
|
+
* @static
|
|
18729
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18730
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18731
|
+
*/
|
|
18732
|
+
ContentfulMediaWrapperUpdated.verify = function verify(message) {
|
|
18733
|
+
if (typeof message !== "object" || message === null)
|
|
18734
|
+
return "object expected";
|
|
18735
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18736
|
+
if (!$util.isString(message.slug))
|
|
18737
|
+
return "slug: string expected";
|
|
18738
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
18739
|
+
if (!$util.isObject(message.media))
|
|
18740
|
+
return "media: object expected";
|
|
18741
|
+
var key = Object.keys(message.media);
|
|
18742
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18743
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
18744
|
+
if (error)
|
|
18745
|
+
return "media." + error;
|
|
18746
|
+
}
|
|
18747
|
+
}
|
|
18748
|
+
if (message.caption != null && message.hasOwnProperty("caption")) {
|
|
18749
|
+
if (!$util.isObject(message.caption))
|
|
18750
|
+
return "caption: object expected";
|
|
18751
|
+
var key = Object.keys(message.caption);
|
|
18752
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18753
|
+
var error = $root.contentful.IdReference.verify(message.caption[key[i]]);
|
|
18754
|
+
if (error)
|
|
18755
|
+
return "caption." + error;
|
|
18756
|
+
}
|
|
18757
|
+
}
|
|
18758
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18759
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
18760
|
+
return "updatedAt: integer|Long expected";
|
|
18761
|
+
return null;
|
|
18762
|
+
};
|
|
18763
|
+
|
|
18764
|
+
/**
|
|
18765
|
+
* Creates a ContentfulMediaWrapperUpdated message from a plain object. Also converts values to their respective internal types.
|
|
18766
|
+
* @function fromObject
|
|
18767
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18768
|
+
* @static
|
|
18769
|
+
* @param {Object.<string,*>} object Plain object
|
|
18770
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
18771
|
+
*/
|
|
18772
|
+
ContentfulMediaWrapperUpdated.fromObject = function fromObject(object) {
|
|
18773
|
+
if (object instanceof $root.ContentfulMediaWrapperUpdated)
|
|
18774
|
+
return object;
|
|
18775
|
+
var message = new $root.ContentfulMediaWrapperUpdated();
|
|
18776
|
+
if (object.slug != null)
|
|
18777
|
+
message.slug = String(object.slug);
|
|
18778
|
+
if (object.media) {
|
|
18779
|
+
if (typeof object.media !== "object")
|
|
18780
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.media: object expected");
|
|
18781
|
+
message.media = {};
|
|
18782
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
18783
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
18784
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.media: object expected");
|
|
18785
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
18786
|
+
}
|
|
18787
|
+
}
|
|
18788
|
+
if (object.caption) {
|
|
18789
|
+
if (typeof object.caption !== "object")
|
|
18790
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.caption: object expected");
|
|
18791
|
+
message.caption = {};
|
|
18792
|
+
for (var keys = Object.keys(object.caption), i = 0; i < keys.length; ++i) {
|
|
18793
|
+
if (typeof object.caption[keys[i]] !== "object")
|
|
18794
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.caption: object expected");
|
|
18795
|
+
message.caption[keys[i]] = $root.contentful.IdReference.fromObject(object.caption[keys[i]]);
|
|
18796
|
+
}
|
|
18797
|
+
}
|
|
18798
|
+
if (object.updatedAt != null)
|
|
18799
|
+
if ($util.Long)
|
|
18800
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
18801
|
+
else if (typeof object.updatedAt === "string")
|
|
18802
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
18803
|
+
else if (typeof object.updatedAt === "number")
|
|
18804
|
+
message.updatedAt = object.updatedAt;
|
|
18805
|
+
else if (typeof object.updatedAt === "object")
|
|
18806
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
18807
|
+
return message;
|
|
18808
|
+
};
|
|
18809
|
+
|
|
18810
|
+
/**
|
|
18811
|
+
* Creates a plain object from a ContentfulMediaWrapperUpdated message. Also converts values to other types if specified.
|
|
18812
|
+
* @function toObject
|
|
18813
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18814
|
+
* @static
|
|
18815
|
+
* @param {ContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated
|
|
18816
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18817
|
+
* @returns {Object.<string,*>} Plain object
|
|
18818
|
+
*/
|
|
18819
|
+
ContentfulMediaWrapperUpdated.toObject = function toObject(message, options) {
|
|
18820
|
+
if (!options)
|
|
18821
|
+
options = {};
|
|
18822
|
+
var object = {};
|
|
18823
|
+
if (options.objects || options.defaults) {
|
|
18824
|
+
object.media = {};
|
|
18825
|
+
object.caption = {};
|
|
18826
|
+
}
|
|
18827
|
+
if (options.defaults) {
|
|
18828
|
+
object.slug = "";
|
|
18829
|
+
if ($util.Long) {
|
|
18830
|
+
var long = new $util.Long(0, 0, true);
|
|
18831
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18832
|
+
} else
|
|
18833
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
18834
|
+
}
|
|
18835
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18836
|
+
object.slug = message.slug;
|
|
18837
|
+
var keys2;
|
|
18838
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
18839
|
+
object.media = {};
|
|
18840
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18841
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
18842
|
+
}
|
|
18843
|
+
if (message.caption && (keys2 = Object.keys(message.caption)).length) {
|
|
18844
|
+
object.caption = {};
|
|
18845
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18846
|
+
object.caption[keys2[j]] = $root.contentful.IdReference.toObject(message.caption[keys2[j]], options);
|
|
18847
|
+
}
|
|
18848
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18849
|
+
if (typeof message.updatedAt === "number")
|
|
18850
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
18851
|
+
else
|
|
18852
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
18853
|
+
return object;
|
|
18854
|
+
};
|
|
18855
|
+
|
|
18856
|
+
/**
|
|
18857
|
+
* Converts this ContentfulMediaWrapperUpdated to JSON.
|
|
18858
|
+
* @function toJSON
|
|
18859
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18860
|
+
* @instance
|
|
18861
|
+
* @returns {Object.<string,*>} JSON object
|
|
18862
|
+
*/
|
|
18863
|
+
ContentfulMediaWrapperUpdated.prototype.toJSON = function toJSON() {
|
|
18864
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18865
|
+
};
|
|
18866
|
+
|
|
18867
|
+
return ContentfulMediaWrapperUpdated;
|
|
18868
|
+
})();
|
|
18869
|
+
|
|
18870
|
+
$root.ContentfulMediaWrapperDeleted = (function() {
|
|
18871
|
+
|
|
18872
|
+
/**
|
|
18873
|
+
* Properties of a ContentfulMediaWrapperDeleted.
|
|
18874
|
+
* @exports IContentfulMediaWrapperDeleted
|
|
18875
|
+
* @interface IContentfulMediaWrapperDeleted
|
|
18876
|
+
* @property {string|null} [slug] ContentfulMediaWrapperDeleted slug
|
|
18877
|
+
* @property {number|Long|null} [deletedAt] ContentfulMediaWrapperDeleted deletedAt
|
|
18878
|
+
*/
|
|
18879
|
+
|
|
18880
|
+
/**
|
|
18881
|
+
* Constructs a new ContentfulMediaWrapperDeleted.
|
|
18882
|
+
* @exports ContentfulMediaWrapperDeleted
|
|
18883
|
+
* @classdesc Represents a ContentfulMediaWrapperDeleted.
|
|
18884
|
+
* @implements IContentfulMediaWrapperDeleted
|
|
18885
|
+
* @constructor
|
|
18886
|
+
* @param {IContentfulMediaWrapperDeleted=} [properties] Properties to set
|
|
18887
|
+
*/
|
|
18888
|
+
function ContentfulMediaWrapperDeleted(properties) {
|
|
18889
|
+
if (properties)
|
|
18890
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18891
|
+
if (properties[keys[i]] != null)
|
|
18892
|
+
this[keys[i]] = properties[keys[i]];
|
|
18893
|
+
}
|
|
18894
|
+
|
|
18895
|
+
/**
|
|
18896
|
+
* ContentfulMediaWrapperDeleted slug.
|
|
18897
|
+
* @member {string} slug
|
|
18898
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18899
|
+
* @instance
|
|
18900
|
+
*/
|
|
18901
|
+
ContentfulMediaWrapperDeleted.prototype.slug = "";
|
|
18902
|
+
|
|
18903
|
+
/**
|
|
18904
|
+
* ContentfulMediaWrapperDeleted deletedAt.
|
|
18905
|
+
* @member {number|Long} deletedAt
|
|
18906
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18907
|
+
* @instance
|
|
18908
|
+
*/
|
|
18909
|
+
ContentfulMediaWrapperDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18910
|
+
|
|
18911
|
+
/**
|
|
18912
|
+
* Creates a new ContentfulMediaWrapperDeleted instance using the specified properties.
|
|
18913
|
+
* @function create
|
|
18914
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18915
|
+
* @static
|
|
18916
|
+
* @param {IContentfulMediaWrapperDeleted=} [properties] Properties to set
|
|
18917
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted instance
|
|
18918
|
+
*/
|
|
18919
|
+
ContentfulMediaWrapperDeleted.create = function create(properties) {
|
|
18920
|
+
return new ContentfulMediaWrapperDeleted(properties);
|
|
18921
|
+
};
|
|
18922
|
+
|
|
18923
|
+
/**
|
|
18924
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
18925
|
+
* @function encode
|
|
18926
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18927
|
+
* @static
|
|
18928
|
+
* @param {IContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
18929
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18930
|
+
* @returns {$protobuf.Writer} Writer
|
|
18931
|
+
*/
|
|
18932
|
+
ContentfulMediaWrapperDeleted.encode = function encode(message, writer) {
|
|
18933
|
+
if (!writer)
|
|
18934
|
+
writer = $Writer.create();
|
|
18935
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18936
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18937
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
18938
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
18939
|
+
return writer;
|
|
18940
|
+
};
|
|
18941
|
+
|
|
18942
|
+
/**
|
|
18943
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message, length delimited. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
18944
|
+
* @function encodeDelimited
|
|
18945
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18946
|
+
* @static
|
|
18947
|
+
* @param {IContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
18948
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18949
|
+
* @returns {$protobuf.Writer} Writer
|
|
18950
|
+
*/
|
|
18951
|
+
ContentfulMediaWrapperDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18952
|
+
return this.encode(message, writer).ldelim();
|
|
18953
|
+
};
|
|
18954
|
+
|
|
18955
|
+
/**
|
|
18956
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer.
|
|
18957
|
+
* @function decode
|
|
18958
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18959
|
+
* @static
|
|
18960
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18961
|
+
* @param {number} [length] Message length if known beforehand
|
|
18962
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18963
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18964
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18965
|
+
*/
|
|
18966
|
+
ContentfulMediaWrapperDeleted.decode = function decode(reader, length) {
|
|
18967
|
+
if (!(reader instanceof $Reader))
|
|
18968
|
+
reader = $Reader.create(reader);
|
|
18969
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperDeleted();
|
|
18970
|
+
while (reader.pos < end) {
|
|
18971
|
+
var tag = reader.uint32();
|
|
18972
|
+
switch (tag >>> 3) {
|
|
18973
|
+
case 1:
|
|
18974
|
+
message.slug = reader.string();
|
|
18975
|
+
break;
|
|
18976
|
+
case 2:
|
|
18977
|
+
message.deletedAt = reader.uint64();
|
|
18978
|
+
break;
|
|
18979
|
+
default:
|
|
18980
|
+
reader.skipType(tag & 7);
|
|
18981
|
+
break;
|
|
18982
|
+
}
|
|
18983
|
+
}
|
|
18984
|
+
return message;
|
|
18985
|
+
};
|
|
18986
|
+
|
|
18987
|
+
/**
|
|
18988
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer, length delimited.
|
|
18989
|
+
* @function decodeDelimited
|
|
18990
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18991
|
+
* @static
|
|
18992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18993
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18996
|
+
*/
|
|
18997
|
+
ContentfulMediaWrapperDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
18998
|
+
if (!(reader instanceof $Reader))
|
|
18999
|
+
reader = new $Reader(reader);
|
|
19000
|
+
return this.decode(reader, reader.uint32());
|
|
19001
|
+
};
|
|
19002
|
+
|
|
19003
|
+
/**
|
|
19004
|
+
* Verifies a ContentfulMediaWrapperDeleted message.
|
|
19005
|
+
* @function verify
|
|
19006
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19007
|
+
* @static
|
|
19008
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19009
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19010
|
+
*/
|
|
19011
|
+
ContentfulMediaWrapperDeleted.verify = function verify(message) {
|
|
19012
|
+
if (typeof message !== "object" || message === null)
|
|
19013
|
+
return "object expected";
|
|
19014
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19015
|
+
if (!$util.isString(message.slug))
|
|
19016
|
+
return "slug: string expected";
|
|
19017
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19018
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
19019
|
+
return "deletedAt: integer|Long expected";
|
|
19020
|
+
return null;
|
|
19021
|
+
};
|
|
19022
|
+
|
|
19023
|
+
/**
|
|
19024
|
+
* Creates a ContentfulMediaWrapperDeleted message from a plain object. Also converts values to their respective internal types.
|
|
19025
|
+
* @function fromObject
|
|
19026
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19027
|
+
* @static
|
|
19028
|
+
* @param {Object.<string,*>} object Plain object
|
|
19029
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
19030
|
+
*/
|
|
19031
|
+
ContentfulMediaWrapperDeleted.fromObject = function fromObject(object) {
|
|
19032
|
+
if (object instanceof $root.ContentfulMediaWrapperDeleted)
|
|
19033
|
+
return object;
|
|
19034
|
+
var message = new $root.ContentfulMediaWrapperDeleted();
|
|
19035
|
+
if (object.slug != null)
|
|
19036
|
+
message.slug = String(object.slug);
|
|
19037
|
+
if (object.deletedAt != null)
|
|
19038
|
+
if ($util.Long)
|
|
19039
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
19040
|
+
else if (typeof object.deletedAt === "string")
|
|
19041
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
19042
|
+
else if (typeof object.deletedAt === "number")
|
|
19043
|
+
message.deletedAt = object.deletedAt;
|
|
19044
|
+
else if (typeof object.deletedAt === "object")
|
|
19045
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
19046
|
+
return message;
|
|
19047
|
+
};
|
|
19048
|
+
|
|
19049
|
+
/**
|
|
19050
|
+
* Creates a plain object from a ContentfulMediaWrapperDeleted message. Also converts values to other types if specified.
|
|
19051
|
+
* @function toObject
|
|
19052
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19053
|
+
* @static
|
|
19054
|
+
* @param {ContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted
|
|
19055
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19056
|
+
* @returns {Object.<string,*>} Plain object
|
|
19057
|
+
*/
|
|
19058
|
+
ContentfulMediaWrapperDeleted.toObject = function toObject(message, options) {
|
|
19059
|
+
if (!options)
|
|
19060
|
+
options = {};
|
|
19061
|
+
var object = {};
|
|
19062
|
+
if (options.defaults) {
|
|
19063
|
+
object.slug = "";
|
|
19064
|
+
if ($util.Long) {
|
|
19065
|
+
var long = new $util.Long(0, 0, true);
|
|
19066
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
19067
|
+
} else
|
|
19068
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
19069
|
+
}
|
|
19070
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19071
|
+
object.slug = message.slug;
|
|
19072
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19073
|
+
if (typeof message.deletedAt === "number")
|
|
19074
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
19075
|
+
else
|
|
19076
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
19077
|
+
return object;
|
|
19078
|
+
};
|
|
19079
|
+
|
|
19080
|
+
/**
|
|
19081
|
+
* Converts this ContentfulMediaWrapperDeleted to JSON.
|
|
19082
|
+
* @function toJSON
|
|
19083
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19084
|
+
* @instance
|
|
19085
|
+
* @returns {Object.<string,*>} JSON object
|
|
19086
|
+
*/
|
|
19087
|
+
ContentfulMediaWrapperDeleted.prototype.toJSON = function toJSON() {
|
|
19088
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19089
|
+
};
|
|
19090
|
+
|
|
19091
|
+
return ContentfulMediaWrapperDeleted;
|
|
19092
|
+
})();
|
|
19093
|
+
|
|
18220
19094
|
$root.ContentfulTopicCreated = (function() {
|
|
18221
19095
|
|
|
18222
19096
|
/**
|
package/package.json
CHANGED