Home
last modified time | relevance | path

Searched refs:defaultInstance (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DMessageReflection.java326 Descriptors.FieldDescriptor descriptor, Message defaultInstance) in parseGroup() argument
334 Descriptors.FieldDescriptor descriptor, Message defaultInstance) in parseMessage() argument
344 Descriptors.FieldDescriptor descriptor, Message defaultInstance) in parseMessageFromBytes() argument
361 Message defaultInstance); in newMergeTargetForField() argument
456 Message defaultInstance) in parseGroup() argument
460 if (defaultInstance != null) { in parseGroup()
461 subBuilder = defaultInstance.newBuilderForType(); in parseGroup()
480 Message defaultInstance) in parseMessage() argument
484 if (defaultInstance != null) { in parseMessage()
485 subBuilder = defaultInstance.newBuilderForType(); in parseMessage()
[all …]
DLazyField.java52 private final MessageLite defaultInstance; field in LazyField
54 public LazyField(MessageLite defaultInstance, in LazyField() argument
58 this.defaultInstance = defaultInstance; in LazyField()
63 return super.containsDefaultInstance() || value == defaultInstance; in containsDefaultInstance()
67 return getValue(defaultInstance); in getValue()
DGeneratedMessageLite.java312 private final MessageType defaultInstance; field in GeneratedMessageLite.Builder
316 protected Builder(MessageType defaultInstance) { in Builder() argument
317 this.defaultInstance = defaultInstance; in Builder()
319 (MessageType) defaultInstance.dynamicMethod(MethodToInvoke.NEW_MUTABLE_INSTANCE); in Builder()
392 return defaultInstance; in getDefaultInstanceForType()
478 MessageType defaultInstance, in parseUnknownField() argument
488 defaultInstance, fieldNumber); in parseUnknownField()
735 protected ExtendableBuilder(MessageType defaultInstance) { in ExtendableBuilder() argument
736 super(defaultInstance); in ExtendableBuilder()
1187 MessageLite defaultInstance = (MessageLite) defaultInstanceField.get(null); in readResolve() local
[all …]
DLazyFieldLite.java223 public MessageLite getValue(MessageLite defaultInstance) { in getValue() argument
224 ensureInitialized(defaultInstance); in getValue()
421 protected void ensureInitialized(MessageLite defaultInstance) { in ensureInitialized() argument
432 MessageLite parsedValue = defaultInstance.getParserForType() in ensureInitialized()
437 this.value = defaultInstance; in ensureInitialized()
443 this.value = defaultInstance; in ensureInitialized()
DExtensionRegistry.java123 public final Message defaultInstance; field in ExtensionRegistry.ExtensionInfo
127 defaultInstance = null; in ExtensionInfo()
130 final Message defaultInstance) { in ExtensionInfo() argument
132 this.defaultInstance = defaultInstance; in ExtensionInfo()
279 public void add(final FieldDescriptor type, final Message defaultInstance) { in add() argument
285 add(new ExtensionInfo(type, defaultInstance), in add()
DRpcUtil.java72 final Type defaultInstance) { in generalizeCallback() argument
80 typedParameter = copyAsType(defaultInstance, parameter); in generalizeCallback()
DMapEntry.java60 MapEntry<K, V> defaultInstance, in Metadata() argument
63 super(keyType, defaultInstance.key, valueType, defaultInstance.value); in Metadata()
DUnknownFieldSet.java78 return defaultInstance; in getDefaultInstance()
82 return defaultInstance; in getDefaultInstanceForType()
84 private static final UnknownFieldSet defaultInstance = field in UnknownFieldSet
DGeneratedMessage.java1617 final Message defaultInstance) {
1629 defaultInstance,
1637 final Message defaultInstance) {
1644 defaultInstance,
1677 final Class singularType, final Message defaultInstance) {
1689 defaultInstance,
1703 final Class singularType, final Message defaultInstance,
1726 defaultInstance,
DTextFormat.java1620 (extension == null) ? null : extension.defaultInstance); in consumeFieldValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java719 …private static final com.google.protobuf.jruby.SentinelOuterClass.Sentinel defaultInstance;static { field in SentinelOuterClass.Sentinel
720 defaultInstance = new com.google.protobuf.jruby.SentinelOuterClass.Sentinel();
724 return defaultInstance; in getDefaultInstance()
728 return defaultInstance; in getDefaultInstanceForType()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DFieldPresenceTest.java268 DynamicMessage defaultInstance = DynamicMessage.getDefaultInstance(descriptor); in testFieldPresenceDynamicMessage() local
270 DynamicMessage message = defaultInstance.newBuilderForType().build(); in testFieldPresenceDynamicMessage()
279 defaultInstance in testFieldPresenceDynamicMessage()
DTestUtil.java2789 Assert.assertNotNull(extension.defaultInstance); in newBuilderForField()
2790 return extension.defaultInstance.newBuilderForType(); in newBuilderForField()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonParser.cs67 private static readonly JsonParser defaultInstance = new JsonParser(Settings.Default); field in Google.Protobuf.JsonParser
103 public static JsonParser Default { get { return defaultInstance; } }
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java2030 Assert.assertNotNull(extension.defaultInstance); in newBuilderForField()
2031 return extension.defaultInstance.newBuilderForType(); in newBuilderForField()