Internal change

PiperOrigin-RevId: 487925995
pull/10979/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 225b936c01
commit a13c2fbc9e
  1. 2
      python/google/protobuf/internal/wire_format.py
  2. 2
      python/google/protobuf/pyext/unknown_field_set.cc
  3. 5
      python/google/protobuf/pyext/unknown_fields.cc
  4. 2
      python/google/protobuf/text_format.py
  5. 2
      src/google/protobuf/io/zero_copy_stream_unittest.cc

@ -43,7 +43,7 @@ TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1 # 0x7
# These numbers identify the wire type of a protocol buffer value.
# We use the least-significant TAG_TYPE_BITS bits of the varint-encoded
# tag-and-type to store one of these WIRETYPE_* constants.
# These values must match WireType enum in //net/proto2/public/wire_format.h.
# These values must match WireType enum in //google/protobuf/wire_format.h.
WIRETYPE_VARINT = 0
WIRETYPE_FIXED64 = 1
WIRETYPE_LENGTH_DELIMITED = 2

@ -38,9 +38,9 @@
#include "google/protobuf/message.h"
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/pyext/message.h"
#include "google/protobuf/pyext/scoped_pyobject_ptr.h"
#include "google/protobuf/wire_format_lite.h"
namespace google {
namespace protobuf {

@ -32,13 +32,14 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <set>
#include <memory>
#include <set>
#include "google/protobuf/message.h"
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/pyext/message.h"
#include "google/protobuf/pyext/scoped_pyobject_ptr.h"
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/wire_format_lite.h"
namespace google {

@ -340,7 +340,7 @@ def _BuildMessageFromTypeName(type_name, descriptor_pool):
return message_type()
# These values must match WireType enum in //net/proto2/public/wire_format.h.
# These values must match WireType enum in //google/protobuf/wire_format.h.
WIRETYPE_LENGTH_DELIMITED = 2
WIRETYPE_START_GROUP = 3

@ -64,10 +64,10 @@
#include <utility>
#include "google/protobuf/testing/file.h"
#include "google/protobuf/test_util2.h"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/io/io_win32.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/test_util2.h"
#if HAVE_ZLIB
#include "google/protobuf/io/gzip_stream.h"

Loading…
Cancel
Save