Exemplo n.º 1
0
 /** <code>optional .grpc.testing.ClientConfig setup = 1;</code> */
 public io.grpc.testing.ClientConfig getSetup() {
   if (setupBuilder_ == null) {
     if (argtypeCase_ == 1) {
       return (io.grpc.testing.ClientConfig) argtype_;
     }
     return io.grpc.testing.ClientConfig.getDefaultInstance();
   } else {
     if (argtypeCase_ == 1) {
       return setupBuilder_.getMessage();
     }
     return io.grpc.testing.ClientConfig.getDefaultInstance();
   }
 }
Exemplo n.º 2
0
 /** <code>optional .grpc.testing.ClientConfig setup = 1;</code> */
 public Builder mergeSetup(io.grpc.testing.ClientConfig value) {
   if (setupBuilder_ == null) {
     if (argtypeCase_ == 1 && argtype_ != io.grpc.testing.ClientConfig.getDefaultInstance()) {
       argtype_ =
           io.grpc.testing.ClientConfig.newBuilder((io.grpc.testing.ClientConfig) argtype_)
               .mergeFrom(value)
               .buildPartial();
     } else {
       argtype_ = value;
     }
     onChanged();
   } else {
     if (argtypeCase_ == 1) {
       setupBuilder_.mergeFrom(value);
     }
     setupBuilder_.setMessage(value);
   }
   argtypeCase_ = 1;
   return this;
 }
Exemplo n.º 3
0
 /** <code>optional .grpc.testing.ClientConfig setup = 1;</code> */
 private com.google.protobuf.SingleFieldBuilder<
         io.grpc.testing.ClientConfig,
         io.grpc.testing.ClientConfig.Builder,
         io.grpc.testing.ClientConfigOrBuilder>
     getSetupFieldBuilder() {
   if (setupBuilder_ == null) {
     if (!(argtypeCase_ == 1)) {
       argtype_ = io.grpc.testing.ClientConfig.getDefaultInstance();
     }
     setupBuilder_ =
         new com.google.protobuf.SingleFieldBuilder<
             io.grpc.testing.ClientConfig,
             io.grpc.testing.ClientConfig.Builder,
             io.grpc.testing.ClientConfigOrBuilder>(
             (io.grpc.testing.ClientConfig) argtype_, getParentForChildren(), isClean());
     argtype_ = null;
   }
   argtypeCase_ = 1;
   onChanged();
   ;
   return setupBuilder_;
 }
Exemplo n.º 4
0
 /** <code>optional .grpc.testing.ClientConfig setup = 1;</code> */
 public io.grpc.testing.ClientConfigOrBuilder getSetupOrBuilder() {
   if (argtypeCase_ == 1) {
     return (io.grpc.testing.ClientConfig) argtype_;
   }
   return io.grpc.testing.ClientConfig.getDefaultInstance();
 }