@google-apps/chat 0.10.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 +8 -0
- package/build/protos/google/chat/v1/attachment.proto +15 -13
- package/build/protos/google/chat/v1/chat_service.proto +166 -74
- 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 +63 -54
- package/build/protos/google/chat/v1/reaction.proto +16 -12
- package/build/protos/google/chat/v1/space.proto +97 -51
- package/build/protos/google/chat/v1/space_event.proto +4 -4
- package/build/protos/protos.d.ts +118 -0
- package/build/protos/protos.js +313 -0
- package/build/protos/protos.json +237 -53
- package/build/src/v1/chat_service_client.d.ts +287 -181
- 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.js
CHANGED
|
@@ -8074,6 +8074,7 @@
|
|
|
8074
8074
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
8075
8075
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
8076
8076
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
8077
|
+
* @property {google.api.IFieldInfo|null} [".google.api.fieldInfo"] FieldOptions .google.api.fieldInfo
|
|
8077
8078
|
*/
|
|
8078
8079
|
|
|
8079
8080
|
/**
|
|
@@ -8215,6 +8216,14 @@
|
|
|
8215
8216
|
*/
|
|
8216
8217
|
FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray;
|
|
8217
8218
|
|
|
8219
|
+
/**
|
|
8220
|
+
* FieldOptions .google.api.fieldInfo.
|
|
8221
|
+
* @member {google.api.IFieldInfo|null|undefined} .google.api.fieldInfo
|
|
8222
|
+
* @memberof google.protobuf.FieldOptions
|
|
8223
|
+
* @instance
|
|
8224
|
+
*/
|
|
8225
|
+
FieldOptions.prototype[".google.api.fieldInfo"] = null;
|
|
8226
|
+
|
|
8218
8227
|
/**
|
|
8219
8228
|
* Creates a new FieldOptions instance using the specified properties.
|
|
8220
8229
|
* @function create
|
|
@@ -8276,6 +8285,8 @@
|
|
|
8276
8285
|
}
|
|
8277
8286
|
if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference"))
|
|
8278
8287
|
$root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim();
|
|
8288
|
+
if (message[".google.api.fieldInfo"] != null && Object.hasOwnProperty.call(message, ".google.api.fieldInfo"))
|
|
8289
|
+
$root.google.api.FieldInfo.encode(message[".google.api.fieldInfo"], writer.uint32(/* id 291403980, wireType 2 =*/2331231842).fork()).ldelim();
|
|
8279
8290
|
return writer;
|
|
8280
8291
|
};
|
|
8281
8292
|
|
|
@@ -8388,6 +8399,10 @@
|
|
|
8388
8399
|
message[".google.api.fieldBehavior"].push(reader.int32());
|
|
8389
8400
|
break;
|
|
8390
8401
|
}
|
|
8402
|
+
case 291403980: {
|
|
8403
|
+
message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.decode(reader, reader.uint32());
|
|
8404
|
+
break;
|
|
8405
|
+
}
|
|
8391
8406
|
default:
|
|
8392
8407
|
reader.skipType(tag & 7);
|
|
8393
8408
|
break;
|
|
@@ -8535,6 +8550,11 @@
|
|
|
8535
8550
|
break;
|
|
8536
8551
|
}
|
|
8537
8552
|
}
|
|
8553
|
+
if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo")) {
|
|
8554
|
+
var error = $root.google.api.FieldInfo.verify(message[".google.api.fieldInfo"]);
|
|
8555
|
+
if (error)
|
|
8556
|
+
return ".google.api.fieldInfo." + error;
|
|
8557
|
+
}
|
|
8538
8558
|
return null;
|
|
8539
8559
|
};
|
|
8540
8560
|
|
|
@@ -8754,6 +8774,11 @@
|
|
|
8754
8774
|
break;
|
|
8755
8775
|
}
|
|
8756
8776
|
}
|
|
8777
|
+
if (object[".google.api.fieldInfo"] != null) {
|
|
8778
|
+
if (typeof object[".google.api.fieldInfo"] !== "object")
|
|
8779
|
+
throw TypeError(".google.protobuf.FieldOptions..google.api.fieldInfo: object expected");
|
|
8780
|
+
message[".google.api.fieldInfo"] = $root.google.api.FieldInfo.fromObject(object[".google.api.fieldInfo"]);
|
|
8781
|
+
}
|
|
8757
8782
|
return message;
|
|
8758
8783
|
};
|
|
8759
8784
|
|
|
@@ -8788,6 +8813,7 @@
|
|
|
8788
8813
|
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
8789
8814
|
object.features = null;
|
|
8790
8815
|
object[".google.api.resourceReference"] = null;
|
|
8816
|
+
object[".google.api.fieldInfo"] = null;
|
|
8791
8817
|
}
|
|
8792
8818
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
8793
8819
|
object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype;
|
|
@@ -8831,6 +8857,8 @@
|
|
|
8831
8857
|
}
|
|
8832
8858
|
if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference"))
|
|
8833
8859
|
object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options);
|
|
8860
|
+
if (message[".google.api.fieldInfo"] != null && message.hasOwnProperty(".google.api.fieldInfo"))
|
|
8861
|
+
object[".google.api.fieldInfo"] = $root.google.api.FieldInfo.toObject(message[".google.api.fieldInfo"], options);
|
|
8834
8862
|
return object;
|
|
8835
8863
|
};
|
|
8836
8864
|
|
|
@@ -45729,6 +45757,7 @@
|
|
|
45729
45757
|
* @property {string|null} [spaceUri] Space spaceUri
|
|
45730
45758
|
* @property {google.chat.v1.Space.PredefinedPermissionSettings|null} [predefinedPermissionSettings] Space predefinedPermissionSettings
|
|
45731
45759
|
* @property {google.chat.v1.Space.IPermissionSettings|null} [permissionSettings] Space permissionSettings
|
|
45760
|
+
* @property {google.protobuf.ITimestamp|null} [importModeExpireTime] Space importModeExpireTime
|
|
45732
45761
|
*/
|
|
45733
45762
|
|
|
45734
45763
|
/**
|
|
@@ -45898,6 +45927,14 @@
|
|
|
45898
45927
|
*/
|
|
45899
45928
|
Space.prototype.permissionSettings = null;
|
|
45900
45929
|
|
|
45930
|
+
/**
|
|
45931
|
+
* Space importModeExpireTime.
|
|
45932
|
+
* @member {google.protobuf.ITimestamp|null|undefined} importModeExpireTime
|
|
45933
|
+
* @memberof google.chat.v1.Space
|
|
45934
|
+
* @instance
|
|
45935
|
+
*/
|
|
45936
|
+
Space.prototype.importModeExpireTime = null;
|
|
45937
|
+
|
|
45901
45938
|
// OneOf field names bound to virtual getters and setters
|
|
45902
45939
|
var $oneOfFields;
|
|
45903
45940
|
|
|
@@ -45974,6 +46011,8 @@
|
|
|
45974
46011
|
writer.uint32(/* id 26, wireType 0 =*/208).int32(message.predefinedPermissionSettings);
|
|
45975
46012
|
if (message.permissionSettings != null && Object.hasOwnProperty.call(message, "permissionSettings"))
|
|
45976
46013
|
$root.google.chat.v1.Space.PermissionSettings.encode(message.permissionSettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
46014
|
+
if (message.importModeExpireTime != null && Object.hasOwnProperty.call(message, "importModeExpireTime"))
|
|
46015
|
+
$root.google.protobuf.Timestamp.encode(message.importModeExpireTime, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
45977
46016
|
return writer;
|
|
45978
46017
|
};
|
|
45979
46018
|
|
|
@@ -46084,6 +46123,10 @@
|
|
|
46084
46123
|
message.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.decode(reader, reader.uint32());
|
|
46085
46124
|
break;
|
|
46086
46125
|
}
|
|
46126
|
+
case 28: {
|
|
46127
|
+
message.importModeExpireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
46128
|
+
break;
|
|
46129
|
+
}
|
|
46087
46130
|
default:
|
|
46088
46131
|
reader.skipType(tag & 7);
|
|
46089
46132
|
break;
|
|
@@ -46228,6 +46271,11 @@
|
|
|
46228
46271
|
return "permissionSettings." + error;
|
|
46229
46272
|
}
|
|
46230
46273
|
}
|
|
46274
|
+
if (message.importModeExpireTime != null && message.hasOwnProperty("importModeExpireTime")) {
|
|
46275
|
+
var error = $root.google.protobuf.Timestamp.verify(message.importModeExpireTime);
|
|
46276
|
+
if (error)
|
|
46277
|
+
return "importModeExpireTime." + error;
|
|
46278
|
+
}
|
|
46231
46279
|
return null;
|
|
46232
46280
|
};
|
|
46233
46281
|
|
|
@@ -46397,6 +46445,11 @@
|
|
|
46397
46445
|
throw TypeError(".google.chat.v1.Space.permissionSettings: object expected");
|
|
46398
46446
|
message.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.fromObject(object.permissionSettings);
|
|
46399
46447
|
}
|
|
46448
|
+
if (object.importModeExpireTime != null) {
|
|
46449
|
+
if (typeof object.importModeExpireTime !== "object")
|
|
46450
|
+
throw TypeError(".google.chat.v1.Space.importModeExpireTime: object expected");
|
|
46451
|
+
message.importModeExpireTime = $root.google.protobuf.Timestamp.fromObject(object.importModeExpireTime);
|
|
46452
|
+
}
|
|
46400
46453
|
return message;
|
|
46401
46454
|
};
|
|
46402
46455
|
|
|
@@ -46431,6 +46484,7 @@
|
|
|
46431
46484
|
object.membershipCount = null;
|
|
46432
46485
|
object.accessSettings = null;
|
|
46433
46486
|
object.spaceUri = "";
|
|
46487
|
+
object.importModeExpireTime = null;
|
|
46434
46488
|
}
|
|
46435
46489
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
46436
46490
|
object.name = message.name;
|
|
@@ -46476,6 +46530,8 @@
|
|
|
46476
46530
|
if (options.oneofs)
|
|
46477
46531
|
object.spacePermissionSettings = "permissionSettings";
|
|
46478
46532
|
}
|
|
46533
|
+
if (message.importModeExpireTime != null && message.hasOwnProperty("importModeExpireTime"))
|
|
46534
|
+
object.importModeExpireTime = $root.google.protobuf.Timestamp.toObject(message.importModeExpireTime, options);
|
|
46479
46535
|
return object;
|
|
46480
46536
|
};
|
|
46481
46537
|
|
|
@@ -63270,6 +63326,263 @@
|
|
|
63270
63326
|
return values;
|
|
63271
63327
|
})();
|
|
63272
63328
|
|
|
63329
|
+
api.FieldInfo = (function() {
|
|
63330
|
+
|
|
63331
|
+
/**
|
|
63332
|
+
* Properties of a FieldInfo.
|
|
63333
|
+
* @memberof google.api
|
|
63334
|
+
* @interface IFieldInfo
|
|
63335
|
+
* @property {google.api.FieldInfo.Format|null} [format] FieldInfo format
|
|
63336
|
+
*/
|
|
63337
|
+
|
|
63338
|
+
/**
|
|
63339
|
+
* Constructs a new FieldInfo.
|
|
63340
|
+
* @memberof google.api
|
|
63341
|
+
* @classdesc Represents a FieldInfo.
|
|
63342
|
+
* @implements IFieldInfo
|
|
63343
|
+
* @constructor
|
|
63344
|
+
* @param {google.api.IFieldInfo=} [properties] Properties to set
|
|
63345
|
+
*/
|
|
63346
|
+
function FieldInfo(properties) {
|
|
63347
|
+
if (properties)
|
|
63348
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
63349
|
+
if (properties[keys[i]] != null)
|
|
63350
|
+
this[keys[i]] = properties[keys[i]];
|
|
63351
|
+
}
|
|
63352
|
+
|
|
63353
|
+
/**
|
|
63354
|
+
* FieldInfo format.
|
|
63355
|
+
* @member {google.api.FieldInfo.Format} format
|
|
63356
|
+
* @memberof google.api.FieldInfo
|
|
63357
|
+
* @instance
|
|
63358
|
+
*/
|
|
63359
|
+
FieldInfo.prototype.format = 0;
|
|
63360
|
+
|
|
63361
|
+
/**
|
|
63362
|
+
* Creates a new FieldInfo instance using the specified properties.
|
|
63363
|
+
* @function create
|
|
63364
|
+
* @memberof google.api.FieldInfo
|
|
63365
|
+
* @static
|
|
63366
|
+
* @param {google.api.IFieldInfo=} [properties] Properties to set
|
|
63367
|
+
* @returns {google.api.FieldInfo} FieldInfo instance
|
|
63368
|
+
*/
|
|
63369
|
+
FieldInfo.create = function create(properties) {
|
|
63370
|
+
return new FieldInfo(properties);
|
|
63371
|
+
};
|
|
63372
|
+
|
|
63373
|
+
/**
|
|
63374
|
+
* Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
|
|
63375
|
+
* @function encode
|
|
63376
|
+
* @memberof google.api.FieldInfo
|
|
63377
|
+
* @static
|
|
63378
|
+
* @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode
|
|
63379
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63380
|
+
* @returns {$protobuf.Writer} Writer
|
|
63381
|
+
*/
|
|
63382
|
+
FieldInfo.encode = function encode(message, writer) {
|
|
63383
|
+
if (!writer)
|
|
63384
|
+
writer = $Writer.create();
|
|
63385
|
+
if (message.format != null && Object.hasOwnProperty.call(message, "format"))
|
|
63386
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.format);
|
|
63387
|
+
return writer;
|
|
63388
|
+
};
|
|
63389
|
+
|
|
63390
|
+
/**
|
|
63391
|
+
* Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
|
|
63392
|
+
* @function encodeDelimited
|
|
63393
|
+
* @memberof google.api.FieldInfo
|
|
63394
|
+
* @static
|
|
63395
|
+
* @param {google.api.IFieldInfo} message FieldInfo message or plain object to encode
|
|
63396
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
63397
|
+
* @returns {$protobuf.Writer} Writer
|
|
63398
|
+
*/
|
|
63399
|
+
FieldInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
63400
|
+
return this.encode(message, writer).ldelim();
|
|
63401
|
+
};
|
|
63402
|
+
|
|
63403
|
+
/**
|
|
63404
|
+
* Decodes a FieldInfo message from the specified reader or buffer.
|
|
63405
|
+
* @function decode
|
|
63406
|
+
* @memberof google.api.FieldInfo
|
|
63407
|
+
* @static
|
|
63408
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63409
|
+
* @param {number} [length] Message length if known beforehand
|
|
63410
|
+
* @returns {google.api.FieldInfo} FieldInfo
|
|
63411
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63412
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63413
|
+
*/
|
|
63414
|
+
FieldInfo.decode = function decode(reader, length) {
|
|
63415
|
+
if (!(reader instanceof $Reader))
|
|
63416
|
+
reader = $Reader.create(reader);
|
|
63417
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.FieldInfo();
|
|
63418
|
+
while (reader.pos < end) {
|
|
63419
|
+
var tag = reader.uint32();
|
|
63420
|
+
switch (tag >>> 3) {
|
|
63421
|
+
case 1: {
|
|
63422
|
+
message.format = reader.int32();
|
|
63423
|
+
break;
|
|
63424
|
+
}
|
|
63425
|
+
default:
|
|
63426
|
+
reader.skipType(tag & 7);
|
|
63427
|
+
break;
|
|
63428
|
+
}
|
|
63429
|
+
}
|
|
63430
|
+
return message;
|
|
63431
|
+
};
|
|
63432
|
+
|
|
63433
|
+
/**
|
|
63434
|
+
* Decodes a FieldInfo message from the specified reader or buffer, length delimited.
|
|
63435
|
+
* @function decodeDelimited
|
|
63436
|
+
* @memberof google.api.FieldInfo
|
|
63437
|
+
* @static
|
|
63438
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
63439
|
+
* @returns {google.api.FieldInfo} FieldInfo
|
|
63440
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
63441
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
63442
|
+
*/
|
|
63443
|
+
FieldInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
63444
|
+
if (!(reader instanceof $Reader))
|
|
63445
|
+
reader = new $Reader(reader);
|
|
63446
|
+
return this.decode(reader, reader.uint32());
|
|
63447
|
+
};
|
|
63448
|
+
|
|
63449
|
+
/**
|
|
63450
|
+
* Verifies a FieldInfo message.
|
|
63451
|
+
* @function verify
|
|
63452
|
+
* @memberof google.api.FieldInfo
|
|
63453
|
+
* @static
|
|
63454
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
63455
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
63456
|
+
*/
|
|
63457
|
+
FieldInfo.verify = function verify(message) {
|
|
63458
|
+
if (typeof message !== "object" || message === null)
|
|
63459
|
+
return "object expected";
|
|
63460
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
63461
|
+
switch (message.format) {
|
|
63462
|
+
default:
|
|
63463
|
+
return "format: enum value expected";
|
|
63464
|
+
case 0:
|
|
63465
|
+
case 1:
|
|
63466
|
+
case 2:
|
|
63467
|
+
case 3:
|
|
63468
|
+
case 4:
|
|
63469
|
+
break;
|
|
63470
|
+
}
|
|
63471
|
+
return null;
|
|
63472
|
+
};
|
|
63473
|
+
|
|
63474
|
+
/**
|
|
63475
|
+
* Creates a FieldInfo message from a plain object. Also converts values to their respective internal types.
|
|
63476
|
+
* @function fromObject
|
|
63477
|
+
* @memberof google.api.FieldInfo
|
|
63478
|
+
* @static
|
|
63479
|
+
* @param {Object.<string,*>} object Plain object
|
|
63480
|
+
* @returns {google.api.FieldInfo} FieldInfo
|
|
63481
|
+
*/
|
|
63482
|
+
FieldInfo.fromObject = function fromObject(object) {
|
|
63483
|
+
if (object instanceof $root.google.api.FieldInfo)
|
|
63484
|
+
return object;
|
|
63485
|
+
var message = new $root.google.api.FieldInfo();
|
|
63486
|
+
switch (object.format) {
|
|
63487
|
+
default:
|
|
63488
|
+
if (typeof object.format === "number") {
|
|
63489
|
+
message.format = object.format;
|
|
63490
|
+
break;
|
|
63491
|
+
}
|
|
63492
|
+
break;
|
|
63493
|
+
case "FORMAT_UNSPECIFIED":
|
|
63494
|
+
case 0:
|
|
63495
|
+
message.format = 0;
|
|
63496
|
+
break;
|
|
63497
|
+
case "UUID4":
|
|
63498
|
+
case 1:
|
|
63499
|
+
message.format = 1;
|
|
63500
|
+
break;
|
|
63501
|
+
case "IPV4":
|
|
63502
|
+
case 2:
|
|
63503
|
+
message.format = 2;
|
|
63504
|
+
break;
|
|
63505
|
+
case "IPV6":
|
|
63506
|
+
case 3:
|
|
63507
|
+
message.format = 3;
|
|
63508
|
+
break;
|
|
63509
|
+
case "IPV4_OR_IPV6":
|
|
63510
|
+
case 4:
|
|
63511
|
+
message.format = 4;
|
|
63512
|
+
break;
|
|
63513
|
+
}
|
|
63514
|
+
return message;
|
|
63515
|
+
};
|
|
63516
|
+
|
|
63517
|
+
/**
|
|
63518
|
+
* Creates a plain object from a FieldInfo message. Also converts values to other types if specified.
|
|
63519
|
+
* @function toObject
|
|
63520
|
+
* @memberof google.api.FieldInfo
|
|
63521
|
+
* @static
|
|
63522
|
+
* @param {google.api.FieldInfo} message FieldInfo
|
|
63523
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
63524
|
+
* @returns {Object.<string,*>} Plain object
|
|
63525
|
+
*/
|
|
63526
|
+
FieldInfo.toObject = function toObject(message, options) {
|
|
63527
|
+
if (!options)
|
|
63528
|
+
options = {};
|
|
63529
|
+
var object = {};
|
|
63530
|
+
if (options.defaults)
|
|
63531
|
+
object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0;
|
|
63532
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
63533
|
+
object.format = options.enums === String ? $root.google.api.FieldInfo.Format[message.format] === undefined ? message.format : $root.google.api.FieldInfo.Format[message.format] : message.format;
|
|
63534
|
+
return object;
|
|
63535
|
+
};
|
|
63536
|
+
|
|
63537
|
+
/**
|
|
63538
|
+
* Converts this FieldInfo to JSON.
|
|
63539
|
+
* @function toJSON
|
|
63540
|
+
* @memberof google.api.FieldInfo
|
|
63541
|
+
* @instance
|
|
63542
|
+
* @returns {Object.<string,*>} JSON object
|
|
63543
|
+
*/
|
|
63544
|
+
FieldInfo.prototype.toJSON = function toJSON() {
|
|
63545
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
63546
|
+
};
|
|
63547
|
+
|
|
63548
|
+
/**
|
|
63549
|
+
* Gets the default type url for FieldInfo
|
|
63550
|
+
* @function getTypeUrl
|
|
63551
|
+
* @memberof google.api.FieldInfo
|
|
63552
|
+
* @static
|
|
63553
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
63554
|
+
* @returns {string} The default type url
|
|
63555
|
+
*/
|
|
63556
|
+
FieldInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
63557
|
+
if (typeUrlPrefix === undefined) {
|
|
63558
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
63559
|
+
}
|
|
63560
|
+
return typeUrlPrefix + "/google.api.FieldInfo";
|
|
63561
|
+
};
|
|
63562
|
+
|
|
63563
|
+
/**
|
|
63564
|
+
* Format enum.
|
|
63565
|
+
* @name google.api.FieldInfo.Format
|
|
63566
|
+
* @enum {number}
|
|
63567
|
+
* @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value
|
|
63568
|
+
* @property {number} UUID4=1 UUID4 value
|
|
63569
|
+
* @property {number} IPV4=2 IPV4 value
|
|
63570
|
+
* @property {number} IPV6=3 IPV6 value
|
|
63571
|
+
* @property {number} IPV4_OR_IPV6=4 IPV4_OR_IPV6 value
|
|
63572
|
+
*/
|
|
63573
|
+
FieldInfo.Format = (function() {
|
|
63574
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
63575
|
+
values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0;
|
|
63576
|
+
values[valuesById[1] = "UUID4"] = 1;
|
|
63577
|
+
values[valuesById[2] = "IPV4"] = 2;
|
|
63578
|
+
values[valuesById[3] = "IPV6"] = 3;
|
|
63579
|
+
values[valuesById[4] = "IPV4_OR_IPV6"] = 4;
|
|
63580
|
+
return values;
|
|
63581
|
+
})();
|
|
63582
|
+
|
|
63583
|
+
return FieldInfo;
|
|
63584
|
+
})();
|
|
63585
|
+
|
|
63273
63586
|
return api;
|
|
63274
63587
|
})();
|
|
63275
63588
|
|