google-protobuf 4.26.0.rc.3-java → 4.27.0-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: 1a40b5480b11181630f843f412dd28eb46796077f2aeebc7db0e7d68607652be
4
- data.tar.gz: a05a1efea5df38e95b3c4f8de9939c8d4af62d30a3c5908576ee4b998c5bcc59
3
+ metadata.gz: a53819b4e615517631da1abd89555acefb1d1ba571709061d42080c9ff7a1e37
4
+ data.tar.gz: a8177f2888434b932786c5981612cfcc47787fe3580e8ffcb719072dd85179c2
5
5
  SHA512:
6
- metadata.gz: 2eeaefb61dd7b625f1b2deb17dcdf5eb547e9ce397ab548edadb40756daa23b336817ada0c055cbed81fe2337bf3ad58ba8447385db061533b56ef17b2e65be0
7
- data.tar.gz: e6113d3dbc36fa50a7fe34feef7c8b016cb6f975c3c041896ab67307bccb12cef0a141f10d07e5e5a41da955bfba0af5943f43a1e61dd71ce37d5c42a6763cb2
6
+ metadata.gz: 900be1864118fed9ee6ac72dca513c3d412b64f46dceeb9ba40820b9583e66f843417eaf55ca8f9b53001b40a4d93b8a7fccf117f02b15c12409ef358510cf9b
7
+ data.tar.gz: 137280660d4d30f266938c291d6c681c342816770cb3751027acb25bceb77139d856e824281fbcb3f45f5f2e8c1fbfc378ca08152b4e332664635f0903a0990f
@@ -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