HomeSort by relevance Sort by last modified time
    Searched refs:newBuilder (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
MessageTest.java 54 TestAllTypes.newBuilder()
62 TestAllTypes.newBuilder()
65 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build())
81 TestAllTypes.newBuilder(MERGE_DEST)
94 TestAllTypes.newBuilder(MERGE_DEST)
95 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build())
104 DynamicMessage.newBuilder(MERGE_DEST)
105 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build())
117 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
120 TestRequired.Builder builder = TestRequired.newBuilder();
    [all...]
DynamicMessageTest.java 59 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
67 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
87 DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor());
88 builder.setUnknownFields(UnknownFieldSet.newBuilder()
89 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build())
90 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build())
95 Message.Builder newBuilder = builder.clone();
96 assertEquals(2, newBuilder.getUnknownFields().asMap().size());
98 newBuilder.clear();
99 assertTrue(newBuilder.getUnknownFields().asMap().isEmpty())
    [all...]
TestBadIdentifiers.java 46 TestBadIdentifiersProto.Deprecated.newBuilder();
47 TestBadIdentifiersProto.Override.newBuilder();
UnknownFieldSetTest.java 68 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder();
71 UnknownFieldSet.Field.newBuilder().addVarint(1).build();
73 UnknownFieldSet.Field.newBuilder().addFixed32(1).build();
156 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build();
163 TestEmptyMessage.newBuilder()
165 UnknownFieldSet.newBuilder()
167 UnknownFieldSet.Field.newBuilder()
170 UnknownFieldSet.Field.newBuilder()
175 TestEmptyMessage.newBuilder()
177 UnknownFieldSet.newBuilder()
    [all...]
NestedBuildersTest.java 50 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder();
93 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder();
136 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder();
150 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder();
151 vehicleBuilder.addWheel(Wheel.newBuilder()
154 vehicleBuilder.addWheel(Wheel.newBuilder()
164 Vehicle vehicle1 = Vehicle.newBuilder()
165 .addWheel(Wheel.newBuilder().setRadius(1).build())
166 .addWheel(Wheel.newBuilder().setRadius(2).build())
169 Vehicle vehicle2 = Vehicle.newBuilder()
    [all...]
GeneratedMessageTest.java 88 TestAllTypes.newBuilder().getDefaultInstanceForType());
92 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
99 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
107 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1));
108 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1));
126 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(2));
127 builder.setRepeatedForeignMessage(0, ForeignMessage.newBuilder().setC(2));
153 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
169 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
227 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
    [all...]
LiteTest.java 71 TestAllTypesLite.newBuilder()
75 TestAllTypesLite.NestedMessage.newBuilder().setBb(7))
94 TestAllExtensionsLite.newBuilder()
100 TestAllTypesLite.NestedMessage.newBuilder().setBb(7).build())
125 TestAllTypesLite.newBuilder()
129 TestAllTypesLite.NestedMessage.newBuilder().setBb(7))
TextFormatTest.java 150 return UnknownFieldSet.newBuilder()
152 UnknownFieldSet.Field.newBuilder()
158 UnknownFieldSet.newBuilder()
160 UnknownFieldSet.Field.newBuilder()
166 UnknownFieldSet.Field.newBuilder()
172 UnknownFieldSet.Field.newBuilder()
184 TestEmptyMessage.newBuilder()
214 final Object value = NestedMessage.newBuilder().setBb(42).build();
244 Message message = TestAllTypes.newBuilder()
284 TestMessageSet.newBuilder()
    [all...]
ParserTest.java 129 TestRequired partialMessage = TestRequired.newBuilder()
222 TestOptimizedForSize.Builder builder = TestOptimizedForSize.newBuilder();
223 builder.setI(12).setMsg(ForeignMessage.newBuilder().setC(34).build());
226 TestRequiredOptimizedForSize.newBuilder().setX(78).build());
253 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
263 TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder()
266 TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder()
269 TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder()
272 TestParsingMerge.RepeatedFieldsGenerator.Group2.newBuilder()
275 TestParsingMerge.RepeatedFieldsGenerator.Group2.newBuilder()
    [all...]
WireFormatTest.java 264 TestFieldOrderings.newBuilder()
275 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor())
296 TestFieldOrderings.newBuilder()
313 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor())
345 TestMessageSet.newBuilder()
348 TestMessageSetExtension1.newBuilder().setI(123).build())
351 TestMessageSetExtension2.newBuilder().setStr("foo").build())
353 UnknownFieldSet.newBuilder()
355 UnknownFieldSet.Field.newBuilder()
403 RawMessageSet.newBuilder()
    [all...]
RepeatedFieldBuilderTest.java 54 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build());
55 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build());
75 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build());
76 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build());
104 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build());
105 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(2).build());
146 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build());
148 TestAllTypes.newBuilder().setOptionalInt32(0).build());
165 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(12).build());
AbstractMessageTest.java 193 TestAllTypes.newBuilder(TestUtil.getAllSet()))
200 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder())
225 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder());
232 TestRequiredForeign.Builder builder = TestRequiredForeign.newBuilder();
236 new AbstractMessageWrapper.Builder(TestRequiredForeign.newBuilder());
247 Message.Builder dynamicMessageBuilder = DynamicMessage.newBuilder(
272 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder());
291 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder());
300 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder());
308 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder());
    [all...]
