示例#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> */
 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_;
 }
示例#3
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;
 }
示例#4
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();
 }