@google-apps/chat 0.9.0 → 0.11.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/CHANGELOG.md +15 -0
- package/README.md +2 -2
- package/build/protos/google/chat/v1/attachment.proto +15 -13
- package/build/protos/google/chat/v1/chat_service.proto +208 -107
- package/build/protos/google/chat/v1/deletion_metadata.proto +2 -1
- package/build/protos/google/chat/v1/membership.proto +52 -32
- package/build/protos/google/chat/v1/message.proto +74 -64
- package/build/protos/google/chat/v1/reaction.proto +16 -12
- package/build/protos/google/chat/v1/space.proto +237 -90
- package/build/protos/google/chat/v1/space_event.proto +6 -4
- package/build/protos/protos.d.ts +406 -0
- package/build/protos/protos.js +1192 -0
- package/build/protos/protos.json +382 -51
- package/build/src/v1/chat_service_client.d.ts +378 -249
- package/build/src/v1/chat_service_client.js +42 -48
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -3062,6 +3062,9 @@ export namespace google {
|
|
|
3062
3062
|
|
|
3063
3063
|
/** FieldOptions .google.api.fieldBehavior */
|
|
3064
3064
|
".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
|
3065
|
+
|
|
3066
|
+
/** FieldOptions .google.api.fieldInfo */
|
|
3067
|
+
".google.api.fieldInfo"?: (google.api.IFieldInfo|null);
|
|
3065
3068
|
}
|
|
3066
3069
|
|
|
3067
3070
|
/** Represents a FieldOptions. */
|
|
@@ -17784,6 +17787,15 @@ export namespace google {
|
|
|
17784
17787
|
|
|
17785
17788
|
/** Space spaceUri */
|
|
17786
17789
|
spaceUri?: (string|null);
|
|
17790
|
+
|
|
17791
|
+
/** Space predefinedPermissionSettings */
|
|
17792
|
+
predefinedPermissionSettings?: (google.chat.v1.Space.PredefinedPermissionSettings|keyof typeof google.chat.v1.Space.PredefinedPermissionSettings|null);
|
|
17793
|
+
|
|
17794
|
+
/** Space permissionSettings */
|
|
17795
|
+
permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null);
|
|
17796
|
+
|
|
17797
|
+
/** Space importModeExpireTime */
|
|
17798
|
+
importModeExpireTime?: (google.protobuf.ITimestamp|null);
|
|
17787
17799
|
}
|
|
17788
17800
|
|
|
17789
17801
|
/** Represents a Space. */
|
|
@@ -17846,6 +17858,18 @@ export namespace google {
|
|
|
17846
17858
|
/** Space spaceUri. */
|
|
17847
17859
|
public spaceUri: string;
|
|
17848
17860
|
|
|
17861
|
+
/** Space predefinedPermissionSettings. */
|
|
17862
|
+
public predefinedPermissionSettings?: (google.chat.v1.Space.PredefinedPermissionSettings|keyof typeof google.chat.v1.Space.PredefinedPermissionSettings|null);
|
|
17863
|
+
|
|
17864
|
+
/** Space permissionSettings. */
|
|
17865
|
+
public permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null);
|
|
17866
|
+
|
|
17867
|
+
/** Space importModeExpireTime. */
|
|
17868
|
+
public importModeExpireTime?: (google.protobuf.ITimestamp|null);
|
|
17869
|
+
|
|
17870
|
+
/** Space spacePermissionSettings. */
|
|
17871
|
+
public spacePermissionSettings?: ("predefinedPermissionSettings"|"permissionSettings");
|
|
17872
|
+
|
|
17849
17873
|
/**
|
|
17850
17874
|
* Creates a new Space instance using the specified properties.
|
|
17851
17875
|
* @param [properties] Properties to set
|
|
@@ -18267,6 +18291,279 @@ export namespace google {
|
|
|
18267
18291
|
DISCOVERABLE = 2
|
|
18268
18292
|
}
|
|
18269
18293
|
}
|
|
18294
|
+
|
|
18295
|
+
/** PredefinedPermissionSettings enum. */
|
|
18296
|
+
enum PredefinedPermissionSettings {
|
|
18297
|
+
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0,
|
|
18298
|
+
COLLABORATION_SPACE = 1,
|
|
18299
|
+
ANNOUNCEMENT_SPACE = 2
|
|
18300
|
+
}
|
|
18301
|
+
|
|
18302
|
+
/** Properties of a PermissionSettings. */
|
|
18303
|
+
interface IPermissionSettings {
|
|
18304
|
+
|
|
18305
|
+
/** PermissionSettings manageMembersAndGroups */
|
|
18306
|
+
manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18307
|
+
|
|
18308
|
+
/** PermissionSettings modifySpaceDetails */
|
|
18309
|
+
modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18310
|
+
|
|
18311
|
+
/** PermissionSettings toggleHistory */
|
|
18312
|
+
toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18313
|
+
|
|
18314
|
+
/** PermissionSettings useAtMentionAll */
|
|
18315
|
+
useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18316
|
+
|
|
18317
|
+
/** PermissionSettings manageApps */
|
|
18318
|
+
manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18319
|
+
|
|
18320
|
+
/** PermissionSettings manageWebhooks */
|
|
18321
|
+
manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18322
|
+
|
|
18323
|
+
/** PermissionSettings postMessages */
|
|
18324
|
+
postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18325
|
+
|
|
18326
|
+
/** PermissionSettings replyMessages */
|
|
18327
|
+
replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18328
|
+
}
|
|
18329
|
+
|
|
18330
|
+
/** Represents a PermissionSettings. */
|
|
18331
|
+
class PermissionSettings implements IPermissionSettings {
|
|
18332
|
+
|
|
18333
|
+
/**
|
|
18334
|
+
* Constructs a new PermissionSettings.
|
|
18335
|
+
* @param [properties] Properties to set
|
|
18336
|
+
*/
|
|
18337
|
+
constructor(properties?: google.chat.v1.Space.IPermissionSettings);
|
|
18338
|
+
|
|
18339
|
+
/** PermissionSettings manageMembersAndGroups. */
|
|
18340
|
+
public manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18341
|
+
|
|
18342
|
+
/** PermissionSettings modifySpaceDetails. */
|
|
18343
|
+
public modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18344
|
+
|
|
18345
|
+
/** PermissionSettings toggleHistory. */
|
|
18346
|
+
public toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18347
|
+
|
|
18348
|
+
/** PermissionSettings useAtMentionAll. */
|
|
18349
|
+
public useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18350
|
+
|
|
18351
|
+
/** PermissionSettings manageApps. */
|
|
18352
|
+
public manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18353
|
+
|
|
18354
|
+
/** PermissionSettings manageWebhooks. */
|
|
18355
|
+
public manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18356
|
+
|
|
18357
|
+
/** PermissionSettings postMessages. */
|
|
18358
|
+
public postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18359
|
+
|
|
18360
|
+
/** PermissionSettings replyMessages. */
|
|
18361
|
+
public replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18362
|
+
|
|
18363
|
+
/** PermissionSettings _manageMembersAndGroups. */
|
|
18364
|
+
public _manageMembersAndGroups?: "manageMembersAndGroups";
|
|
18365
|
+
|
|
18366
|
+
/** PermissionSettings _modifySpaceDetails. */
|
|
18367
|
+
public _modifySpaceDetails?: "modifySpaceDetails";
|
|
18368
|
+
|
|
18369
|
+
/** PermissionSettings _toggleHistory. */
|
|
18370
|
+
public _toggleHistory?: "toggleHistory";
|
|
18371
|
+
|
|
18372
|
+
/** PermissionSettings _useAtMentionAll. */
|
|
18373
|
+
public _useAtMentionAll?: "useAtMentionAll";
|
|
18374
|
+
|
|
18375
|
+
/** PermissionSettings _manageApps. */
|
|
18376
|
+
public _manageApps?: "manageApps";
|
|
18377
|
+
|
|
18378
|
+
/** PermissionSettings _manageWebhooks. */
|
|
18379
|
+
public _manageWebhooks?: "manageWebhooks";
|
|
18380
|
+
|
|
18381
|
+
/** PermissionSettings _postMessages. */
|
|
18382
|
+
public _postMessages?: "postMessages";
|
|
18383
|
+
|
|
18384
|
+
/** PermissionSettings _replyMessages. */
|
|
18385
|
+
public _replyMessages?: "replyMessages";
|
|
18386
|
+
|
|
18387
|
+
/**
|
|
18388
|
+
* Creates a new PermissionSettings instance using the specified properties.
|
|
18389
|
+
* @param [properties] Properties to set
|
|
18390
|
+
* @returns PermissionSettings instance
|
|
18391
|
+
*/
|
|
18392
|
+
public static create(properties?: google.chat.v1.Space.IPermissionSettings): google.chat.v1.Space.PermissionSettings;
|
|
18393
|
+
|
|
18394
|
+
/**
|
|
18395
|
+
* Encodes the specified PermissionSettings message. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
|
|
18396
|
+
* @param message PermissionSettings message or plain object to encode
|
|
18397
|
+
* @param [writer] Writer to encode to
|
|
18398
|
+
* @returns Writer
|
|
18399
|
+
*/
|
|
18400
|
+
public static encode(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18401
|
+
|
|
18402
|
+
/**
|
|
18403
|
+
* Encodes the specified PermissionSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
|
|
18404
|
+
* @param message PermissionSettings message or plain object to encode
|
|
18405
|
+
* @param [writer] Writer to encode to
|
|
18406
|
+
* @returns Writer
|
|
18407
|
+
*/
|
|
18408
|
+
public static encodeDelimited(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18409
|
+
|
|
18410
|
+
/**
|
|
18411
|
+
* Decodes a PermissionSettings message from the specified reader or buffer.
|
|
18412
|
+
* @param reader Reader or buffer to decode from
|
|
18413
|
+
* @param [length] Message length if known beforehand
|
|
18414
|
+
* @returns PermissionSettings
|
|
18415
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18416
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18417
|
+
*/
|
|
18418
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSettings;
|
|
18419
|
+
|
|
18420
|
+
/**
|
|
18421
|
+
* Decodes a PermissionSettings message from the specified reader or buffer, length delimited.
|
|
18422
|
+
* @param reader Reader or buffer to decode from
|
|
18423
|
+
* @returns PermissionSettings
|
|
18424
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18425
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18426
|
+
*/
|
|
18427
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSettings;
|
|
18428
|
+
|
|
18429
|
+
/**
|
|
18430
|
+
* Verifies a PermissionSettings message.
|
|
18431
|
+
* @param message Plain object to verify
|
|
18432
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18433
|
+
*/
|
|
18434
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18435
|
+
|
|
18436
|
+
/**
|
|
18437
|
+
* Creates a PermissionSettings message from a plain object. Also converts values to their respective internal types.
|
|
18438
|
+
* @param object Plain object
|
|
18439
|
+
* @returns PermissionSettings
|
|
18440
|
+
*/
|
|
18441
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSettings;
|
|
18442
|
+
|
|
18443
|
+
/**
|
|
18444
|
+
* Creates a plain object from a PermissionSettings message. Also converts values to other types if specified.
|
|
18445
|
+
* @param message PermissionSettings
|
|
18446
|
+
* @param [options] Conversion options
|
|
18447
|
+
* @returns Plain object
|
|
18448
|
+
*/
|
|
18449
|
+
public static toObject(message: google.chat.v1.Space.PermissionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18450
|
+
|
|
18451
|
+
/**
|
|
18452
|
+
* Converts this PermissionSettings to JSON.
|
|
18453
|
+
* @returns JSON object
|
|
18454
|
+
*/
|
|
18455
|
+
public toJSON(): { [k: string]: any };
|
|
18456
|
+
|
|
18457
|
+
/**
|
|
18458
|
+
* Gets the default type url for PermissionSettings
|
|
18459
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18460
|
+
* @returns The default type url
|
|
18461
|
+
*/
|
|
18462
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18463
|
+
}
|
|
18464
|
+
|
|
18465
|
+
/** Properties of a PermissionSetting. */
|
|
18466
|
+
interface IPermissionSetting {
|
|
18467
|
+
|
|
18468
|
+
/** PermissionSetting managersAllowed */
|
|
18469
|
+
managersAllowed?: (boolean|null);
|
|
18470
|
+
|
|
18471
|
+
/** PermissionSetting membersAllowed */
|
|
18472
|
+
membersAllowed?: (boolean|null);
|
|
18473
|
+
}
|
|
18474
|
+
|
|
18475
|
+
/** Represents a PermissionSetting. */
|
|
18476
|
+
class PermissionSetting implements IPermissionSetting {
|
|
18477
|
+
|
|
18478
|
+
/**
|
|
18479
|
+
* Constructs a new PermissionSetting.
|
|
18480
|
+
* @param [properties] Properties to set
|
|
18481
|
+
*/
|
|
18482
|
+
constructor(properties?: google.chat.v1.Space.IPermissionSetting);
|
|
18483
|
+
|
|
18484
|
+
/** PermissionSetting managersAllowed. */
|
|
18485
|
+
public managersAllowed: boolean;
|
|
18486
|
+
|
|
18487
|
+
/** PermissionSetting membersAllowed. */
|
|
18488
|
+
public membersAllowed: boolean;
|
|
18489
|
+
|
|
18490
|
+
/**
|
|
18491
|
+
* Creates a new PermissionSetting instance using the specified properties.
|
|
18492
|
+
* @param [properties] Properties to set
|
|
18493
|
+
* @returns PermissionSetting instance
|
|
18494
|
+
*/
|
|
18495
|
+
public static create(properties?: google.chat.v1.Space.IPermissionSetting): google.chat.v1.Space.PermissionSetting;
|
|
18496
|
+
|
|
18497
|
+
/**
|
|
18498
|
+
* Encodes the specified PermissionSetting message. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
|
|
18499
|
+
* @param message PermissionSetting message or plain object to encode
|
|
18500
|
+
* @param [writer] Writer to encode to
|
|
18501
|
+
* @returns Writer
|
|
18502
|
+
*/
|
|
18503
|
+
public static encode(message: google.chat.v1.Space.IPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18504
|
+
|
|
18505
|
+
/**
|
|
18506
|
+
* Encodes the specified PermissionSetting message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
|
|
18507
|
+
* @param message PermissionSetting message or plain object to encode
|
|
18508
|
+
* @param [writer] Writer to encode to
|
|
18509
|
+
* @returns Writer
|
|
18510
|
+
*/
|
|
18511
|
+
public static encodeDelimited(message: google.chat.v1.Space.IPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18512
|
+
|
|
18513
|
+
/**
|
|
18514
|
+
* Decodes a PermissionSetting message from the specified reader or buffer.
|
|
18515
|
+
* @param reader Reader or buffer to decode from
|
|
18516
|
+
* @param [length] Message length if known beforehand
|
|
18517
|
+
* @returns PermissionSetting
|
|
18518
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18519
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18520
|
+
*/
|
|
18521
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSetting;
|
|
18522
|
+
|
|
18523
|
+
/**
|
|
18524
|
+
* Decodes a PermissionSetting message from the specified reader or buffer, length delimited.
|
|
18525
|
+
* @param reader Reader or buffer to decode from
|
|
18526
|
+
* @returns PermissionSetting
|
|
18527
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18528
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18529
|
+
*/
|
|
18530
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSetting;
|
|
18531
|
+
|
|
18532
|
+
/**
|
|
18533
|
+
* Verifies a PermissionSetting message.
|
|
18534
|
+
* @param message Plain object to verify
|
|
18535
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18536
|
+
*/
|
|
18537
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18538
|
+
|
|
18539
|
+
/**
|
|
18540
|
+
* Creates a PermissionSetting message from a plain object. Also converts values to their respective internal types.
|
|
18541
|
+
* @param object Plain object
|
|
18542
|
+
* @returns PermissionSetting
|
|
18543
|
+
*/
|
|
18544
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSetting;
|
|
18545
|
+
|
|
18546
|
+
/**
|
|
18547
|
+
* Creates a plain object from a PermissionSetting message. Also converts values to other types if specified.
|
|
18548
|
+
* @param message PermissionSetting
|
|
18549
|
+
* @param [options] Conversion options
|
|
18550
|
+
* @returns Plain object
|
|
18551
|
+
*/
|
|
18552
|
+
public static toObject(message: google.chat.v1.Space.PermissionSetting, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18553
|
+
|
|
18554
|
+
/**
|
|
18555
|
+
* Converts this PermissionSetting to JSON.
|
|
18556
|
+
* @returns JSON object
|
|
18557
|
+
*/
|
|
18558
|
+
public toJSON(): { [k: string]: any };
|
|
18559
|
+
|
|
18560
|
+
/**
|
|
18561
|
+
* Gets the default type url for PermissionSetting
|
|
18562
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18563
|
+
* @returns The default type url
|
|
18564
|
+
*/
|
|
18565
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18566
|
+
}
|
|
18270
18567
|
}
|
|
18271
18568
|
|
|
18272
18569
|
/** Properties of a CreateSpaceRequest. */
|
|
@@ -24461,5 +24758,114 @@ export namespace google {
|
|
|
24461
24758
|
GA = 4,
|
|
24462
24759
|
DEPRECATED = 5
|
|
24463
24760
|
}
|
|
24761
|
+
|
|
24762
|
+
/** Properties of a FieldInfo. */
|
|
24763
|
+
interface IFieldInfo {
|
|
24764
|
+
|
|
24765
|
+
/** FieldInfo format */
|
|
24766
|
+
format?: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format|null);
|
|
24767
|
+
}
|
|
24768
|
+
|
|
24769
|
+
/** Represents a FieldInfo. */
|
|
24770
|
+
class FieldInfo implements IFieldInfo {
|
|
24771
|
+
|
|
24772
|
+
/**
|
|
24773
|
+
* Constructs a new FieldInfo.
|
|
24774
|
+
* @param [properties] Properties to set
|
|
24775
|
+
*/
|
|
24776
|
+
constructor(properties?: google.api.IFieldInfo);
|
|
24777
|
+
|
|
24778
|
+
/** FieldInfo format. */
|
|
24779
|
+
public format: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format);
|
|
24780
|
+
|
|
24781
|
+
/**
|
|
24782
|
+
* Creates a new FieldInfo instance using the specified properties.
|
|
24783
|
+
* @param [properties] Properties to set
|
|
24784
|
+
* @returns FieldInfo instance
|
|
24785
|
+
*/
|
|
24786
|
+
public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo;
|
|
24787
|
+
|
|
24788
|
+
/**
|
|
24789
|
+
* Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
|
|
24790
|
+
* @param message FieldInfo message or plain object to encode
|
|
24791
|
+
* @param [writer] Writer to encode to
|
|
24792
|
+
* @returns Writer
|
|
24793
|
+
*/
|
|
24794
|
+
public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
24795
|
+
|
|
24796
|
+
/**
|
|
24797
|
+
* Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
|
|
24798
|
+
* @param message FieldInfo message or plain object to encode
|
|
24799
|
+
* @param [writer] Writer to encode to
|
|
24800
|
+
* @returns Writer
|
|
24801
|
+
*/
|
|
24802
|
+
public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
24803
|
+
|
|
24804
|
+
/**
|
|
24805
|
+
* Decodes a FieldInfo message from the specified reader or buffer.
|
|
24806
|
+
* @param reader Reader or buffer to decode from
|
|
24807
|
+
* @param [length] Message length if known beforehand
|
|
24808
|
+
* @returns FieldInfo
|
|
24809
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24810
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24811
|
+
*/
|
|
24812
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.FieldInfo;
|
|
24813
|
+
|
|
24814
|
+
/**
|
|
24815
|
+
* Decodes a FieldInfo message from the specified reader or buffer, length delimited.
|
|
24816
|
+
* @param reader Reader or buffer to decode from
|
|
24817
|
+
* @returns FieldInfo
|
|
24818
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24819
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24820
|
+
*/
|
|
24821
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.FieldInfo;
|
|
24822
|
+
|
|
24823
|
+
/**
|
|
24824
|
+
* Verifies a FieldInfo message.
|
|
24825
|
+
* @param message Plain object to verify
|
|
24826
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
24827
|
+
*/
|
|
24828
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
24829
|
+
|
|
24830
|
+
/**
|
|
24831
|
+
* Creates a FieldInfo message from a plain object. Also converts values to their respective internal types.
|
|
24832
|
+
* @param object Plain object
|
|
24833
|
+
* @returns FieldInfo
|
|
24834
|
+
*/
|
|
24835
|
+
public static fromObject(object: { [k: string]: any }): google.api.FieldInfo;
|
|
24836
|
+
|
|
24837
|
+
/**
|
|
24838
|
+
* Creates a plain object from a FieldInfo message. Also converts values to other types if specified.
|
|
24839
|
+
* @param message FieldInfo
|
|
24840
|
+
* @param [options] Conversion options
|
|
24841
|
+
* @returns Plain object
|
|
24842
|
+
*/
|
|
24843
|
+
public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
24844
|
+
|
|
24845
|
+
/**
|
|
24846
|
+
* Converts this FieldInfo to JSON.
|
|
24847
|
+
* @returns JSON object
|
|
24848
|
+
*/
|
|
24849
|
+
public toJSON(): { [k: string]: any };
|
|
24850
|
+
|
|
24851
|
+
/**
|
|
24852
|
+
* Gets the default type url for FieldInfo
|
|
24853
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
24854
|
+
* @returns The default type url
|
|
24855
|
+
*/
|
|
24856
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
24857
|
+
}
|
|
24858
|
+
|
|
24859
|
+
namespace FieldInfo {
|
|
24860
|
+
|
|
24861
|
+
/** Format enum. */
|
|
24862
|
+
enum Format {
|
|
24863
|
+
FORMAT_UNSPECIFIED = 0,
|
|
24864
|
+
UUID4 = 1,
|
|
24865
|
+
IPV4 = 2,
|
|
24866
|
+
IPV6 = 3,
|
|
24867
|
+
IPV4_OR_IPV6 = 4
|
|
24868
|
+
}
|
|
24869
|
+
}
|
|
24464
24870
|
}
|
|
24465
24871
|
}
|