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