public static Builder builder(Location location) { return new AutoValue_MessageElement.Builder() .location(location) .documentation("") .fields(ImmutableList.<FieldElement>of()) .oneOfs(ImmutableList.<OneOfElement>of()) .nestedTypes(ImmutableList.<TypeElement>of()) .extensions(ImmutableList.<ExtensionsElement>of()) .options(ImmutableList.<OptionElement>of()) .reserveds(ImmutableList.<ReservedElement>of()) .groups(ImmutableList.<GroupElement>of()); }
.options(options.build()) .reserveds(reserveds.build()) .groups(groups.build()) .build();
TypeElement message = MessageElement.builder(location.at(1, 1)) .name("SearchResponse") .groups(ImmutableList.of( GroupElement.builder(location.at(2, 3)) .label(REPEATED)
.options(options.build()) .reserveds(reserveds.build()) .groups(groups.build()) .build();
.options(options.build()) .reserveds(reserveds.build()) .groups(groups.build()) .build();
public static Builder builder(Location location) { return new AutoValue_MessageElement.Builder() .location(location) .documentation("") .fields(ImmutableList.<FieldElement>of()) .oneOfs(ImmutableList.<OneOfElement>of()) .nestedTypes(ImmutableList.<TypeElement>of()) .extensions(ImmutableList.<ExtensionsElement>of()) .options(ImmutableList.<OptionElement>of()) .reserveds(ImmutableList.<ReservedElement>of()) .groups(ImmutableList.<GroupElement>of()); }
public static Builder builder(Location location) { return new AutoValue_MessageElement.Builder() .location(location) .documentation("") .fields(ImmutableList.<FieldElement>of()) .oneOfs(ImmutableList.<OneOfElement>of()) .nestedTypes(ImmutableList.<TypeElement>of()) .extensions(ImmutableList.<ExtensionsElement>of()) .options(ImmutableList.<OptionElement>of()) .reserveds(ImmutableList.<ReservedElement>of()) .groups(ImmutableList.<GroupElement>of()); }
@Test public void groupToSchema() { TypeElement element = MessageElement.builder(location.at(1, 1)) .name("SearchResponse") .groups(ImmutableList.of( GroupElement.builder(location.at(2, 3)) .label(REPEATED)