Beispiel #1
0
 @Override
 public Builder newBuilder() {
   Builder builder = new Builder();
   builder.i = i;
   builder.addUnknownFields(unknownFields());
   return builder;
 }
 private SearchAdRequest(Builder builder) {
   xl = Builder.a(builder);
   xm = Builder.b(builder);
   xn = Builder.c(builder);
   xo = Builder.d(builder);
   xp = Builder.e(builder);
   xq = Builder.f(builder);
   xr = Builder.g(builder);
   xs = Builder.h(builder);
   xt = Builder.i(builder);
   xu = Builder.j(builder);
   xv = Builder.k(builder);
   xw = Builder.l(builder);
   xx = Builder.m(builder);
   xy = Builder.n(builder);
   ld = new bg(Builder.o(builder), this);
 }
Beispiel #3
0
 @Override
 public C decode(ProtoReader reader) throws IOException {
   Builder builder = new Builder();
   long token = reader.beginMessage();
   for (int tag; (tag = reader.nextTag()) != -1; ) {
     switch (tag) {
       case 1:
         builder.i(ProtoAdapter.INT32.decode(reader));
         break;
       default:
         {
           FieldEncoding fieldEncoding = reader.peekFieldEncoding();
           Object value = fieldEncoding.rawProtoAdapter().decode(reader);
           builder.addUnknownField(tag, fieldEncoding, value);
         }
     }
   }
   reader.endMessage(token);
   return builder.build();
 }