GPBUnknownFieldSet_PackagePrivate.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. //
  4. // Use of this source code is governed by a BSD-style
  5. // license that can be found in the LICENSE file or at
  6. // https://developers.google.com/open-source/licenses/bsd
  7. #import <Foundation/Foundation.h>
  8. #import "GPBUnknownFieldSet.h"
  9. @class GPBCodedOutputStream;
  10. @class GPBCodedInputStream;
  11. @interface GPBUnknownFieldSet ()
  12. + (BOOL)isFieldTag:(int32_t)tag;
  13. - (NSData *)data;
  14. - (size_t)serializedSize;
  15. - (size_t)serializedSizeAsMessageSet;
  16. - (void)writeToCodedOutputStream:(GPBCodedOutputStream *)output;
  17. - (void)writeAsMessageSetTo:(GPBCodedOutputStream *)output;
  18. - (void)mergeUnknownFields:(GPBUnknownFieldSet *)other;
  19. - (void)mergeFromCodedInputStream:(GPBCodedInputStream *)input;
  20. - (void)mergeVarintField:(int32_t)number value:(int32_t)value;
  21. - (BOOL)mergeFieldFrom:(int32_t)tag input:(GPBCodedInputStream *)input;
  22. - (void)mergeMessageSetMessage:(int32_t)number data:(NSData *)messageData;
  23. - (void)addUnknownMapEntry:(int32_t)fieldNum value:(NSData *)data;
  24. @end