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
 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();
   }
 }
Exemplo n.º 5
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();
 }