示例#1
0
文件: FooBar.java 项目: pforhan/wire
 @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
文件: FooBar.java 项目: pforhan/wire
 @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
文件: FooBar.java 项目: pforhan/wire
 @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
文件: FooBar.java 项目: pforhan/wire
 @Override
 public Builder newBuilder() {
   Builder builder = new Builder();
   builder.serial = WireInternal.copyOf("serial", serial);
   builder.addUnknownFields(unknownFields());
   return builder;
 }
示例#5
0
文件: FooBar.java 项目: pforhan/wire
 @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
文件: FooBar.java 项目: pforhan/wire
 @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
文件: FooBar.java 项目: pforhan/wire
 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
文件: FooBar.java 项目: pforhan/wire
 public Builder serial(List<Integer> serial) {
   WireInternal.checkElementsNotNull(serial);
   this.serial = serial;
   return this;
 }
示例#9
0
文件: FooBar.java 项目: pforhan/wire
 public Builder() {
   serial = WireInternal.newMutableList();
 }
示例#10
0
文件: FooBar.java 项目: pforhan/wire
 public More(List<Integer> serial, ByteString unknownFields) {
   super(unknownFields);
   this.serial = WireInternal.immutableCopyOf("serial", serial);
 }
示例#11
0
文件: FooBar.java 项目: pforhan/wire
 public Builder rep(List<FooBarBazEnum> rep) {
   WireInternal.checkElementsNotNull(rep);
   this.rep = rep;
   return this;
 }
示例#12
0
文件: FooBar.java 项目: pforhan/wire
 public Builder nested(List<FooBar> nested) {
   WireInternal.checkElementsNotNull(nested);
   this.nested = nested;
   return this;
 }
示例#13
0
文件: FooBar.java 项目: pforhan/wire
 public Builder fred(List<Float> fred) {
   WireInternal.checkElementsNotNull(fred);
   this.fred = fred;
   return this;
 }
示例#14
0
文件: FooBar.java 项目: pforhan/wire
 public Builder() {
   fred = WireInternal.newMutableList();
   nested = WireInternal.newMutableList();
   rep = WireInternal.newMutableList();
 }