google-protobuf 4.26.1-java → 4.27.0.rc.2-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa7f8c83bb0d9e888fa39a83db2780ef1bebf13e83d39fb64ef55a1cc671e2bd
4
- data.tar.gz: e50d3388e6ac23ea3f388ade0962afb558459858d799b2269849a987b9d932f5
3
+ metadata.gz: ae0bf01fe878ed62ae762bd2293c5db3260036ba805a4ae766f6f48089696295
4
+ data.tar.gz: d3404d3248a58f5b7beffc98e500aaf8b6e803a16fde4576b2c95861937cc771
5
5
  SHA512:
6
- metadata.gz: ae1551f41c91fa89c186efac2c2f01f9a68bd5a8f5e6b1b1a379180729826e55c83845890438acde1fd48b20659b28c10889f24c5a524b9c57bfb07a7e77a927
7
- data.tar.gz: 485536037df5919ef928cd34e759fabf0f33dec2ed22e2e940b2c3cf4fe9d341100b50c0799333e544d46bce43c6190cc4a862c05a37648e6ceeb386d274ea92
6
+ metadata.gz: 772472e2fd09eb052984633ddfb14ea964394ac540c18dbbf4429c1e19e183a5808c0fed7bfaace61a8e30e6d4903991922730bf1defc3bbbb2e5ea56bdf7a01
7
+ data.tar.gz: d6460667ef63864820bfd462d3bf0642fb8acfb181c5e52acceb06287dec1a44e5dfa6208b781be88adae56ec7b4cfb44124ca0385cc634c9a307372ec2b72fb
@@ -54,3 +54,19 @@ char* FieldDescriptor_serialized_options(const upb_FieldDef* fielddef,
54
54
  char* serialized = google_protobuf_FieldOptions_serialize(opts, arena, size);
55
55
  return serialized;
56
56
  }
57
+
58
+ char* ServiceDescriptor_serialized_options(const upb_ServiceDef* servicedef,
59
+ size_t* size, upb_Arena* arena) {
60
+ const google_protobuf_ServiceOptions* opts =
61
+ upb_ServiceDef_Options(servicedef);
62
+ char* serialized =
63
+ google_protobuf_ServiceOptions_serialize(opts, arena, size);
64
+ return serialized;
65
+ }
66
+
67
+ char* MethodDescriptor_serialized_options(const upb_MethodDef* methoddef,
68
+ size_t* size, upb_Arena* arena) {
69
+ const google_protobuf_MethodOptions* opts = upb_MethodDef_Options(methoddef);
70
+ char* serialized = google_protobuf_MethodOptions_serialize(opts, arena, size);
71
+ return serialized;
72
+ }
@@ -669,20 +669,6 @@ static VALUE Message_dup(VALUE _self) {
669
669
  return new_msg;
670
670
  }
671
671
 
672
- // Support function for Message_eq, and also used by other #eq functions.
673
- bool Message_Equal(const upb_Message* m1, const upb_Message* m2,
674
- const upb_MessageDef* m) {
675
- upb_Status status;
676
- upb_Status_Clear(&status);
677
- bool return_value = shared_Message_Equal(m1, m2, m, &status);
678
- if (upb_Status_IsOk(&status)) {
679
- return return_value;
680
- } else {
681
- rb_raise(cParseError, "Message_Equal(): %s",
682
- upb_Status_ErrorMessage(&status));
683
- }
684
- }
685
-
686
672
  /*
687
673
  * call-seq:
688
674
  * Message.==(other) => boolean
@@ -699,7 +685,10 @@ static VALUE Message_eq(VALUE _self, VALUE _other) {
699
685
  Message* other = ruby_to_Message(_other);
700
686
  assert(self->msgdef == other->msgdef);
701
687
 
702
- return Message_Equal(self->msg, other->msg, self->msgdef) ? Qtrue : Qfalse;
688
+ const upb_MiniTable* m = upb_MessageDef_MiniTable(self->msgdef);
689
+ const int options = 0;
690
+ return upb_Message_IsEqual(self->msg, other->msg, m, options) ? Qtrue
691
+ : Qfalse;
703
692
  }
704
693
 
705
694
  uint64_t Message_Hash(const upb_Message* msg, const upb_MessageDef* m,
@@ -54,10 +54,6 @@ uint64_t Message_Hash(const upb_Message* msg, const upb_MessageDef* m,
54
54
  upb_Message* Message_deep_copy(const upb_Message* msg, const upb_MessageDef* m,
55
55
  upb_Arena* arena);
56
56
 
57
- // Returns true if these two messages are equal.
58
- bool Message_Equal(const upb_Message* m1, const upb_Message* m2,
59
- const upb_MessageDef* m);
60
-
61
57
  // Checks that this Ruby object is a message, and raises an exception if not.
62
58
  void Message_CheckClass(VALUE klass);
63
59