@Test public void test_with_request_only() { final EventBusAddressMessageMapping<GetVerticleDeployments.Request, GetVerticleDeployments.Response> mapping = EventBusAddressMessageMapping.<GetVerticleDeployments.Request, GetVerticleDeployments.Response>builder() .address("/xyz") .requestDefaultInstance(GetVerticleDeployments.Request.getDefaultInstance()) .build(); assertThat(mapping.getResponseDefaultInstance().isPresent(), is(false)); final GetVerticleDeployments.Request requestDefaultInstance = mapping.getRequestDefaultInstance(); assertThat(requestDefaultInstance, is(GetVerticleDeployments.Request.getDefaultInstance())); assertThat(mapping.getAddress(), is("/xyz")); }
public static <REQUEST extends com.google.protobuf.Message, RESPONSE extends com.google.protobuf.Message> Builder<REQUEST, RESPONSE> builder() { return new Builder<>(); }
EventBusAddressMessageMapping { public static <REQUEST extends com.google.protobuf.Message, RESPONSE extends com.google.protobuf.Message> Builder<REQUEST, RESPONSE> builder() { return new Builder<>(); } }
EventBusAddressMessageMapping { public static <REQUEST extends com.google.protobuf.Message, RESPONSE extends com.google.protobuf.Message> Builder<REQUEST, RESPONSE> builder() { return new Builder<>(); } private  EventBusAddressMessageMapping(); }
EventBusAddressMessageMapping { public static <REQUEST extends com.google.protobuf.Message, RESPONSE extends com.google.protobuf.Message> Builder<REQUEST, RESPONSE> builder() { return new Builder<>(); } private  EventBusAddressMessageMapping(); static Builder<REQUEST, RESPONSE> builder(); void validate(); JsonObject toJson(); @Override String toString(); }
EventBusAddressMessageMapping { public static <REQUEST extends com.google.protobuf.Message, RESPONSE extends com.google.protobuf.Message> Builder<REQUEST, RESPONSE> builder() { return new Builder<>(); } private  EventBusAddressMessageMapping(); static Builder<REQUEST, RESPONSE> builder(); void validate(); JsonObject toJson(); @Override String toString();  }