|
27341 | 27341 | * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex
|
27342 | 27342 | * @property {string|null} [jsonName] FieldDescriptorProto jsonName
|
27343 | 27343 | * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options
|
| 27344 | + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional |
27344 | 27345 | */
|
27345 | 27346 |
|
27346 | 27347 | /**
|
|
27438 | 27439 | */
|
27439 | 27440 | FieldDescriptorProto.prototype.options = null;
|
27440 | 27441 |
|
| 27442 | + /** |
| 27443 | + * FieldDescriptorProto proto3Optional. |
| 27444 | + * @member {boolean} proto3Optional |
| 27445 | + * @memberof google.protobuf.FieldDescriptorProto |
| 27446 | + * @instance |
| 27447 | + */ |
| 27448 | + FieldDescriptorProto.prototype.proto3Optional = false; |
| 27449 | + |
27441 | 27450 | /**
|
27442 | 27451 | * Creates a new FieldDescriptorProto instance using the specified properties.
|
27443 | 27452 | * @function create
|
|
27482 | 27491 | writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex);
|
27483 | 27492 | if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName"))
|
27484 | 27493 | writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName);
|
| 27494 | + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) |
| 27495 | + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); |
27485 | 27496 | return writer;
|
27486 | 27497 | };
|
27487 | 27498 |
|
|
27546 | 27557 | case 8:
|
27547 | 27558 | message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32());
|
27548 | 27559 | break;
|
| 27560 | + case 17: |
| 27561 | + message.proto3Optional = reader.bool(); |
| 27562 | + break; |
27549 | 27563 | default:
|
27550 | 27564 | reader.skipType(tag & 7);
|
27551 | 27565 | break;
|
|
27640 | 27654 | if (error)
|
27641 | 27655 | return "options." + error;
|
27642 | 27656 | }
|
| 27657 | + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) |
| 27658 | + if (typeof message.proto3Optional !== "boolean") |
| 27659 | + return "proto3Optional: boolean expected"; |
27643 | 27660 | return null;
|
27644 | 27661 | };
|
27645 | 27662 |
|
|
27762 | 27779 | throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");
|
27763 | 27780 | message.options = $root.google.protobuf.FieldOptions.fromObject(object.options);
|
27764 | 27781 | }
|
| 27782 | + if (object.proto3Optional != null) |
| 27783 | + message.proto3Optional = Boolean(object.proto3Optional); |
27765 | 27784 | return message;
|
27766 | 27785 | };
|
27767 | 27786 |
|
|
27789 | 27808 | object.options = null;
|
27790 | 27809 | object.oneofIndex = 0;
|
27791 | 27810 | object.jsonName = "";
|
| 27811 | + object.proto3Optional = false; |
27792 | 27812 | }
|
27793 | 27813 | if (message.name != null && message.hasOwnProperty("name"))
|
27794 | 27814 | object.name = message.name;
|
|
27810 | 27830 | object.oneofIndex = message.oneofIndex;
|
27811 | 27831 | if (message.jsonName != null && message.hasOwnProperty("jsonName"))
|
27812 | 27832 | object.jsonName = message.jsonName;
|
| 27833 | + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) |
| 27834 | + object.proto3Optional = message.proto3Optional; |
27813 | 27835 | return object;
|
27814 | 27836 | };
|
27815 | 27837 |
|
|
29601 | 29623 | * @memberof google.protobuf.FileOptions
|
29602 | 29624 | * @instance
|
29603 | 29625 | */
|
29604 |
| - FileOptions.prototype.ccEnableArenas = false; |
| 29626 | + FileOptions.prototype.ccEnableArenas = true; |
29605 | 29627 |
|
29606 | 29628 | /**
|
29607 | 29629 | * FileOptions objcClassPrefix.
|
|
30050 | 30072 | object.javaGenerateEqualsAndHash = false;
|
30051 | 30073 | object.deprecated = false;
|
30052 | 30074 | object.javaStringCheckUtf8 = false;
|
30053 |
| - object.ccEnableArenas = false; |
| 30075 | + object.ccEnableArenas = true; |
30054 | 30076 | object.objcClassPrefix = "";
|
30055 | 30077 | object.csharpNamespace = "";
|
30056 | 30078 | object.swiftPrefix = "";
|
|
0 commit comments