Remove GPBWrapperUtil from generated code (#5880)

* Remove GPBWrapperUtil from generated code

* Add newline
pull/5885/head
Paul Yang 6 years ago committed by GitHub
parent 4b145b1c7f
commit 207d01daa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      php/src/Google/Protobuf/Internal/DescriptorProto.php
  2. 1
      php/src/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php
  3. 1
      php/src/Google/Protobuf/Internal/DescriptorProto/ReservedRange.php
  4. 1
      php/src/Google/Protobuf/Internal/EnumDescriptorProto.php
  5. 1
      php/src/Google/Protobuf/Internal/EnumDescriptorProto/EnumReservedRange.php
  6. 1
      php/src/Google/Protobuf/Internal/EnumOptions.php
  7. 1
      php/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php
  8. 1
      php/src/Google/Protobuf/Internal/EnumValueOptions.php
  9. 1
      php/src/Google/Protobuf/Internal/ExtensionRangeOptions.php
  10. 1
      php/src/Google/Protobuf/Internal/FieldDescriptorProto.php
  11. 1
      php/src/Google/Protobuf/Internal/FieldOptions.php
  12. 1
      php/src/Google/Protobuf/Internal/FileDescriptorProto.php
  13. 1
      php/src/Google/Protobuf/Internal/FileDescriptorSet.php
  14. 1
      php/src/Google/Protobuf/Internal/FileOptions.php
  15. 1
      php/src/Google/Protobuf/Internal/GeneratedCodeInfo.php
  16. 1
      php/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php
  17. 1
      php/src/Google/Protobuf/Internal/MessageOptions.php
  18. 1
      php/src/Google/Protobuf/Internal/MethodDescriptorProto.php
  19. 1
      php/src/Google/Protobuf/Internal/MethodOptions.php
  20. 1
      php/src/Google/Protobuf/Internal/OneofDescriptorProto.php
  21. 1
      php/src/Google/Protobuf/Internal/OneofOptions.php
  22. 1
      php/src/Google/Protobuf/Internal/ServiceDescriptorProto.php
  23. 1
      php/src/Google/Protobuf/Internal/ServiceOptions.php
  24. 1
      php/src/Google/Protobuf/Internal/SourceCodeInfo.php
  25. 1
      php/src/Google/Protobuf/Internal/SourceCodeInfo/Location.php
  26. 1
      php/src/Google/Protobuf/Internal/UninterpretedOption.php
  27. 1
      php/src/Google/Protobuf/Internal/UninterpretedOption/NamePart.php
  28. 6
      src/google/protobuf/compiler/php/php_generator.cc

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a message type. * Describes a message type.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.DescriptorProto.ExtensionRange</code> * Generated from protobuf message <code>google.protobuf.DescriptorProto.ExtensionRange</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Range of reserved tag numbers. Reserved tag numbers may not be used by * Range of reserved tag numbers. Reserved tag numbers may not be used by

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes an enum type. * Describes an enum type.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Range of reserved numeric values. Reserved values may not be used by * Range of reserved numeric values. Reserved values may not be used by

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.EnumOptions</code> * Generated from protobuf message <code>google.protobuf.EnumOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a value within an enum. * Describes a value within an enum.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.EnumValueOptions</code> * Generated from protobuf message <code>google.protobuf.EnumValueOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.ExtensionRangeOptions</code> * Generated from protobuf message <code>google.protobuf.ExtensionRangeOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a field within a message. * Describes a field within a message.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.FieldOptions</code> * Generated from protobuf message <code>google.protobuf.FieldOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a complete .proto file. * Describes a complete .proto file.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* The protocol compiler can output a FileDescriptorSet containing the .proto * The protocol compiler can output a FileDescriptorSet containing the .proto

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.FileOptions</code> * Generated from protobuf message <code>google.protobuf.FileOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes the relationship between generated code and its original source * Describes the relationship between generated code and its original source

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo.Annotation</code> * Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo.Annotation</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.MessageOptions</code> * Generated from protobuf message <code>google.protobuf.MessageOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a method of a service. * Describes a method of a service.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.MethodOptions</code> * Generated from protobuf message <code>google.protobuf.MethodOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a oneof. * Describes a oneof.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.OneofOptions</code> * Generated from protobuf message <code>google.protobuf.OneofOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Describes a service. * Describes a service.

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.ServiceOptions</code> * Generated from protobuf message <code>google.protobuf.ServiceOptions</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Encapsulates information about the original source file from which a * Encapsulates information about the original source file from which a

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* Generated from protobuf message <code>google.protobuf.SourceCodeInfo.Location</code> * Generated from protobuf message <code>google.protobuf.SourceCodeInfo.Location</code>

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* A message representing a option the parser does not recognize. This only * A message representing a option the parser does not recognize. This only

@ -9,7 +9,6 @@ use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil; use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/** /**
* The name of the uninterpreted option. Each string represents a segment in * The name of the uninterpreted option. Each string represents a segment in

@ -1023,16 +1023,14 @@ void GenerateUseDeclaration(bool is_descriptor, io::Printer* printer) {
printer->Print( printer->Print(
"use Google\\Protobuf\\Internal\\GPBType;\n" "use Google\\Protobuf\\Internal\\GPBType;\n"
"use Google\\Protobuf\\Internal\\RepeatedField;\n" "use Google\\Protobuf\\Internal\\RepeatedField;\n"
"use Google\\Protobuf\\Internal\\GPBUtil;\n" "use Google\\Protobuf\\Internal\\GPBUtil;\n\n");
"use Google\\Protobuf\\Internal\\GPBWrapperUtils;\n\n");
} else { } else {
printer->Print( printer->Print(
"use Google\\Protobuf\\Internal\\GPBType;\n" "use Google\\Protobuf\\Internal\\GPBType;\n"
"use Google\\Protobuf\\Internal\\GPBWire;\n" "use Google\\Protobuf\\Internal\\GPBWire;\n"
"use Google\\Protobuf\\Internal\\RepeatedField;\n" "use Google\\Protobuf\\Internal\\RepeatedField;\n"
"use Google\\Protobuf\\Internal\\InputStream;\n" "use Google\\Protobuf\\Internal\\InputStream;\n"
"use Google\\Protobuf\\Internal\\GPBUtil;\n" "use Google\\Protobuf\\Internal\\GPBUtil;\n\n");
"use Google\\Protobuf\\Internal\\GPBWrapperUtils;\n\n");
} }
} }

Loading…
Cancel
Save