Example #1
0
 public io.grpc.testing.ClientArgs build() {
   io.grpc.testing.ClientArgs result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
Example #2
0
 public Builder mergeFrom(io.grpc.testing.ClientArgs other) {
   if (other == io.grpc.testing.ClientArgs.getDefaultInstance()) return this;
   switch (other.getArgtypeCase()) {
     case SETUP:
       {
         mergeSetup(other.getSetup());
         break;
       }
     case MARK:
       {
         mergeMark(other.getMark());
         break;
       }
     case ARGTYPE_NOT_SET:
       {
         break;
       }
   }
   onChanged();
   return this;
 }
Example #3
0
 public io.grpc.testing.ClientArgs buildPartial() {
   io.grpc.testing.ClientArgs result = new io.grpc.testing.ClientArgs(this);
   if (argtypeCase_ == 1) {
     if (setupBuilder_ == null) {
       result.argtype_ = argtype_;
     } else {
       result.argtype_ = setupBuilder_.build();
     }
   }
   if (argtypeCase_ == 2) {
     if (markBuilder_ == null) {
       result.argtype_ = argtype_;
     } else {
       result.argtype_ = markBuilder_.build();
     }
   }
   result.argtypeCase_ = argtypeCase_;
   onBuilt();
   return result;
 }
Example #4
0
 public io.grpc.testing.ClientArgs getDefaultInstanceForType() {
   return io.grpc.testing.ClientArgs.getDefaultInstance();
 }