/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | LazyFieldLite.java | 102 private ExtensionRegistryLite extensionRegistry; field in LazyFieldLite 118 public LazyFieldLite(ExtensionRegistryLite extensionRegistry, ByteString bytes) { in LazyFieldLite() argument 119 checkArguments(extensionRegistry, bytes); in LazyFieldLite() 120 this.extensionRegistry = extensionRegistry; in LazyFieldLite() 211 if (other.extensionRegistry != null) { in set() 212 this.extensionRegistry = other.extensionRegistry; in set() 261 if (this.extensionRegistry == null) { in merge() 262 this.extensionRegistry = other.extensionRegistry; in merge() 279 setValue(mergeValueAndBytes(other.value, this.delayedBytes, this.extensionRegistry)); in merge() 282 setValue(mergeValueAndBytes(this.value, other.delayedBytes, other.extensionRegistry)); in merge() [all …]
|
D | AbstractParser.java | 84 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 86 return checkMessageInitialized(parsePartialFrom(input, extensionRegistry)); in parseFrom() 95 public MessageType parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in parsePartialFrom() argument 100 message = parsePartialFrom(input, extensionRegistry); in parsePartialFrom() 118 public MessageType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 120 return checkMessageInitialized(parsePartialFrom(data, extensionRegistry)); in parseFrom() 129 public MessageType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 134 message = parsePartialFrom(input, extensionRegistry); in parseFrom() 154 byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) in parsePartialFrom() argument 158 MessageType message = parsePartialFrom(input, extensionRegistry); in parsePartialFrom() [all …]
|
D | Parser.java | 68 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 82 CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parsePartialFrom() argument 98 public MessageType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 110 public MessageType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 123 public MessageType parsePartialFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in parsePartialFrom() argument 137 byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 150 public MessageType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) in parseFrom() argument 165 byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) in parsePartialFrom() argument 178 public MessageType parsePartialFrom(byte[] data, ExtensionRegistryLite extensionRegistry) in parsePartialFrom() argument 197 public MessageType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom() argument [all …]
|
D | Reader.java | 138 <T> T readMessageBySchemaWithCheck(Schema<T> schema, ExtensionRegistryLite extensionRegistry) in readMessageBySchemaWithCheck() argument 145 <T> T readMessage(Class<T> clazz, ExtensionRegistryLite extensionRegistry) throws IOException; in readMessage() argument 154 <T> T readGroup(Class<T> clazz, ExtensionRegistryLite extensionRegistry) throws IOException; in readGroup() argument 158 <T> T readGroupBySchemaWithCheck(Schema<T> schema, ExtensionRegistryLite extensionRegistry) in readGroupBySchemaWithCheck() argument 289 List<T> target, Schema<T> schema, ExtensionRegistryLite extensionRegistry) throws IOException; in readMessageList() argument 292 List<T> target, Class<T> targetType, ExtensionRegistryLite extensionRegistry) in readMessageList() argument 304 List<T> target, Class<T> targetType, ExtensionRegistryLite extensionRegistry) in readGroupList() argument 309 List<T> target, Schema<T> targetType, ExtensionRegistryLite extensionRegistry) in readGroupList() argument 377 ExtensionRegistryLite extensionRegistry) in readMap() argument
|
D | MessageLite.java | 185 Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 205 Builder mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 230 Builder mergeFrom(byte[] data, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 239 Builder mergeFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 263 Builder mergeFrom(InputStream input, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 295 boolean mergeDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) in mergeDelimitedFrom() argument
|
D | GeneratedMessageLite.java | 433 byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 439 new ArrayDecoders.Registers(extensionRegistry)); in mergeFrom() 460 com.google.protobuf.ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 467 instance, CodedInputStreamReader.forCodedInput(input), extensionRegistry); in mergeFrom() 529 ExtensionRegistryLite extensionRegistry, in parseUnknownField() argument 537 extensionRegistry.findLiteExtensionByNumber(defaultInstance, fieldNumber); in parseUnknownField() 539 return parseExtension(input, extensionRegistry, extension, tag, fieldNumber); in parseUnknownField() 544 ExtensionRegistryLite extensionRegistry, in parseExtension() argument 614 input.readGroup(extension.getNumber(), subBuilder, extensionRegistry); in parseExtension() local 616 input.readMessage(subBuilder, extensionRegistry); in parseExtension() [all …]
|
D | MapEntryLite.java | 121 ExtensionRegistryLite extensionRegistry, in parseField() argument 128 input.readMessage(subBuilder, extensionRegistry); in parseField() 166 public Map.Entry<K, V> parseEntry(ByteString bytes, ExtensionRegistryLite extensionRegistry) in parseEntry() argument 168 return parseEntry(bytes.newCodedInput(), metadata, extensionRegistry); in parseEntry() 172 CodedInputStream input, Metadata<K, V> metadata, ExtensionRegistryLite extensionRegistry) in parseEntry() argument 182 key = parseField(input, extensionRegistry, metadata.keyType, key); in parseEntry() 184 value = parseField(input, extensionRegistry, metadata.valueType, value); in parseEntry() 199 MapFieldLite<K, V> map, CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseInto() argument 212 key = parseField(input, extensionRegistry, metadata.keyType, key); in parseInto() 214 value = parseField(input, extensionRegistry, metadata.valueType, value); in parseInto()
|
D | Message.java | 144 Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 249 Builder mergeFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 259 Builder mergeFrom(byte[] data, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 263 Builder mergeFrom(byte[] data, int off, int len, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 270 Builder mergeFrom(InputStream input, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 277 boolean mergeDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) in mergeDelimitedFrom() argument
|
D | MessageSetSchema.java | 150 registers.extensionRegistry, defaultInstance, in mergeFrom() 185 .findExtensionByNumber(registers.extensionRegistry, defaultInstance, typeId); in mergeFrom() 225 public void mergeFrom(T message, Reader reader, ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 227 mergeFromHelper(unknownFieldSchema, extensionSchema, message, reader, extensionRegistry); in mergeFrom() 240 ExtensionRegistryLite extensionRegistry) in mergeFromHelper() argument 252 extensionRegistry, in mergeFromHelper() 276 ExtensionRegistryLite extensionRegistry, in parseMessageSetItemOrUnknownField() argument 287 extensionRegistry, defaultInstance, WireFormat.getTagFieldNumber(startTag)); in parseMessageSetItemOrUnknownField() 290 reader, extension, extensionRegistry, extensions); in parseMessageSetItemOrUnknownField() 333 extensionSchema.findExtensionByNumber(extensionRegistry, defaultInstance, typeId); in parseMessageSetItemOrUnknownField() [all …]
|
D | MessageReflection.java | 433 ExtensionRegistryLite extensionRegistry, in parseGroup() argument 450 input.readGroup(field.getNumber(), subBuilder, extensionRegistry); in parseGroup() local 457 ExtensionRegistryLite extensionRegistry, in parseMessage() argument 474 input.readMessage(subBuilder, extensionRegistry); in parseMessage() 481 ExtensionRegistryLite extensionRegistry, in parseMessageFromBytes() argument 498 subBuilder.mergeFrom(bytes, extensionRegistry); in parseMessageFromBytes() 727 ExtensionRegistryLite extensionRegistry, in mergeFieldFrom() argument 734 input, unknownFields, extensionRegistry, type, target); in mergeFieldFrom() 750 if (extensionRegistry instanceof ExtensionRegistry) { in mergeFieldFrom() 752 target.findExtensionByNumber((ExtensionRegistry) extensionRegistry, type, fieldNumber); in mergeFieldFrom() [all …]
|
D | AbstractMessageLite.java | 179 final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 198 final ByteString data, final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 202 mergeFrom(input, extensionRegistry); in mergeFrom() 233 public BuilderType mergeFrom(final byte[] data, final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 235 return mergeFrom(data, 0, data.length, extensionRegistry); in mergeFrom() 243 final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 247 mergeFrom(input, extensionRegistry); in mergeFrom() 267 final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException { in mergeFrom() argument 269 mergeFrom(codedInput, extensionRegistry); in mergeFrom() 329 final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException { in mergeDelimitedFrom() argument [all …]
|
D | ExtensionSchema.java | 64 ExtensionRegistryLite extensionRegistry, in parseExtension() argument 78 ExtensionRegistryLite extensionRegistry, MessageLite defaultInstance, int number); in findExtensionByNumber() argument 84 ExtensionRegistryLite extensionRegistry, in parseLengthPrefixedMessageSetItem() argument 95 ExtensionRegistryLite extensionRegistry, in parseMessageSetItem() argument
|
D | CodedInputStreamReader.java | 170 public <T> T readMessage(Class<T> clazz, ExtensionRegistryLite extensionRegistry) in readMessage() argument 173 return readMessage(Protobuf.getInstance().schemaFor(clazz), extensionRegistry); in readMessage() 179 Schema<T> schema, ExtensionRegistryLite extensionRegistry) throws IOException { in readMessageBySchemaWithCheck() argument 181 return readMessage(schema, extensionRegistry); in readMessageBySchemaWithCheck() 186 public <T> T readGroup(Class<T> clazz, ExtensionRegistryLite extensionRegistry) in readGroup() argument 189 return readGroup(Protobuf.getInstance().schemaFor(clazz), extensionRegistry); in readGroup() 194 public <T> T readGroupBySchemaWithCheck(Schema<T> schema, ExtensionRegistryLite extensionRegistry) in readGroupBySchemaWithCheck() argument 197 return readGroup(schema, extensionRegistry); in readGroupBySchemaWithCheck() 201 private <T> T readMessage(Schema<T> schema, ExtensionRegistryLite extensionRegistry) in readMessage() argument 213 schema.mergeFrom(message, this, extensionRegistry); in readMessage() [all …]
|
D | AbstractMessage.java | 425 final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 439 input, unknownFields, extensionRegistry, getDescriptorForType(), builderAdapter, tag)) { in mergeFrom() 529 final ByteString data, final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 531 return (BuilderType) super.mergeFrom(data, extensionRegistry); in mergeFrom() 546 public BuilderType mergeFrom(final byte[] data, final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 548 return (BuilderType) super.mergeFrom(data, extensionRegistry); in mergeFrom() 556 final ExtensionRegistryLite extensionRegistry) in mergeFrom() argument 558 return (BuilderType) super.mergeFrom(data, off, len, extensionRegistry); in mergeFrom() 568 final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException { in mergeFrom() argument 569 return (BuilderType) super.mergeFrom(input, extensionRegistry); in mergeFrom() [all …]
|
D | BinaryReader.java | 235 public <T> T readMessage(Class<T> clazz, ExtensionRegistryLite extensionRegistry) in readMessage() argument 238 return readMessage(Protobuf.getInstance().schemaFor(clazz), extensionRegistry); in readMessage() 243 Schema<T> schema, ExtensionRegistryLite extensionRegistry) throws IOException { in readMessageBySchemaWithCheck() argument 245 return readMessage(schema, extensionRegistry); in readMessageBySchemaWithCheck() 248 private <T> T readMessage(Schema<T> schema, ExtensionRegistryLite extensionRegistry) in readMessage() argument 261 schema.mergeFrom(message, this, extensionRegistry); in readMessage() 275 public <T> T readGroup(Class<T> clazz, ExtensionRegistryLite extensionRegistry) in readGroup() argument 278 return readGroup(Protobuf.getInstance().schemaFor(clazz), extensionRegistry); in readGroup() 283 Schema<T> schema, ExtensionRegistryLite extensionRegistry) throws IOException { in readGroupBySchemaWithCheck() argument 285 return readGroup(schema, extensionRegistry); in readGroupBySchemaWithCheck() [all …]
|
D | ExtensionSchemaFull.java | 90 ExtensionRegistryLite extensionRegistry, in parseExtension() argument 276 value = reader.readGroup(extension.defaultInstance.getClass(), extensionRegistry); in parseExtension() 280 value = reader.readMessage(extension.defaultInstance.getClass(), extensionRegistry); in parseExtension() 498 ExtensionRegistryLite extensionRegistry, MessageLite defaultInstance, int number) { in findExtensionByNumber() argument 499 return ((ExtensionRegistry) extensionRegistry) in findExtensionByNumber() 507 ExtensionRegistryLite extensionRegistry, in parseLengthPrefixedMessageSetItem() argument 514 reader.readMessage(extensionInfo.defaultInstance.getClass(), extensionRegistry); in parseLengthPrefixedMessageSetItem() 519 new LazyField(extensionInfo.defaultInstance, extensionRegistry, reader.readBytes())); in parseLengthPrefixedMessageSetItem() 527 ExtensionRegistryLite extensionRegistry, in parseMessageSetItem() argument 535 Protobuf.getInstance().mergeFrom(value, reader, extensionRegistry); in parseMessageSetItem() [all …]
|
D | CodedInputStream.java | 294 final ExtensionRegistryLite extensionRegistry) in readGroup() argument 300 final int fieldNumber, final Parser<T> parser, final ExtensionRegistryLite extensionRegistry) in readGroup() argument 316 final MessageLite.Builder builder, final ExtensionRegistryLite extensionRegistry) in readMessage() argument 322 final Parser<T> parser, final ExtensionRegistryLite extensionRegistry) throws IOException; in readMessage() argument 827 final ExtensionRegistryLite extensionRegistry) in readGroup() argument 833 builder.mergeFrom(this, extensionRegistry); in readGroup() 843 final ExtensionRegistryLite extensionRegistry) in readGroup() argument 849 T result = parser.parsePartialFrom(this, extensionRegistry); in readGroup() 864 final MessageLite.Builder builder, final ExtensionRegistryLite extensionRegistry) in readMessage() argument 872 builder.mergeFrom(this, extensionRegistry); in readMessage() [all …]
|
D | DynamicMessage.java | 97 Descriptor type, CodedInputStream input, ExtensionRegistry extensionRegistry) in parseFrom() argument 99 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed(); in parseFrom() 110 Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) in parseFrom() argument 112 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed(); in parseFrom() 123 Descriptor type, byte[] data, ExtensionRegistry extensionRegistry) in parseFrom() argument 125 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed(); in parseFrom() 135 Descriptor type, InputStream input, ExtensionRegistry extensionRegistry) throws IOException { in parseFrom() argument 136 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed(); in parseFrom() 287 CodedInputStream input, ExtensionRegistryLite extensionRegistry) in getParserForType() 291 builder.mergeFrom(input, extensionRegistry); in getParserForType()
|
/third_party/protobuf/objectivec/ |
D | GPBMessage.h | 150 extensionRegistry:(nullable GPBExtensionRegistry *)extensionRegistry 173 extensionRegistry: 174 (nullable GPBExtensionRegistry *)extensionRegistry 198 extensionRegistry: 199 (nullable GPBExtensionRegistry *)extensionRegistry 242 extensionRegistry:(nullable GPBExtensionRegistry *)extensionRegistry 266 extensionRegistry: 267 (nullable GPBExtensionRegistry *)extensionRegistry 281 extensionRegistry:(nullable GPBExtensionRegistry *)extensionRegistry;
|
D | GPBMessage_PackagePrivate.h | 81 extensionRegistry:(GPBExtensionRegistry *)extensionRegistry; 86 extensionRegistry: 87 (GPBExtensionRegistry *)extensionRegistry;
|
D | GPBCodedInputStream_PackagePrivate.h | 64 extensionRegistry:(GPBExtensionRegistry *)extensionRegistry; 73 extensionRegistry:(GPBExtensionRegistry *)extensionRegistry
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | Proto2ExtensionLookupSchemaTest.java | 50 private ExtensionRegistry extensionRegistry; field in Proto2ExtensionLookupSchemaTest 58 extensionRegistry = ExtensionRegistry.newInstance(); in setup() 59 Proto2Testing.registerAllExtensions(extensionRegistry); in setup() 65 Proto2MessageWithExtensions.parseFrom(data, extensionRegistry); in testExtensions() 69 data, Proto2MessageWithExtensions.class, extensionRegistry); in testExtensions() 76 extensionRegistry); in testExtensions() 127 output, Proto2MessageWithExtensions.class, extensionRegistry); in testUnknownEnum()
|
D | WireFormatTest.java | 343 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetWithFlag() local 344 extensionRegistry.add(TestMessageSetExtension1.messageSetExtension); in testParseMessageSetWithFlag() 345 extensionRegistry.add(TestMessageSetExtension2.messageSetExtension); in testParseMessageSetWithFlag() 372 TestMessageSet messageSet = TestMessageSet.parseFrom(data, extensionRegistry); in testParseMessageSetWithFlag() 399 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetExtensionWithFlag() local 400 extensionRegistry.add(TestMessageSetExtension1.messageSetExtension); in testParseMessageSetExtensionWithFlag() 416 TestMessageSet messageSet = TestMessageSet.parseFrom(data, extensionRegistry); in testParseMessageSetExtensionWithFlag() 430 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeLazyMessageSetExtensionWithFlag() local 431 extensionRegistry.add(TestMessageSetExtension1.messageSetExtension); in testMergeLazyMessageSetExtensionWithFlag() 447 TestMessageSet messageSet = TestMessageSet.parseFrom(data, extensionRegistry); in testMergeLazyMessageSetExtensionWithFlag() [all …]
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | WireFormatTest.java | 333 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetWithFlag() local 334 extensionRegistry.add(TestMessageSetExtension1.messageSetExtension); in testParseMessageSetWithFlag() 335 extensionRegistry.add(TestMessageSetExtension2.messageSetExtension); in testParseMessageSetWithFlag() 367 TestMessageSet.parseFrom(data, extensionRegistry); in testParseMessageSetWithFlag() 396 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetExtensionWithFlag() local 397 extensionRegistry.add(TestMessageSetExtension1.messageSetExtension); in testParseMessageSetExtensionWithFlag() 419 TestMessageSet.parseFrom(data, extensionRegistry); in testParseMessageSetExtensionWithFlag() 435 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeLazyMessageSetExtensionWithFlag() local 436 extensionRegistry.add(TestMessageSetExtension1.messageSetExtension); in testMergeLazyMessageSetExtensionWithFlag() 458 TestMessageSet.parseFrom(data, extensionRegistry); in testMergeLazyMessageSetExtensionWithFlag() [all …]
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | SentinelOuterClass.java | 141 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 145 builder.mergeFrom(input, extensionRegistry); 276 com.google.protobuf.ExtensionRegistryLite extensionRegistry) in parseFrom() argument 278 return PARSER.parseFrom(data, extensionRegistry); in parseFrom() 286 com.google.protobuf.ExtensionRegistryLite extensionRegistry) in parseFrom() argument 288 return PARSER.parseFrom(data, extensionRegistry); in parseFrom() 296 com.google.protobuf.ExtensionRegistryLite extensionRegistry) in parseFrom() argument 298 return PARSER.parseFrom(input, extensionRegistry); in parseFrom() 306 com.google.protobuf.ExtensionRegistryLite extensionRegistry) in parseDelimitedFrom() argument 308 return PARSER.parseDelimitedFrom(input, extensionRegistry); in parseDelimitedFrom() [all …]
|