public com.example.grpc.TranslationRequest getDefaultInstanceForType() { return com.example.grpc.TranslationRequest.getDefaultInstance(); }
/** * <code>string message = 1;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
public Builder mergeFrom(com.example.grpc.TranslationRequest other) { if (other == com.example.grpc.TranslationRequest.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.from_ != 0) { setFromValue(other.getFromValue()); } if (other.to_ != 0) { setToValue(other.getToValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static io.grpc.MethodDescriptor<com.example.grpc.TranslationRequest, com.example.grpc.TranslationResponse> getTranslateMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.TranslationRequest, com.example.grpc.TranslationResponse> getTranslateMethod; if ((getTranslateMethod = TranslationServiceGrpc.getTranslateMethod) == null) { synchronized (TranslationServiceGrpc.class) { if ((getTranslateMethod = TranslationServiceGrpc.getTranslateMethod) == null) { TranslationServiceGrpc.getTranslateMethod = getTranslateMethod = io.grpc.MethodDescriptor.<com.example.grpc.TranslationRequest, com.example.grpc.TranslationResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.TranslationService", "translate")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.TranslationRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.TranslationResponse.getDefaultInstance())) .setSchemaDescriptor(new TranslationServiceMethodDescriptorSupplier("translate")) .build(); } } } return getTranslateMethod; }