Home
last modified time | relevance | path

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

1234567

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DTracestateTest.java41 private final Tracestate firstTracestate = EMPTY.toBuilder().set(FIRST_KEY, FIRST_VALUE).build();
43 EMPTY.toBuilder().set(SECOND_KEY, SECOND_VALUE).build();
45 EMPTY.toBuilder().set(FIRST_KEY, FIRST_VALUE).set(SECOND_KEY, SECOND_VALUE).build();
68 EMPTY.toBuilder().set(null, FIRST_VALUE).build(); in disallowsNullKey()
74 EMPTY.toBuilder().set("1_key", FIRST_VALUE).build(); in invalidFirstKeyCharacter()
80 EMPTY.toBuilder().set("kEy_1", FIRST_VALUE).build(); in invalidKeyCharacters()
89 EMPTY.toBuilder().set(longKey, FIRST_VALUE).build(); in invalidKeySize()
106 assertThat(EMPTY.toBuilder().set(allowedKey, FIRST_VALUE).build().get(allowedKey)) in allAllowedKeyCharacters()
113 EMPTY.toBuilder().set(FIRST_KEY, null).build(); in disallowsNullValue()
119 EMPTY.toBuilder().set(FIRST_KEY, "my_vakue=5").build(); in valueCannotContainEqual()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/config/
DTraceParamsTest.java41 TraceParams.DEFAULT.toBuilder().setSampler(null).build(); in updateTraceParams_NullSampler()
46 TraceParams.DEFAULT.toBuilder().setMaxNumberOfAttributes(0).build(); in updateTraceParams_NonPositiveMaxNumberOfAttributes()
51 TraceParams.DEFAULT.toBuilder().setMaxNumberOfAnnotations(0).build(); in updateTraceParams_NonPositiveMaxNumberOfAnnotations()
56 TraceParams.DEFAULT.toBuilder().setMaxNumberOfNetworkEvents(0).build(); in updateTraceParams_NonPositiveMaxNumberOfNetworkEvents()
61 TraceParams.DEFAULT.toBuilder().setMaxNumberOfMessageEvents(0).build(); in updateTraceParams_NonPositiveMaxNumberOfMessageEvents()
66 TraceParams.DEFAULT.toBuilder().setMaxNumberOfLinks(0).build(); in updateTraceParams_NonPositiveMaxNumberOfLinks()
73 .toBuilder() in updateTraceParams_All()
92 TraceParams.DEFAULT.toBuilder().setMaxNumberOfNetworkEvents(10).build(); in updateTraceParams_maxNumberOfNetworkEvents()
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/
DChannelzProtoUtilTest.java414 socket.socketOptions = toBuilder(socket.socketOptions) in extractSocketData()
420 .toBuilder() in extractSocketData()
431 .toBuilder() in toSocketData()
540 server.serverStats = toBuilder(server.serverStats) in toServer()
545 .toBuilder() in toServer()
553 server.serverStats = toBuilder(server.serverStats) in toServer()
559 .toBuilder() in toServer()
575 channel.stats = toBuilder(channel.stats) in toChannel()
581 .toBuilder() in toChannel()
587 channel.stats = toBuilder(channel.stats) in toChannel()
[all …]
DBinlogHelperTest.java559 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logSendInitialMetadata_server()
577 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logSendInitialMetadata_client()
594 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logSendInitialMetadata_client()
617 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logRecvInitialMetadata_server()
636 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logRecvInitialMetadata_server()
660 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logRecvInitialMetadata_client()
673 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logTrailingMetadata_server()
691 metadataToProtoTestHelper(detailedStatus, 10).toBuilder() in logTrailingMetadata_server()
706 metadataToProtoTestHelper(nonEmptyMetadata, 10).toBuilder() in logTrailingMetadata_client()
724 metadataToProtoTestHelper(detailedStatus, 10).toBuilder() in logTrailingMetadata_client()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/
DTagContextImplTest.java75 assertThat(((TagContextImpl) tagger.toBuilder(tags).put(K2, V2).build()).getTags()) in put_newKey()
82 assertThat(((TagContextImpl) tagger.toBuilder(tags).put(K1, V2).build()).getTags()) in put_existingKey()
89 TagContextBuilder builder = tagger.toBuilder(tags); in put_nullKey()
98 TagContextBuilder builder = tagger.toBuilder(tags); in put_nullValue()
107 assertThat(((TagContextImpl) tagger.toBuilder(tags).remove(K1).build()).getTags()) in remove_existingKey()
114 assertThat(((TagContextImpl) tagger.toBuilder(tags).remove(K2).build()).getTags()) in remove_differentKey()
121 TagContextBuilder builder = tagger.toBuilder(tags); in remove_nullKey()
DTaggerImplTest.java157 TagContext newTagContext = tagger.toBuilder(unknownTagContext).build(); in toBuilder_ConvertUnknownTagContextToTagContextImpl()
167 TagContext newTagContext = tagger.toBuilder(tagContextWithDuplicateTags).build(); in toBuilder_RemoveDuplicatesFromUnknownTagContext()
174 TagContext newTagContext = tagger.toBuilder(tagContextWithNullTag).build(); in toBuilder_SkipNullTag()
181 assertThat(tagger.toBuilder(new SimpleTagContext(TAG1))) in toBuilder_TaggingDisabled()
189 assertThat(tagger.toBuilder(tags)).isSameAs(NoopTagContextBuilder.INSTANCE); in toBuilder_TaggingReenabled()
191 TagContextBuilder builder = tagger.toBuilder(tags); in toBuilder_TaggingReenabled()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DMethodDescriptorTest.java68 descriptor.toBuilder().setIdempotent(true).build(); in idempotent()
86 MethodDescriptor<String, String> newDescriptor = descriptor.toBuilder().setSafe(true).build(); in safe()
103 MethodDescriptor<String, String> unused = descriptor.toBuilder().setSafe(true).build(); in safeAndNonUnary()
117 MethodDescriptor<String, String> md2 = md1.toBuilder() in sampledToLocalTracing()
131 MethodDescriptor<String, String> md4 = md3.toBuilder() in sampledToLocalTracing()
164 MethodDescriptor<Integer, Integer> md2 = md1.toBuilder( in toBuilderTest()
DAttributesTest.java52 public void toBuilder() { in toBuilder() method in AttributesTest
56 .toBuilder() in toBuilder()
DServerServiceDefinitionTest.java42 method1.toBuilder().setIdempotent(true).build();
43 private MethodDescriptor<String, Integer> method2 = method1.toBuilder()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyStringEndToEndTest.java123 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed()
129 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed()
130 assertSame(repeated1, proto.toBuilder().getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed()
DMapForProto2LiteTest.java327 builder = message.toBuilder(); in testGettersAndSetters()
332 builder = message.toBuilder(); in testGettersAndSetters()
337 builder = message.toBuilder(); in testGettersAndSetters()
361 builder = message.toBuilder(); in testSerializeAndParse()
368 builder = message.toBuilder(); in testSerializeAndParse()
DMapTest.java307 builder = message.toBuilder(); in testGettersAndSetters()
312 builder = message.toBuilder(); in testGettersAndSetters()
317 builder = message.toBuilder(); in testGettersAndSetters()
357 builder = message.toBuilder(); in testSerializeAndParse()
364 builder = message.toBuilder(); in testSerializeAndParse()
619 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testReflectionApi()
711 builder = message.toBuilder(); in testUnknownEnumValues()
747 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testUnknownEnumValuesInReflectionApi()
DMapForProto2Test.java306 builder = message.toBuilder(); in testGettersAndSetters()
311 builder = message.toBuilder(); in testGettersAndSetters()
316 builder = message.toBuilder(); in testGettersAndSetters()
340 builder = message.toBuilder(); in testSerializeAndParse()
347 builder = message.toBuilder(); in testSerializeAndParse()
526 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testReflectionApi()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/
Dcom_github_javaparser_symbolsolver_model_methods_MethodUsage.txt14 …Line 125) typeParametersMap.toBuilder().setValue(typeParameter, type).build() ==> com.github.javap…
15 …Line 125) typeParametersMap.toBuilder().setValue(typeParameter, type) ==> com.github.javaparser.sy…
16 …5) typeParametersMap.toBuilder() ==> com.github.javaparser.symbolsolver.model.typesystem.parametri…
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java220 NestedTestAllTypes clearedSource = source.toBuilder().clearPayload().build(); in testMerge()
242 builder = source.toBuilder(); in testMerge()
245 builder = source.toBuilder(); in testMerge()
254 builder = source.toBuilder(); in testMerge()
/external/javapoet/src/main/java/com/squareup/javapoet/
DParameterSpec.java110 public Builder toBuilder() { in toBuilder() method in ParameterSpec
111 return toBuilder(type, name); in toBuilder()
114 Builder toBuilder(TypeName type, String name) { in toBuilder() method in ParameterSpec
/external/grpc-grpc-java/core/src/jmh/java/io/grpc/
DAttributesBenchmark.java50 withValue = withValue.toBuilder().set(keys[i], "yes").build(); in setUp()
66 attr = attr.toBuilder().set(keys[i], new Object()).build(); in chain()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/
DTaggerImpl.java65 : toBuilder(CurrentTagContextUtils.getCurrentTagContext()); in currentBuilder()
69 public TagContextBuilder toBuilder(TagContext tags) { in toBuilder() method in TaggerImpl
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DMethodDescriptor.java425 public Builder<ReqT, RespT> toBuilder() { in toBuilder() method in MethodDescriptor
426 return toBuilder(requestMarshaller, responseMarshaller); in toBuilder()
435 public <NewReqT, NewRespT> Builder<NewReqT, NewRespT> toBuilder( in toBuilder() method in MethodDescriptor
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DHedgingPolicyTest.java67 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getHedgingPolicies()
139 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getRetryPolicies_hedgingDisabled()
DRetryPolicyTest.java70 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getRetryPolicies()
148 MethodDescriptor.Builder<Void, Void> builder = TestMethodDescriptors.voidMethod().toBuilder(); in getRetryPolicies_retryDisabled()
/external/opencensus-java/api/src/main/java/io/opencensus/tags/
DTagger.java65 public abstract TagContextBuilder toBuilder(TagContext tags); in toBuilder() method in Tagger
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DLazyFieldLite.java345 setValue(value.toBuilder().mergeFrom(input, extensionRegistry).build()); in mergeFrom()
355 return value.toBuilder().mergeFrom(otherBytes, extensionRegistry).build(); in mergeValueAndBytes()
/external/opencensus-java/api/src/test/java/io/opencensus/tags/
DNoopTagsTest.java94 assertThat(noopTagger.toBuilder(TAG_CONTEXT)).isSameAs(NoopTags.getNoopTagContextBuilder()); in noopTagger()
103 noopTagger.toBuilder(null); in noopTagger_ToBuilder_DisallowsNull()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCensusStatsModule.java329 module.tagger.toBuilder(parentCtx) in ClientCallTracer()
409 .toBuilder(startCtx) in callEnded()
605 .toBuilder(parentCtx) in streamClosed()
637 .toBuilder(parentCtx) in newServerStreamTracer()

1234567