示例#1
0
 /** <code>optional .grpc.testing.Mark mark = 2;</code> */
 public Builder setMark(io.grpc.testing.Mark.Builder builderForValue) {
   if (markBuilder_ == null) {
     argtype_ = builderForValue.build();
     onChanged();
   } else {
     markBuilder_.setMessage(builderForValue.build());
   }
   argtypeCase_ = 2;
   return this;
 }
示例#2
0
 private ClientArgs(
     com.google.protobuf.CodedInputStream input,
     com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
   this();
   int mutable_bitField0_ = 0;
   try {
     boolean done = false;
     while (!done) {
       int tag = input.readTag();
       switch (tag) {
         case 0:
           done = true;
           break;
         default:
           {
             if (!input.skipField(tag)) {
               done = true;
             }
             break;
           }
         case 10:
           {
             io.grpc.testing.ClientConfig.Builder subBuilder = null;
             if (argtypeCase_ == 1) {
               subBuilder = ((io.grpc.testing.ClientConfig) argtype_).toBuilder();
             }
             argtype_ =
                 input.readMessage(io.grpc.testing.ClientConfig.parser(), extensionRegistry);
             if (subBuilder != null) {
               subBuilder.mergeFrom((io.grpc.testing.ClientConfig) argtype_);
               argtype_ = subBuilder.buildPartial();
             }
             argtypeCase_ = 1;
             break;
           }
         case 18:
           {
             io.grpc.testing.Mark.Builder subBuilder = null;
             if (argtypeCase_ == 2) {
               subBuilder = ((io.grpc.testing.Mark) argtype_).toBuilder();
             }
             argtype_ = input.readMessage(io.grpc.testing.Mark.parser(), extensionRegistry);
             if (subBuilder != null) {
               subBuilder.mergeFrom((io.grpc.testing.Mark) argtype_);
               argtype_ = subBuilder.buildPartial();
             }
             argtypeCase_ = 2;
             break;
           }
       }
     }
   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
     throw new RuntimeException(e.setUnfinishedMessage(this));
   } catch (java.io.IOException e) {
     throw new RuntimeException(
         new com.google.protobuf.InvalidProtocolBufferException(e.getMessage())
             .setUnfinishedMessage(this));
   } finally {
     makeExtensionsImmutable();
   }
 }