示例#1
0
 /** <code>optional .grpc.testing.Mark mark = 2;</code> */
 public io.grpc.testing.Mark getMark() {
   if (markBuilder_ == null) {
     if (argtypeCase_ == 2) {
       return (io.grpc.testing.Mark) argtype_;
     }
     return io.grpc.testing.Mark.getDefaultInstance();
   } else {
     if (argtypeCase_ == 2) {
       return markBuilder_.getMessage();
     }
     return io.grpc.testing.Mark.getDefaultInstance();
   }
 }
示例#2
0
 /** <code>optional .grpc.testing.Mark mark = 2;</code> */
 public Builder mergeMark(io.grpc.testing.Mark value) {
   if (markBuilder_ == null) {
     if (argtypeCase_ == 2 && argtype_ != io.grpc.testing.Mark.getDefaultInstance()) {
       argtype_ =
           io.grpc.testing.Mark.newBuilder((io.grpc.testing.Mark) argtype_)
               .mergeFrom(value)
               .buildPartial();
     } else {
       argtype_ = value;
     }
     onChanged();
   } else {
     if (argtypeCase_ == 2) {
       markBuilder_.mergeFrom(value);
     }
     markBuilder_.setMessage(value);
   }
   argtypeCase_ = 2;
   return this;
 }
示例#3
0
 /** <code>optional .grpc.testing.Mark mark = 2;</code> */
 private com.google.protobuf.SingleFieldBuilder<
         io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder>
     getMarkFieldBuilder() {
   if (markBuilder_ == null) {
     if (!(argtypeCase_ == 2)) {
       argtype_ = io.grpc.testing.Mark.getDefaultInstance();
     }
     markBuilder_ =
         new com.google.protobuf.SingleFieldBuilder<
             io.grpc.testing.Mark, io.grpc.testing.Mark.Builder, io.grpc.testing.MarkOrBuilder>(
             (io.grpc.testing.Mark) argtype_, getParentForChildren(), isClean());
     argtype_ = null;
   }
   argtypeCase_ = 2;
   onChanged();
   ;
   return markBuilder_;
 }
示例#4
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();
   }
 }
示例#5
0
 /** <code>optional .grpc.testing.Mark mark = 2;</code> */
 public io.grpc.testing.MarkOrBuilder getMarkOrBuilder() {
   if (argtypeCase_ == 2) {
     return (io.grpc.testing.Mark) argtype_;
   }
   return io.grpc.testing.Mark.getDefaultInstance();
 }