Hong Shin
cd837fd6bf
upb: Add upb_Message_GetExtensionMutableArray
...
PiperOrigin-RevId: 698010022
3 weeks ago
Hong Shin
919775de74
upb: Add upb_Message_GetExtensionArray
...
PiperOrigin-RevId: 696640453
4 weeks ago
Hong Shin
76382571d9
upb: Add upb_Message_GetExtensionString
...
PiperOrigin-RevId: 694107230
1 month ago
Hong Shin
a862499b19
upb: Add upb_Message_GetExtensionMessage
...
PiperOrigin-RevId: 693801612
1 month ago
Hong Shin
c5236bc28e
Migrate upb extension getters for scalars
...
Needed for hpb extension fetching so that we don't call an internal func with a void*
PiperOrigin-RevId: 688585300
2 months ago
Protobuf Team Bot
eafacfad50
Introduce upb_Message_SetBaseFieldMessage()
...
This just behaves the same as the pre-existing upb_Message_SetMessage(), but with the intendended naming style (upb_Message_SetMessage should accept an arena and support extensions).
PiperOrigin-RevId: 667998428
4 months ago
Hong Shin
0730adb1c1
rename upb_Message_WhichOneof to upb_Message_WhichOneofByDef
...
and introduce upb_Message_WhichOneof that returns a minitable field without needing reflection
PiperOrigin-RevId: 637932147
7 months ago
Eric Salo
f93565c20c
upb: publish and start using the new non-universal setters out in the wild
...
PiperOrigin-RevId: 632663127
7 months ago
Eric Salo
6245733655
upb: remove the unused (upb_MiniTable*) arg from upb_Message_SetMessage()
...
PiperOrigin-RevId: 632267379
7 months ago
Eric Salo
65821a67d6
upb: finish cleaning up message/accessors.h and message/internal/accessors.h
...
PiperOrigin-RevId: 631612923
7 months ago
Hong Shin
6ccda4d2b5
Add upb_Message_ClearOneof (and retain upb_Message_WhichOneofFieldNumber)
...
upb users currently need to manually fetch a oneof field in order to clear it.
In this CL, we add a convenience method to do that in one fell swoop.
PiperOrigin-RevId: 631454136
7 months ago
Eric Salo
aa70a3576b
upb: clean up message/accessors.h and message/internal/accessors.h
...
PiperOrigin-RevId: 630466865
7 months ago
Éamonn McManus
b4f4f8ef65
Automated rollback of commit 7a09c4569b
.
...
PiperOrigin-RevId: 629808114
7 months ago
Hong Shin
7a09c4569b
Add upb_Message_ClearOneof
...
upb users currently need to manually fetch a oneof field in order to clear it.
In this CL, we add a convenience method to do that in one fell swoop.
PiperOrigin-RevId: 629782904
7 months ago
Protobuf Team Bot
12a828c700
Add UPB_ASSUME(!IsExtension) on GetMutableMessage.
...
This function is UB to call on an extension field.
PiperOrigin-RevId: 629701038
7 months ago
Joshua Haberman
37e484a0aa
Replace direct access to MiniTable subs with calls to the encapsulated functions.
...
PiperOrigin-RevId: 626485595
8 months ago
Eric Salo
9118be944d
upb: extension/basefield setters are now public functions
...
PiperOrigin-RevId: 623355801
8 months ago
Éamonn McManus
3c0f3ca6be
Document `upb_Message_SetMessage`.
...
PiperOrigin-RevId: 613747349
9 months ago
Éamonn McManus
6cbcff4bb6
Clarify that `upb_Message_SetString` does not copy data.
...
PiperOrigin-RevId: 613258771
9 months ago
Éamonn McManus
507f037f7e
Document the return value of `upb_Message_SetField`.
...
PiperOrigin-RevId: 612961189
9 months ago
Eric Salo
c69ed472cd
upb: implement minitable-based field iterators
...
PiperOrigin-RevId: 605718863
10 months ago
Eric Salo
b0d3a787cc
upb: Simplify inline functions in mini_table/ and mem/ and wire/ and message/
...
PiperOrigin-RevId: 605413999
10 months ago
Eric Salo
bc75a9be30
upb: remove the default arg from upb_Message_GetMessage()
...
PiperOrigin-RevId: 603225526
11 months ago
Eric Salo
7b6a845ab7
upb: implement immutability
...
PiperOrigin-RevId: 601848001
11 months ago
Eric Salo
5c5f092606
upb: implement upb_Message
...
PiperOrigin-RevId: 597662892
11 months ago
Eric Salo
c7f44a02eb
upb: finish locking down the upb_Array internals
...
PiperOrigin-RevId: 597629658
11 months ago
Eric Salo
c026907a5d
upb: replace public universal hazzer with non-universal hazzers
...
PiperOrigin-RevId: 597126288
11 months ago
Eric Salo
c02f943f1a
upb: distinguish between fields and extensions in the public clear() accessors
...
PiperOrigin-RevId: 596588385
11 months ago
Eric Salo
f0cf0b653c
upb: clean up and consolidate the upb/message/ build targets
...
PiperOrigin-RevId: 594514934
12 months ago
Eric Salo
090c3adbf2
upb: start consolidating the upb/message/ build targets
...
PiperOrigin-RevId: 594074354
12 months ago
Eric Salo
0896146034
upb: make all mini_table/ includes unidirectional
...
PiperOrigin-RevId: 593859422
12 months ago
Eric Salo
de7f589d44
upb: eliminate :mini_table_internal
...
PiperOrigin-RevId: 592392732
12 months ago
Eric Salo
1587fefee7
upb: simplify upb_Map_Insert() down to upb_Map_Set() where possible
...
PiperOrigin-RevId: 592107014
12 months ago
Eric Salo
1f67b8dfe1
upb: tag upb_MiniTableField:offset as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592081461
12 months ago
Eric Salo
0755621dd2
Automated rollback of commit 3c75c331d3
.
...
PiperOrigin-RevId: 588239901
1 year ago
Eric Salo
3c75c331d3
upb: inline upb_Message_New()
...
PiperOrigin-RevId: 588189563
1 year ago
Eric Salo
6efd909a9b
upb: clean up and lock down the internal oneof accessors
...
PiperOrigin-RevId: 588166536
1 year ago
Eric Salo
bb5322a194
upb: lock down upb_MiniTable (mostly)
...
PiperOrigin-RevId: 586542236
1 year ago
Eric Salo
d0c85637e7
upb: lock down upb_MiniTableSub
...
PiperOrigin-RevId: 586187469
1 year ago
Eric Salo
19ef3a58cf
upb: lock down MiniTableField
...
PiperOrigin-RevId: 586171362
1 year ago
Eric Salo
3ce2c573b3
upb: start to lock down upb_Array
...
PiperOrigin-RevId: 585696951
1 year ago
Eric Salo
a49f6b8ea0
upb: move ElemSizeLg2() from message/ into mini_table/
...
PiperOrigin-RevId: 584380544
1 year ago
Eric Salo
0b892a5466
upb: move IsOneof() from message/internal/accessors.h
...
PiperOrigin-RevId: 584358795
1 year ago
Protobuf Team Bot
4656b0d6e0
Make SetField/GetField public and operate on MessageValue instead of void*.
...
PiperOrigin-RevId: 584309590
1 year ago
Eric Salo
7fa050d8c1
upb: move IsSubMessage() and IsRepeatedOrMap() from mini_table/internal/field.h
...
PiperOrigin-RevId: 584082079
1 year ago
Eric Salo
88f0a82a18
upb: normalize the accessor functions for hasbits and oneof_cases
...
PiperOrigin-RevId: 582708011
1 year ago
Eric Salo
07fba1da07
upb: merge ":collections" into ":message"
...
PiperOrigin-RevId: 569594353
1 year ago
Adam Cozzette
501ececd39
Reorganize upb file structure
...
This change moves almost everything in the `upb/` directory up one level, so
that for example `upb/upb/generated_code_support.h` becomes just
`upb/generated_code_support.h`. The only exceptions I made to this were that I
left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids
conflict with other files and the current locations seem reasonable for now.
The `python/` directory is a little bit of a challenge because we had to merge
the existing directory there with `upb/python/`. I made `upb/python/BUILD` into
the BUILD file for the merged directory, and it effectively loads the contents
of the other BUILD file via `python/build_targets.bzl`, but I plan to clean
this up soon.
PiperOrigin-RevId: 568651768
1 year ago
Hong Shin
748d465a2d
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 566444036
1 year ago
Adam Cozzette
7286ffceb2
Merge the protobuf and upb Bazel repos
...
A couple weeks ago we moved upb into the protobuf Git repo, and this change
continues the merger of the two repos by making them into a single Bazel repo.
This was mostly a matter of deleting upb's WORKSPACE file and fixing up a bunch
of references to reflect the new structure.
Most of the changes are pretty mechanical, but one thing that needed more
invasive changes was the Python script for generating CMakeLists.txt,
make_cmakelists.py. The WORKSPACE file it relied on no longer exists with this
change, so I updated it to hardcode the information it needed from that file.
PiperOrigin-RevId: 564810016
1 year ago