@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Nested)) return false; Nested o = (Nested) other; return WireInternal.equals(unknownFields(), o.unknownFields()) && WireInternal.equals(value, o.value); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof More)) return false; More o = (More) other; return WireInternal.equals(unknownFields(), o.unknownFields()) && WireInternal.equals(serial, o.serial); }
@Override public Builder newBuilder() { Builder builder = new Builder(); builder.foo = foo; builder.bar = bar; builder.baz = baz; builder.qux = qux; builder.fred = WireInternal.copyOf("fred", fred); builder.daisy = daisy; builder.nested = WireInternal.copyOf("nested", nested); builder.ext = ext; builder.rep = WireInternal.copyOf("rep", rep); builder.addUnknownFields(unknownFields()); return builder; }
@Override public Builder newBuilder() { Builder builder = new Builder(); builder.serial = WireInternal.copyOf("serial", serial); builder.addUnknownFields(unknownFields()); return builder; }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof FooBar)) return false; FooBar o = (FooBar) other; return WireInternal.equals(unknownFields(), o.unknownFields()) && WireInternal.equals(foo, o.foo) && WireInternal.equals(bar, o.bar) && WireInternal.equals(baz, o.baz) && WireInternal.equals(qux, o.qux) && WireInternal.equals(fred, o.fred) && WireInternal.equals(daisy, o.daisy) && WireInternal.equals(nested, o.nested) && WireInternal.equals(ext, o.ext) && WireInternal.equals(rep, o.rep); }
@Override public FooBar redact(FooBar value) { Builder builder = value.newBuilder(); if (builder.baz != null) builder.baz = Nested.ADAPTER.redact(builder.baz); WireInternal.redactElements(builder.nested, FooBar.ADAPTER); builder.clearUnknownFields(); return builder.build(); }
public FooBar( Integer foo, String bar, Nested baz, Long qux, List<Float> fred, Double daisy, List<FooBar> nested, FooBarBazEnum ext, List<FooBarBazEnum> rep, ByteString unknownFields) { super(unknownFields); this.foo = foo; this.bar = bar; this.baz = baz; this.qux = qux; this.fred = WireInternal.immutableCopyOf("fred", fred); this.daisy = daisy; this.nested = WireInternal.immutableCopyOf("nested", nested); this.ext = ext; this.rep = WireInternal.immutableCopyOf("rep", rep); }
public Builder serial(List<Integer> serial) { WireInternal.checkElementsNotNull(serial); this.serial = serial; return this; }
public Builder() { serial = WireInternal.newMutableList(); }
public More(List<Integer> serial, ByteString unknownFields) { super(unknownFields); this.serial = WireInternal.immutableCopyOf("serial", serial); }
public Builder rep(List<FooBarBazEnum> rep) { WireInternal.checkElementsNotNull(rep); this.rep = rep; return this; }
public Builder nested(List<FooBar> nested) { WireInternal.checkElementsNotNull(nested); this.nested = nested; return this; }
public Builder fred(List<Float> fred) { WireInternal.checkElementsNotNull(fred); this.fred = fred; return this; }
public Builder() { fred = WireInternal.newMutableList(); nested = WireInternal.newMutableList(); rep = WireInternal.newMutableList(); }