@Test public void testEventTypeStatisticsSerialization() { EventType et = new EventType(); EventTypeStatistics ets = new EventTypeStatistics(1,2,3,4); et.eventTypeStatistics(ets); final NakadiClient client = TestSupport.newNakadiClient(); final String s = client.jsonSupport().toJson(et); final EventType eventType = client.jsonSupport().fromJson(s, EventType.class); assertEquals(1, eventType.eventTypeStatistics().messagesPerMinute()); assertEquals(2, eventType.eventTypeStatistics().messageSize()); assertEquals(3, eventType.eventTypeStatistics().readParallelism()); assertEquals(4, eventType.eventTypeStatistics().writeParallelism()); }
public EventTypeStatistics eventTypeStatistics() { return defaultStatistic; }
EventType { public EventTypeStatistics eventTypeStatistics() { return defaultStatistic; } }
EventType { public EventTypeStatistics eventTypeStatistics() { return defaultStatistic; }  }
EventType { public EventTypeStatistics eventTypeStatistics() { return defaultStatistic; }  String name(); EventType name(String name); String owningApplication(); EventType owningApplication(String owningApplication); Category category(); EventType category(Category category); List<String> enrichmentStrategies(); String partitionStrategy(); EventType partitionStrategy(String partitionStrategy); EventTypeSchema schema(); EventType schema(EventTypeSchema schema); List<String> partitionKeyFields(); EventType partitionKeyFields(String... partitionKeyFields); EventTypeStatistics eventTypeStatistics(); EventType eventTypeStatistics(EventTypeStatistics eventTypeStatistic); EventType options(EventTypeOptions options); EventTypeOptions options(); EventType enrichmentStrategies(String... enrichmentStrategies); EventType enrichmentStrategy(String enrichmentStrategy); @Deprecated List<String> readScopes(); @Deprecated EventType readScopes(String... readScopes); @Deprecated List<String> writeScopes(); @Deprecated EventType writeScopes(String... writeScopes); @Experimental String compatibilityMode(); @Experimental EventType compatibilityMode(String compatibilityMode); @Experimental OffsetDateTime createdAt(); @Experimental OffsetDateTime updatedAt(); EventTypeAuthorization authorization(); EventType authorization(EventTypeAuthorization authorization); String cleanupPolicy(); EventType cleanupPolicy(String cleanupPolicy); String audience(); EventType audience(String audience); @Override boolean equals(Object o); @Override String toString(); }
EventType { public EventTypeStatistics eventTypeStatistics() { return defaultStatistic; }  String name(); EventType name(String name); String owningApplication(); EventType owningApplication(String owningApplication); Category category(); EventType category(Category category); List<String> enrichmentStrategies(); String partitionStrategy(); EventType partitionStrategy(String partitionStrategy); EventTypeSchema schema(); EventType schema(EventTypeSchema schema); List<String> partitionKeyFields(); EventType partitionKeyFields(String... partitionKeyFields); EventTypeStatistics eventTypeStatistics(); EventType eventTypeStatistics(EventTypeStatistics eventTypeStatistic); EventType options(EventTypeOptions options); EventTypeOptions options(); EventType enrichmentStrategies(String... enrichmentStrategies); EventType enrichmentStrategy(String enrichmentStrategy); @Deprecated List<String> readScopes(); @Deprecated EventType readScopes(String... readScopes); @Deprecated List<String> writeScopes(); @Deprecated EventType writeScopes(String... writeScopes); @Experimental String compatibilityMode(); @Experimental EventType compatibilityMode(String compatibilityMode); @Experimental OffsetDateTime createdAt(); @Experimental OffsetDateTime updatedAt(); EventTypeAuthorization authorization(); EventType authorization(EventTypeAuthorization authorization); String cleanupPolicy(); EventType cleanupPolicy(String cleanupPolicy); String audience(); EventType audience(String audience); @Override boolean equals(Object o); @Override String toString(); static final String ENRICHMENT_METADATA; static final String PARTITION_RANDOM; static final String PARTITION_HASH; static final String DELETE; static final String COMPACT; }