SingleFieldBuilderTest.java 86 builder.setMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build());
112 builder.setMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build());
139 builder.mergeFrom(TestAllTypes.newBuilder()
146 builder.setMessage(TestAllTypes.newBuilder()
149 builder.mergeFrom(TestAllTypes.newBuilder()
  /external/protobuf/java/src/test/java/com/google/protobuf/
GeneratedMessageTest.java 68 TestAllTypes.newBuilder().getDefaultInstanceForType());
72 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
79 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
90 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
101 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
167 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
175 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
196 TestAllTypes.NestedMessage.newBuilder().setBb(218).build());
198 TestAllTypes.NestedMessage.newBuilder().setBb(456).build());
224 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
    [all...]
MessageTest.java 52 TestAllTypes.newBuilder()
60 TestAllTypes.newBuilder()
63 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build())
79 TestAllTypes.newBuilder(MERGE_DEST)
92 TestAllTypes.newBuilder(MERGE_DEST)
93 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build())
102 DynamicMessage.newBuilder(MERGE_DEST)
103 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build())
115 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
118 TestRequired.Builder builder = TestRequired.newBuilder();
    [all...]
DynamicMessageTest.java 58 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
66 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
78 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
90 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
99 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor());
107 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor());
113 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
122 DynamicMessage.newBuilder(TestAllTypes.getDescriptor());
130 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()).build());
137 DynamicMessage.newBuilder(TestAllTypes.getDescriptor())
    [all...]
UnknownFieldSetTest.java 68 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder();
71 UnknownFieldSet.Field.newBuilder().addVarint(1).build();
73 UnknownFieldSet.Field.newBuilder().addFixed32(1).build();
156 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build();
163 TestEmptyMessage.newBuilder()
165 UnknownFieldSet.newBuilder()
167 UnknownFieldSet.Field.newBuilder()
170 UnknownFieldSet.Field.newBuilder()
175 TestEmptyMessage.newBuilder()
177 UnknownFieldSet.newBuilder()
    [all...]
TextFormatTest.java 140 TestEmptyMessage.newBuilder()
142 UnknownFieldSet.newBuilder()
144 UnknownFieldSet.Field.newBuilder()
150 UnknownFieldSet.newBuilder()
152 UnknownFieldSet.Field.newBuilder()
158 UnknownFieldSet.Field.newBuilder()
164 UnknownFieldSet.Field.newBuilder()
198 final Object value = NestedMessage.newBuilder().setBb(42).build();
228 Message message = TestAllTypes.newBuilder()
268 TestMessageSet.newBuilder()
    [all...]
LiteTest.java 66 TestAllTypesLite.newBuilder()
70 TestAllTypesLite.NestedMessage.newBuilder().setBb(7))
89 TestAllExtensionsLite.newBuilder()
95 TestAllTypesLite.NestedMessage.newBuilder().setBb(7).build())
AbstractMessageTest.java 185 TestAllTypes.newBuilder(TestUtil.getAllSet()))
192 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder())
217 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder());
236 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder());
255 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder());
264 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder());
272 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder());
282 TestOptimizedForSize.newBuilder().setI(1).build();
293 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
296 TestRequired.Builder builder = TestRequired.newBuilder();
    [all...]
WireFormatTest.java 263 TestFieldOrderings.newBuilder()
274 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor())
295 TestFieldOrderings.newBuilder()
312 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor())
334 TestMessageSet.newBuilder()
337 TestMessageSetExtension1.newBuilder().setI(123).build())
340 TestMessageSetExtension2.newBuilder().setStr("foo").build())
342 UnknownFieldSet.newBuilder()
344 UnknownFieldSet.Field.newBuilder()
382 RawMessageSet.newBuilder()
    [all...]
  /external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/
DynamicMessage.java 76 return newBuilder(type).mergeFrom(input).buildParsed();
85 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed();
91 return newBuilder(type).mergeFrom(data).buildParsed();
98 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed();
104 return newBuilder(type).mergeFrom(data).buildParsed();
111 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed();
117 return newBuilder(type).mergeFrom(input).buildParsed();
124 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed();
128 public static Builder newBuilder(Descriptor type) {
136 public static Builder newBuilder(Message prototype)
    [all...]
  /external/guava/guava-tests/test/com/google/common/cache/
CacheEvictionTest.java 46 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
56 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
66 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
81 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
98 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
117 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
137 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).build(loader);
149 final LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
166 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
198 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
    [all...]
NullCacheTest.java 44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
61 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
78 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
94 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
110 LoadingCache<Object, Object> map = CacheBuilder.newBuilder()
  /external/protobuf/java/src/main/java/com/google/protobuf/
DynamicMessage.java 75 return newBuilder(type).mergeFrom(input).buildParsed();
84 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed();
90 return newBuilder(type).mergeFrom(data).buildParsed();
97 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed();
103 return newBuilder(type).mergeFrom(data).buildParsed();
110 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed();
116 return newBuilder(type).mergeFrom(input).buildParsed();
123 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed();
127 public static Builder newBuilder(Descriptor type) {
135 public static Builder newBuilder(Message prototype)
    [all...]

Completed in 2651 milliseconds

1 2 3