示例#1
0
 public cn.klzhong.samples.proto.hello.Hello.HelloResponse build() {
   cn.klzhong.samples.proto.hello.Hello.HelloResponse result = buildPartial();
   if (!result.isInitialized()) {
     throw newUninitializedMessageException(result);
   }
   return result;
 }
示例#2
0
 public cn.klzhong.samples.proto.hello.Hello.HelloResponse buildPartial() {
   cn.klzhong.samples.proto.hello.Hello.HelloResponse result =
       new cn.klzhong.samples.proto.hello.Hello.HelloResponse(this);
   int from_bitField0_ = bitField0_;
   int to_bitField0_ = 0;
   if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
     to_bitField0_ |= 0x00000001;
   }
   result.errCode_ = errCode_;
   if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
     to_bitField0_ |= 0x00000002;
   }
   result.errMsg_ = errMsg_;
   if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
     to_bitField0_ |= 0x00000004;
   }
   result.result_ = result_;
   result.bitField0_ = to_bitField0_;
   onBuilt();
   return result;
 }
示例#3
0
 public Builder mergeFrom(cn.klzhong.samples.proto.hello.Hello.HelloResponse other) {
   if (other == cn.klzhong.samples.proto.hello.Hello.HelloResponse.getDefaultInstance())
     return this;
   if (other.hasErrCode()) {
     setErrCode(other.getErrCode());
   }
   if (other.hasErrMsg()) {
     bitField0_ |= 0x00000002;
     errMsg_ = other.errMsg_;
     onChanged();
   }
   if (other.hasResult()) {
     bitField0_ |= 0x00000004;
     result_ = other.result_;
     onChanged();
   }
   this.mergeUnknownFields(other.getUnknownFields());
   return this;
 }
示例#4
0
 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
   return cn.klzhong.samples.proto.hello.Hello.HelloResponse.getDescriptor()
       .getEnumTypes()
       .get(0);
 }
示例#5
0
 public cn.klzhong.samples.proto.hello.Hello.HelloResponse getDefaultInstanceForType() {
   return cn.klzhong.samples.proto.hello.Hello.HelloResponse.getDefaultInstance();
 }