public com.example.grpc.EchoResponse getDefaultInstanceForType() { return com.example.grpc.EchoResponse.getDefaultInstance(); }
/** * <code>string message = 1;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>string from = 2;</code> */ public Builder clearFrom() { from_ = getDefaultInstance().getFrom(); onChanged(); return this; } /**
public Builder mergeFrom(com.example.grpc.EchoResponse other) { if (other == com.example.grpc.EchoResponse.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (!other.getFrom().isEmpty()) { from_ = other.from_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static io.grpc.MethodDescriptor<com.example.grpc.EchoRequest, com.example.grpc.EchoResponse> getEchoMethodHelper() { io.grpc.MethodDescriptor<com.example.grpc.EchoRequest, com.example.grpc.EchoResponse> getEchoMethod; if ((getEchoMethod = EchoServiceGrpc.getEchoMethod) == null) { synchronized (EchoServiceGrpc.class) { if ((getEchoMethod = EchoServiceGrpc.getEchoMethod) == null) { EchoServiceGrpc.getEchoMethod = getEchoMethod = io.grpc.MethodDescriptor.<com.example.grpc.EchoRequest, com.example.grpc.EchoResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.example.grpc.EchoService", "echo")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.EchoRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.example.grpc.EchoResponse.getDefaultInstance())) .setSchemaDescriptor(new EchoServiceMethodDescriptorSupplier("echo")) .build(); } } } return getEchoMethod; }