Kurt Alfred Kluever
295f1125ce
Adds `Timestamps.now()`.
...
PiperOrigin-RevId: 526160914
2 years ago
Sandy Zhang
541914157e
Migrate away from examining the syntax of a proto file via reflection.
...
PiperOrigin-RevId: 511806036
2 years ago
Jie Luo
ca1cb1ba80
Expect fail when serialize inf and nan for Value.number_value in json format. fixes #11259
...
Implemented in java, c++, python and upb. Also added conformance test.
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value
where it says:
attempting to serialize NaN or Infinity results in error. (We can't serialize these as string "NaN" or "Infinity" values like we do for regular fields, because they would parse as string_value, not number_value).
PiperOrigin-RevId: 500828964
2 years ago
Jie Luo
de5fae0d84
Automated rollback of commit c105e85e7c
.
...
PiperOrigin-RevId: 500150564
2 years ago
Jie Luo
c105e85e7c
Expect fail when serialize inf and nan for Value.number_value in json format. fixes #11259
...
Implemented in java, c++, python and upb. Also added conformance test.
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Value
where it says:
attempting to serialize NaN or Infinity results in error. (We can't serialize these as string "NaN" or "Infinity" values like we do for regular fields, because they would parse as string_value, not number_value).
PiperOrigin-RevId: 500139380
2 years ago
Mike Kruskal
3b5301c114
Refactoring Java parsing (21.x) ( #10665 )
...
* Porting java cleanup
* Update changelog
* Fix absl usage
* Extension patch
* Remove extra allocations
2 years ago
Mike Kruskal
0a12e946a2
Refactoring Java parsing (22.x) ( #10664 )
...
* Porting java cleanup
* Update changelog
* Extension patch
* Remove extra allocations
2 years ago
NathanGrand
5999a02891
Fix Timestamps fromDate for negative 'exact second' java.sql.Timestamps
2 years ago
NathanGrand
bfa663ab68
Fix Timestamps.fromDate to correctly handle java.sql.Timestamps before unix epoch.
3 years ago
Mike Kruskal
a29e0e3f44
Sync from Piper @439400376
...
PROTOBUF_SYNC_PIPER
3 years ago
Adam Cozzette
f78fefc1ff
Sync from Piper @392954264
...
PROTOBUF_SYNC_PIPER
3 years ago
Adam Cozzette
562fc946c7
Sync from Piper @388508285
...
PROTOBUF_SYNC_PIPER
3 years ago
Derek Perez
9d9d8ee18d
Removing deprecated TimeUtil class. ( #8749 )
4 years ago
Joshua Haberman
de371235c9
Sync from Piper @338284531
...
PROTOBUF_SYNC_PIPER
4 years ago
Joshua Haberman
95e6c5b474
Sync from Piper @327110949
...
PROTOBUF_SYNC_PIPER
4 years ago
Joshua Haberman
f77065d4eb
Sync from Piper @316511779
...
PROTOBUF_SYNC_PIPER
5 years ago
listonjesse
2ae7cf0e03
Auxillary -> Auxiliary
5 years ago
Joshua Haberman
6ed738305b
Sync from Piper @311396324
...
PROTOBUF_SYNC_PIPER
5 years ago
Joshua Haberman
c649397029
Set execute bit on files if and only if they begin with (#!). ( #7347 )
...
* Set execute bit on files if and only if they begin with (#!).
Git only tracks the 'x' (executable) bit on each file. Prior to this
CL, our files were a random mix of executable and non-executable.
This change imposes some order by making files executable if and only
if they have shebang (#!) lines at the beginning.
We don't have any executable binaries checked into the repo, so
we shouldn't need to worry about that case.
* Added fix_permissions.sh script to set +x iff a file begins with (#!).
5 years ago
Joshua Haberman
b99994d994
Sync from Piper @304070343
...
PROTOBUF_SYNC_PIPER
5 years ago
Paul Yang
763c358874
Down Integrate Internal Changes ( #6634 )
...
* Down integrate to GitHub
* Remove unintentional double assign
* Change ByteCountInt64 to int64_t
* Revert changes in binary_conformance_test.cc
* Revert unnecessary changes
5 years ago
Rafi Kamal
4f02f056b5
Down integrate to GitHub
5 years ago
Paul Yang
7bff8393ca
Down Integrate to GitHub ( #6414 )
...
* Down integrate to GitHub
* Fix broken tests
5 years ago
Hao Nguyen
044c766fd4
Down integrate to GitHub
6 years ago
Hao Nguyen
76b4b4b331
Down integrate to GitHub
6 years ago
Hao Nguyen
711e4b4d6c
Down integrate to GitHub
6 years ago
Hao Nguyen
176f7db11d
Down integrate to Github
6 years ago
Hao Nguyen
c163a2d1a4
Revert accidentally commit
6 years ago
Hao Nguyen
a48a574f7e
Down integrate to Github
6 years ago
Hao Nguyen
2f864fdfdf
Down integrate to Github
6 years ago
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
6 years ago
Adam Cozzette
0e3f1f4ad7
Fixed Javadoc errors
6 years ago
Bo Yang
624a40a387
Down-integrate internal changes to github.
6 years ago
Adam Cozzette
0894e07536
Integrated internal changes from Google
6 years ago
Josh Haberman
d61aede89c
Down-integrate from google3.
6 years ago
Feng Xiao
6bbe197e9c
Down-integrate from google3.
6 years ago
Aleksej Kazmin
5ddc6874e4
Fix typo in FieldMaskTree.java warning
6 years ago
vijay-bhatt
0f56f27ffc
Ignore unknown enum received in json when ignoreUnknownFields flag is set ( #4825 )
...
* Ignore unknown enum received in json when ignoreUnknownFields flag is set.
6 years ago
kenji yoshida
1c3b20b122
fix typo in FieldMaskTree.java comment
7 years ago
Adam Cozzette
92a7e778e7
Integrated internal changes from Google
7 years ago
Jisi Liu
1a7a7fca80
Merge from google internal
7 years ago
Adam Cozzette
13fd045dbb
Integrated internal changes from Google
7 years ago
Jisi Liu
9b8f6589f2
Remove dependency on guava 20
7 years ago
Jisi Liu
09354db143
Merge from Google internal for 3.4 release
7 years ago
Anuraag Agrawal
bf483dfb99
Allow unknown values for Map put*Value methods just like every other enum mutation method.
8 years ago
Anuraag Agrawal
09328db1ff
Fix test for unexpected type url when parsing Any. Currently, the test fails since TestAllTypes doesn't have field '@type', which is the same test as testUnknownFields.
8 years ago
Anuraag Agrawal
662f97841e
Fix duplicate fields test. The repeated version is passing because null values in a repeated field are rejected and not testing what it wanted to. Also adds a oneof version that verifies the case of oneof fields of different names (currently only same name check seems to be tested).
...
Also fix spelling of a test.
8 years ago
Anuraag Agrawal
58373fa160
Fix error message for int64 parse error.
8 years ago
Feng Xiao
84f6954ca9
Fix Java build.
8 years ago
Feng Xiao
d36c0c538a
Down-integrate from google3.
8 years ago