Home
last modified time | relevance | path

Searched full:builder (Results 1 – 25 of 3293) sorted by relevance

12345678910>>...132

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DProto2MessageLiteFactory.java80 Proto2MessageLite.Builder builder = Proto2MessageLite.newBuilder(); in newMessage() local
81 builder.setFieldDouble1(data.getDouble()); in newMessage()
82 builder.setFieldFloat2(data.getFloat()); in newMessage()
83 builder.setFieldInt643(data.getLong()); in newMessage()
84 builder.setFieldUint644(data.getLong()); in newMessage()
85 builder.setFieldInt325(data.getInt()); in newMessage()
86 builder.setFieldFixed646(data.getLong()); in newMessage()
87 builder.setFieldFixed327(data.getInt()); in newMessage()
88 builder.setFieldBool8(data.getBool()); in newMessage()
89 builder.setFieldString9(data.getString()); in newMessage()
[all …]
DProto2MessageFactory.java78 Proto2Message.Builder builder = Proto2Message.newBuilder(); in newMessage() local
79 builder.setFieldDouble1(data.getDouble()); in newMessage()
80 builder.setFieldFloat2(data.getFloat()); in newMessage()
81 builder.setFieldInt643(data.getLong()); in newMessage()
82 builder.setFieldUint644(data.getLong()); in newMessage()
83 builder.setFieldInt325(data.getInt()); in newMessage()
84 builder.setFieldFixed646(data.getLong()); in newMessage()
85 builder.setFieldFixed327(data.getInt()); in newMessage()
86 builder.setFieldBool8(data.getBool()); in newMessage()
87 builder.setFieldString9(data.getString()); in newMessage()
[all …]
DProto3MessageFactory.java76 Proto3Message.Builder builder = Proto3Message.newBuilder(); in newMessage() local
77 builder.setFieldDouble1(data.getDouble()); in newMessage()
78 builder.setFieldFloat2(data.getFloat()); in newMessage()
79 builder.setFieldInt643(data.getLong()); in newMessage()
80 builder.setFieldUint644(data.getLong()); in newMessage()
81 builder.setFieldInt325(data.getInt()); in newMessage()
82 builder.setFieldFixed646(data.getLong()); in newMessage()
83 builder.setFieldFixed327(data.getInt()); in newMessage()
84 builder.setFieldBool8(data.getBool()); in newMessage()
85 builder.setFieldString9(data.getString()); in newMessage()
[all …]
DProto3MessageLiteFactory.java78 Proto3MessageLite.Builder builder = Proto3MessageLite.newBuilder(); in newMessage() local
79 builder.setFieldDouble1(data.getDouble()); in newMessage()
80 builder.setFieldFloat2(data.getFloat()); in newMessage()
81 builder.setFieldInt643(data.getLong()); in newMessage()
82 builder.setFieldUint644(data.getLong()); in newMessage()
83 builder.setFieldInt325(data.getInt()); in newMessage()
84 builder.setFieldFixed646(data.getLong()); in newMessage()
85 builder.setFieldFixed327(data.getInt()); in newMessage()
86 builder.setFieldBool8(data.getBool()); in newMessage()
87 builder.setFieldString9(data.getString()); in newMessage()
[all …]
DProto3MessageInfoFactory.java79 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(48); in newMessageInfoForProto3Message() local
80 lookupFieldsByName(builder); in newMessageInfoForProto3Message()
81 return builder.build(); in newMessageInfoForProto3Message()
84 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument
85 builder.withDefaultInstance(Proto3Message.getDefaultInstance()); in lookupFieldsByName()
86 builder.withSyntax(ProtoSyntax.PROTO3); in lookupFieldsByName()
87 builder.withField(forField(field("fieldDouble1_"), 1, FieldType.DOUBLE, true)); in lookupFieldsByName()
88 builder.withField(forField(field("fieldFloat2_"), 2, FieldType.FLOAT, true)); in lookupFieldsByName()
89 builder.withField(forField(field("fieldInt643_"), 3, FieldType.INT64, true)); in lookupFieldsByName()
90 builder.withField(forField(field("fieldUint644_"), 4, FieldType.UINT64, true)); in lookupFieldsByName()
[all …]
DProto2MessageInfoFactory.java105 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(50); in newMessageInfoForProto2Message() local
106 builder.withCheckInitialized( in newMessageInfoForProto2Message()
110 lookupFieldsByName(builder); in newMessageInfoForProto2Message()
111 return builder.build(); in newMessageInfoForProto2Message()
114 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument
117 builder.withDefaultInstance(Proto2Message.getDefaultInstance()); in lookupFieldsByName()
118 builder.withSyntax(ProtoSyntax.PROTO2); in lookupFieldsByName()
119 builder.withField( in lookupFieldsByName()
122 builder.withField( in lookupFieldsByName()
125 builder.withField( in lookupFieldsByName()
[all …]
DProto3MessageLiteInfoFactory.java170 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(48); in newMessageInfoForProto3MessageLite() local
171 lookupFieldsByName(builder); in newMessageInfoForProto3MessageLite()
172 return builder.build(); in newMessageInfoForProto3MessageLite()
175 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument
176 builder.withDefaultInstance(Proto3MessageLite.getDefaultInstance()); in lookupFieldsByName()
177 builder.withSyntax(ProtoSyntax.PROTO3); in lookupFieldsByName()
178 builder.withField( in lookupFieldsByName()
180 builder.withField( in lookupFieldsByName()
182 builder.withField( in lookupFieldsByName()
184 builder.withField( in lookupFieldsByName()
[all …]
DGeneratedMessageTest.java89 TestAllExtensions.Builder builder = TestAllExtensions.newBuilder(); in testGetFieldBuilderForExtensionField() local
90 Message.Builder fieldBuilder = in testGetFieldBuilderForExtensionField()
91 builder.getFieldBuilder(UnittestProto.optionalNestedMessageExtension.getDescriptor()); in testGetFieldBuilderForExtensionField()
98 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderForExtensionField()
100 // fieldBuilder still updates the builder after builder build() has been called. in testGetFieldBuilderForExtensionField()
105 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderForExtensionField()
109 TestAllExtensions.Builder builder = TestAllExtensions.newBuilder(); in testGetFieldBuilderWithExistingMessage() local
110 builder.setExtension( in testGetFieldBuilderWithExistingMessage()
113 Message.Builder fieldBuilder = in testGetFieldBuilderWithExistingMessage()
114 builder.getFieldBuilder(UnittestProto.optionalNestedMessageExtension.getDescriptor()); in testGetFieldBuilderWithExistingMessage()
[all …]
DMapForProto2Test.java55 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() argument
56 builder.getMutableInt32ToInt32Field().put(1, 11); in setMapValuesUsingMutableMap()
57 builder.getMutableInt32ToInt32Field().put(2, 22); in setMapValuesUsingMutableMap()
58 builder.getMutableInt32ToInt32Field().put(3, 33); in setMapValuesUsingMutableMap()
60 builder.getMutableInt32ToStringField().put(1, "11"); in setMapValuesUsingMutableMap()
61 builder.getMutableInt32ToStringField().put(2, "22"); in setMapValuesUsingMutableMap()
62 builder.getMutableInt32ToStringField().put(3, "33"); in setMapValuesUsingMutableMap()
64 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValuesUsingMutableMap()
65 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValuesUsingMutableMap()
66 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValuesUsingMutableMap()
[all …]
DMapTest.java58 private void setMapValuesUsingMutableMap(TestMap.Builder builder) { in setMapValuesUsingMutableMap() argument
59 builder.getMutableInt32ToInt32Field().put(1, 11); in setMapValuesUsingMutableMap()
60 builder.getMutableInt32ToInt32Field().put(2, 22); in setMapValuesUsingMutableMap()
61 builder.getMutableInt32ToInt32Field().put(3, 33); in setMapValuesUsingMutableMap()
63 builder.getMutableInt32ToStringField().put(1, "11"); in setMapValuesUsingMutableMap()
64 builder.getMutableInt32ToStringField().put(2, "22"); in setMapValuesUsingMutableMap()
65 builder.getMutableInt32ToStringField().put(3, "33"); in setMapValuesUsingMutableMap()
67 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValuesUsingMutableMap()
68 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValuesUsingMutableMap()
69 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValuesUsingMutableMap()
[all …]
DDynamicMessageTest.java62 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors() local
63 reflectionTester.setAllFieldsViaReflection(builder); in testDynamicMessageAccessors()
64 Message message = builder.build(); in testDynamicMessageAccessors()
69 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild() local
70 Message firstMessage = builder.build(); in testSettersAfterBuild()
72 builder.build(); in testSettersAfterBuild()
74 builder.clear(); in testSettersAfterBuild()
76 reflectionTester.setAllFieldsViaReflection(builder); in testSettersAfterBuild()
77 Message message = builder.build(); in testSettersAfterBuild()
80 reflectionTester.modifyRepeatedFieldsViaReflection(builder); in testSettersAfterBuild()
[all …]
DMapLiteTest.java50 private void setMapValues(TestMap.Builder builder) { in setMapValues() argument
51 builder in setMapValues()
73 TestMap.Builder usingMutableMapBuilder = TestMap.newBuilder(); in testSetMapValues()
78 TestMap.Builder usingAccessorsBuilder = TestMap.newBuilder(); in testSetMapValues()
85 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues()
127 private void updateMapValues(TestMap.Builder builder) { in updateMapValues() argument
128 builder in updateMapValues()
150 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUpdateMapValues()
210 // instance, we attempt to verify that we can't cause the builder to modify in testSanityCopyOnWrite()
213 TestMap.Builder builder = TestMap.newBuilder(); in testSanityCopyOnWrite() local
[all …]
DMapForProto2LiteTest.java49 private void setMapValues(TestMap.Builder builder) { in setMapValues() argument
50 builder in setMapValues()
72 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testSetMapValues()
78 private void copyMapValues(TestMap source, TestMap.Builder destination) { in copyMapValues()
120 private void updateMapValues(TestMap.Builder builder) { in updateMapValues() argument
121 builder in updateMapValues()
143 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUpdateMapValues()
203 // instance, we attempt to verify that we can't cause the builder to modify in testSanityCopyOnWrite()
206 TestMap.Builder builder = TestMap.newBuilder(); in testSanityCopyOnWrite() local
207 TestMap message = builder.build(); in testSanityCopyOnWrite()
[all …]
DSingleFieldBuilderV3Test.java39 * provided via other tests that exercise the builder.
47 SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder> builder = in testBasicUseAndInvalidations() local
48 new SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder>( in testBasicUseAndInvalidations()
50 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testBasicUseAndInvalidations()
51 assertEquals(TestAllTypes.getDefaultInstance(), builder.getBuilder().buildPartial()); in testBasicUseAndInvalidations()
54 builder.getBuilder().setOptionalInt32(10); in testBasicUseAndInvalidations()
56 TestAllTypes message = builder.build(); in testBasicUseAndInvalidations()
61 builder.getBuilder().setOptionalInt32(20); in testBasicUseAndInvalidations()
65 builder.getBuilder().setOptionalInt32(30); in testBasicUseAndInvalidations()
71 SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder> builder = in testSetMessage() local
[all …]
/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
DProto2MessageLiteInfoFactory.java232 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(48); in newMessageInfoForProto2MessageLite() local
233 builder.withCheckInitialized( in newMessageInfoForProto2MessageLite()
237 lookupFieldsByName(builder); in newMessageInfoForProto2MessageLite()
238 return builder.build(); in newMessageInfoForProto2MessageLite()
241 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument
244 builder.withDefaultInstance(Proto2MessageLite.getDefaultInstance()); in lookupFieldsByName()
245 builder.withSyntax(ProtoSyntax.PROTO2); in lookupFieldsByName()
246 builder.withField( in lookupFieldsByName()
255 builder.withField( in lookupFieldsByName()
264 builder.withField( in lookupFieldsByName()
[all …]
DLiteTest.java159 TestAllTypesLite.Builder expected = TestAllTypesLite.newBuilder().setOptionalInt32(123); in testClone()
162 TestAllExtensionsLite.Builder expected2 = in testClone()
206 // instance, we attempt to verify that we can't cause the builder to modify in testSanityCopyOnWrite()
209 TestAllTypesLite.Builder builder = TestAllTypesLite.newBuilder(); in testSanityCopyOnWrite() local
210 TestAllTypesLite message = builder.build(); in testSanityCopyOnWrite()
212 builder.setOptionalBool(true); in testSanityCopyOnWrite()
214 assertEquals(true, builder.getOptionalBool()); in testSanityCopyOnWrite()
215 messageAfterBuild = builder.build(); in testSanityCopyOnWrite()
218 builder.clearOptionalBool(); in testSanityCopyOnWrite()
219 assertEquals(false, builder.getOptionalBool()); in testSanityCopyOnWrite()
[all …]
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DGeneratedMessageTest.java88 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() local
89 TestUtil.setAllFields(builder); in testMessageOrBuilder()
90 TestAllTypes message = builder.build(); in testMessageOrBuilder()
95 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() local
97 builder.setOptionalSfixed64(100); in testUsingBuilderMultipleTimes()
98 builder.addRepeatedInt32(100); in testUsingBuilderMultipleTimes()
100 builder.setOptionalImportEnum(UnittestImport.ImportEnum.IMPORT_BAR); in testUsingBuilderMultipleTimes()
101 builder.addRepeatedImportEnum(UnittestImport.ImportEnum.IMPORT_BAR); in testUsingBuilderMultipleTimes()
103 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
104 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
[all …]
DDynamicMessageTest.java59 Message.Builder builder = in testDynamicMessageAccessors() local
61 reflectionTester.setAllFieldsViaReflection(builder); in testDynamicMessageAccessors()
62 Message message = builder.build(); in testDynamicMessageAccessors()
67 Message.Builder builder = in testSettersAfterBuild() local
69 Message firstMessage = builder.build(); in testSettersAfterBuild()
71 builder.build(); in testSettersAfterBuild()
73 builder.clear(); in testSettersAfterBuild()
75 reflectionTester.setAllFieldsViaReflection(builder); in testSettersAfterBuild()
76 Message message = builder.build(); in testSettersAfterBuild()
79 reflectionTester.modifyRepeatedFieldsViaReflection(builder); in testSettersAfterBuild()
[all …]
/third_party/rust/crates/bindgen/bindgen-cli/
Doptions.rs3 builder, AliasVariation, Builder, CodegenConfig, EnumVariation,
150 …ll cause bindgen to emit Rust code that won't compile! See the `bindgen::Builder::allowlist_recurs…
377 /// Construct a new [`Builder`](./struct.Builder.html) from command line flags.
380 ) -> Result<(Builder, Box<dyn io::Write>, bool), io::Error> in builder_from_flags() argument
509 let mut builder = builder(); in builder_from_flags() localVariable
512 builder = builder.header(header); in builder_from_flags()
518 builder = builder.rust_target(rust_target); in builder_from_flags()
522 builder = builder.default_enum_style(variant); in builder_from_flags()
526 builder = builder.bitfield_enum(regex); in builder_from_flags()
530 builder = builder.newtype_enum(regex); in builder_from_flags()
[all …]
/third_party/typescript/tests/baselines/reference/
DmethodChainError.types2 class Builder {
3 >Builder : Builder
8 method(param: string): Builder {
9 >method : (param: string) => Builder
17 new Builder()
18 >new Builder() .method("a") .method() .method("a") : Builder
19 >new Builder() .method("a") .method() .method : (param: string) => Builder
20 >new Builder() .method("a") .method() : Builder
21 >new Builder() .method("a") .method : (param: string) => Builder
22 >new Builder() .method("a") : Builder
[all …]
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
Dtest-conversions.cc43 StringBuilder builder(buffer, kBufferSize); in TEST() local
48 CHECK(dc.ToShortest(0.0, &builder)); in TEST()
49 CHECK_EQ("0", builder.Finalize()); in TEST()
51 builder.Reset(); in TEST()
52 CHECK(dc.ToShortest(12345.0, &builder)); in TEST()
53 CHECK_EQ("12345", builder.Finalize()); in TEST()
55 builder.Reset(); in TEST()
56 CHECK(dc.ToShortest(12345e23, &builder)); in TEST()
57 CHECK_EQ("1.2345e+27", builder.Finalize()); in TEST()
59 builder.Reset(); in TEST()
[all …]
/third_party/mesa3d/src/panfrost/lib/
Dpan_indirect_draw.c212 get_draw_ctx_data(struct indirect_draw_shader_builder *builder, in get_draw_ctx_data() argument
215 nir_builder *b = &builder->b; in get_draw_ctx_data()
217 get_address_imm(b, builder->draw.draw_ctx, offset), in get_draw_ctx_data()
222 set_draw_ctx_data(struct indirect_draw_shader_builder *builder, in set_draw_ctx_data() argument
225 nir_builder *b = &builder->b; in set_draw_ctx_data()
227 get_address_imm(b, builder->draw.draw_ctx, offset), in set_draw_ctx_data()
231 #define get_draw_ctx_field(builder, name) \ argument
232 get_draw_ctx_data(builder, \
236 #define set_draw_ctx_field(builder, name, val) \ argument
237 set_draw_ctx_data(builder, \
[all …]
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DJsonFormatTest.java87 private void setAllFields(TestAllTypes.Builder builder) { in setAllFields() argument
88 builder.setOptionalInt32(1234); in setAllFields()
89 builder.setOptionalInt64(1234567890123456789L); in setAllFields()
90 builder.setOptionalUint32(5678); in setAllFields()
91 builder.setOptionalUint64(2345678901234567890L); in setAllFields()
92 builder.setOptionalSint32(9012); in setAllFields()
93 builder.setOptionalSint64(3456789012345678901L); in setAllFields()
94 builder.setOptionalFixed32(3456); in setAllFields()
95 builder.setOptionalFixed64(4567890123456789012L); in setAllFields()
96 builder.setOptionalSfixed32(7890); in setAllFields()
[all …]
DFieldMaskTreeTest.java141 Message.Builder builder, in merge() argument
146 Message.Builder newBuilder = in merge()
148 .mergeFrom(builder.buildPartial().toByteArray()); in merge()
155 builder.clear(); in merge()
156 builder.mergeFrom(newBuilder.buildPartial()); in merge()
158 tree.merge(source, builder, options); in merge()
167 TestRequiredMessage.Builder builder = TestRequiredMessage.newBuilder(); in testMergeRequire() local
171 builder, in testMergeRequire()
174 assertTrue(builder.hasRequiredMessage()); in testMergeRequire()
175 assertTrue(builder.getRequiredMessage().hasA()); in testMergeRequire()
[all …]
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_pipeline.c76 panvk_pipeline_builder_create_pipeline(struct panvk_pipeline_builder *builder, in panvk_pipeline_builder_create_pipeline() argument
79 struct panvk_device *dev = builder->device; in panvk_pipeline_builder_create_pipeline()
82 vk_object_zalloc(&dev->vk, builder->alloc, in panvk_pipeline_builder_create_pipeline()
87 pipeline->layout = builder->layout; in panvk_pipeline_builder_create_pipeline()
93 panvk_pipeline_builder_finish(struct panvk_pipeline_builder *builder) in panvk_pipeline_builder_finish() argument
96 if (!builder->shaders[i]) in panvk_pipeline_builder_finish()
98 panvk_shader_destroy(builder->device, builder->shaders[i], builder->alloc); in panvk_pipeline_builder_finish()
109 panvk_pipeline_builder_compile_shaders(struct panvk_pipeline_builder *builder, in panvk_pipeline_builder_compile_shaders() argument
116 builder->create_info.gfx ? in panvk_pipeline_builder_compile_shaders()
117 builder->create_info.gfx->pStages : in panvk_pipeline_builder_compile_shaders()
[all …]

12345678910>>...132