public com.example.grpc.HelloRequest getDefaultInstanceForType() { return com.example.grpc.HelloRequest.getDefaultInstance(); }
public com.example.grpc.HelloRequest getDefaultInstanceForType() { return com.example.grpc.HelloRequest.getDefaultInstance(); }
public com.example.grpc.HelloRequest getDefaultInstanceForType() { return com.example.grpc.HelloRequest.getDefaultInstance(); }
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public Builder mergeFrom(com.example.grpc.HelloRequest other) { if (other == com.example.grpc.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAge() != 0L) { setAge(other.getAge()); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } internalGetMutableBagOfTricks().mergeFrom( other.internalGetBagOfTricks()); if (other.sentiment_ != 0) { setSentimentValue(other.getSentimentValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.example.grpc.HelloRequest other) { if (other == com.example.grpc.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAge() != 0L) { setAge(other.getAge()); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } internalGetMutableBagOfTricks().mergeFrom( other.internalGetBagOfTricks()); if (other.sentiment_ != 0) { setSentimentValue(other.getSentimentValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.example.grpc.HelloRequest other) { if (other == com.example.grpc.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAge() != 0) { setAge(other.getAge()); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } internalGetMutableBagOfTricks().mergeFrom( other.internalGetBagOfTricks()); if (other.sentiment_ != 0) { setSentimentValue(other.getSentimentValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethod; if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { GreetingServiceGrpc.getSecondGreetingMethod = getSecondGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "secondGreeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("secondGreeting")) .build(); } } } return getSecondGreetingMethod; }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethod; if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { GreetingServiceGrpc.getGreetingMethod = getGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "greeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("greeting")) .build(); } } } return getGreetingMethod; }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethod; if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { GreetingServiceGrpc.getGreetingMethod = getGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "greeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("greeting")) .build(); } } } return getGreetingMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getSecondGreetingMethod; if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getSecondGreetingMethod = GreetingServiceGrpc.getSecondGreetingMethod) == null) { GreetingServiceGrpc.getSecondGreetingMethod = getSecondGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "secondGreeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("secondGreeting")) .build(); } } } return getSecondGreetingMethod; }
private static io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse> getGreetingMethod; if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { synchronized (GreetingServiceGrpc.class) { if ((getGreetingMethod = GreetingServiceGrpc.getGreetingMethod) == null) { GreetingServiceGrpc.getGreetingMethod = getGreetingMethod = io.grpc.MethodDescriptor.<com.example.grpc.HelloRequest, com.example.grpc.HelloResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.GreetingService", "greeting")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.HelloResponse.getDefaultInstance())) .setSchemaDescriptor(new GreetingServiceMethodDescriptorSupplier("greeting")) .build(); } } } return getGreetingMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")