Home
last modified time | relevance | path

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

/external/grpc-grpc-java/protobuf-lite/src/main/java/io/grpc/protobuf/lite/
DProtoLiteUtils.java82 public static <T extends MessageLite> Marshaller<T> marshaller(T defaultInstance) { in marshaller() argument
84 return new MessageMarshaller<T>(defaultInstance); in marshaller()
93 T defaultInstance) { in metadataMarshaller() argument
94 return new MetadataMarshaller<T>(defaultInstance); in metadataMarshaller()
123 private final T defaultInstance; field in ProtoLiteUtils.MessageMarshaller
126 MessageMarshaller(T defaultInstance) { in MessageMarshaller() argument
127 this.defaultInstance = defaultInstance; in MessageMarshaller()
128 parser = (Parser<T>) defaultInstance.getParserForType(); in MessageMarshaller()
136 return (Class<T>) defaultInstance.getClass(); in getMessageClass()
141 return defaultInstance; in getMessagePrototype()
[all …]
/external/protobuf/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
457 Message defaultInstance) in parseGroup() argument
461 if (defaultInstance != null) { in parseGroup()
462 subBuilder = defaultInstance.newBuilderForType(); in parseGroup()
481 Message defaultInstance) in parseMessage() argument
485 if (defaultInstance != null) { in parseMessage()
486 subBuilder = defaultInstance.newBuilderForType(); in parseMessage()
[all …]
DMapEntryLite.java47 public final MapEntryLite<K, V> defaultInstance; field in MapEntryLite.Metadata
52 MapEntryLite<K, V> defaultInstance, in Metadata() argument
55 this.defaultInstance = defaultInstance; in Metadata()
155 K key = metadata.defaultInstance.key; in MapEntryLite()
156 V value = metadata.defaultInstance.value; in MapEntryLite()
222 return metadata.defaultInstance; in getDefaultInstanceForType()
244 this.key = metadata.defaultInstance.key; in Builder()
245 this.value = metadata.defaultInstance.value; in Builder()
267 this.key = metadata.defaultInstance.key; in clearKey()
272 this.value = metadata.defaultInstance.value; in clearValue()
[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 …]
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()
274 public void add(final FieldDescriptor type, final Message defaultInstance) { in add() argument
280 add(new ExtensionInfo(type, defaultInstance), in add()
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()
DMapEntry.java54 public final MapEntry<K, V> defaultInstance; field in MapEntry.Metadata
58 final Descriptor descriptor, final MapEntry<K, V> defaultInstance) { in Metadata() argument
60 this.defaultInstance = defaultInstance; in Metadata()
64 defaultInstance.data.getParserForType(); in Metadata()
150 return metadata.defaultInstance; in getDefaultInstanceForType()
225 this.data = metadata.defaultInstance.data; in Builder()
365 return metadata.defaultInstance; in getDefaultInstanceForType()
DRpcUtil.java72 final Type defaultInstance) { in generalizeCallback() argument
80 typedParameter = copyAsType(defaultInstance, parameter); in generalizeCallback()
DUnknownFieldSet.java77 return defaultInstance; in getDefaultInstance()
81 return defaultInstance; in getDefaultInstanceForType()
83 private static final UnknownFieldSet defaultInstance = field in UnknownFieldSet
DGeneratedMessage.java1453 final Message defaultInstance) { in newMessageScopedGeneratedExtension() argument
1465 defaultInstance, in newMessageScopedGeneratedExtension()
1473 final Message defaultInstance) {
1480 defaultInstance,
1513 final Class singularType, final Message defaultInstance) {
1525 defaultInstance,
1539 final Class singularType, final Message defaultInstance,
1562 defaultInstance,
DTextFormat.java1592 (extension == null) ? null : extension.defaultInstance); in consumeFieldValue()
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/advanced/
DJsonMarshaller.java47 public static <T extends Message> Marshaller<T> jsonMarshaller(final T defaultInstance) { in jsonMarshaller() argument
50 return jsonMarshaller(defaultInstance, parser, printer); in jsonMarshaller()
59 final T defaultInstance, final Parser parser, final Printer printer) { in jsonMarshaller() argument
79 Builder builder = defaultInstance.newBuilderForType(); in jsonMarshaller()
/external/grpc-grpc-java/protobuf/src/main/java/io/grpc/protobuf/
DProtoUtils.java35 public static <T extends Message> Marshaller<T> marshaller(final T defaultInstance) { in marshaller() argument
36 return ProtoLiteUtils.marshaller(defaultInstance); in marshaller()
/external/protobuf/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()
/external/grpc-grpc-java/protobuf/
Dgrpc-protobuf-1.14.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/grpc/ io/ ...
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs67 private static readonly JsonParser defaultInstance = new JsonParser(Settings.Default); field in Google.Protobuf.JsonParser
102 public static JsonParser Default { get { return defaultInstance; } }
/external/javaparser/javaparser-testing/src/test/resources/com/github/javaparser/lexical_preservation_samples/
DExample4_original.java.txt52 private static final JavaParser defaultInstance = new JavaParser();
297 ParseResult<T> result = defaultInstance.parse(context, provider);
/external/cldr/tools/java/org/unicode/cldr/util/
DSupplementalDataInfo.java961 static private SupplementalDataInfo defaultInstance = null;
974 if (defaultInstance != null) return defaultInstance;
983 defaultInstance = this;
/external/kotlinc/lib/
Dkotlin-reflect.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/descriptors.jvm. ...
Dkotlin-compiler.jarMETA-INF/MANIFEST.MF org/jetbrains/kotlin/utils/JavaSdkUtil.class JavaSdkUtil ...
/external/error_prone/error_prone/
Derror_prone_core-2.3.2-with-dependencies.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...
/external/v8/src/inspector/build/closure-compiler/
Dclosure-compiler.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java2789 Assert.assertNotNull(extension.defaultInstance); in newBuilderForField()
2790 return extension.defaultInstance.newBuilderForType(); in newBuilderForField()
/external/dagger2/lib/
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...