Example #1
0
 @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);
 }
Example #2
0
 @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);
 }
Example #3
0
 @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;
 }
Example #4
0
 @Override
 public Builder newBuilder() {
   Builder builder = new Builder();
   builder.serial = WireInternal.copyOf("serial", serial);
   builder.addUnknownFields(unknownFields());
   return builder;
 }
Example #5
0
 @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);
 }
Example #6
0
 @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();
 }
Example #7
0
 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);
 }
Example #8
0
 public Builder serial(List<Integer> serial) {
   WireInternal.checkElementsNotNull(serial);
   this.serial = serial;
   return this;
 }
Example #9
0
 public Builder() {
   serial = WireInternal.newMutableList();
 }
Example #10
0
 public More(List<Integer> serial, ByteString unknownFields) {
   super(unknownFields);
   this.serial = WireInternal.immutableCopyOf("serial", serial);
 }
Example #11
0
 public Builder rep(List<FooBarBazEnum> rep) {
   WireInternal.checkElementsNotNull(rep);
   this.rep = rep;
   return this;
 }
Example #12
0
 public Builder nested(List<FooBar> nested) {
   WireInternal.checkElementsNotNull(nested);
   this.nested = nested;
   return this;
 }
Example #13
0
 public Builder fred(List<Float> fred) {
   WireInternal.checkElementsNotNull(fred);
   this.fred = fred;
   return this;
 }
Example #14
0
 public Builder() {
   fred = WireInternal.newMutableList();
   nested = WireInternal.newMutableList();
   rep = WireInternal.newMutableList();
 }