class_docstr: GRPCEndpoint
class_docstr_tok: ["GRPCEndpoint"]
docstr: ReadRecord
docstr_tok: ["ReadRecord"]
code: def ReadRecord(
      self, request, context
  ):  # pylint: disable=unused-argument
      """ReadRecord"""
      if len(self._data.shape) == 1:
          tensor = tf.compat.v1.make_tensor_proto(
              self._data[
                  request.offset : request.offset + request.length
              ]
          )
      else:
          tensor = tf.compat.v1.make_tensor_proto(
              self._data[
                  request.offset : request.offset + request.length, :
              ]
          )
      record = google.protobuf.any_pb2.Any()
      record.Pack(tensor)
      return endpoint_pb2.Response(record=record)
  
file_path: io/tensorflow_io/python/experimental/grpc_endpoint.py
imports: import os
  import sys
  import concurrent.futures
  import grpc
  import google.protobuf.any_pb2
  import tensorflow
  import endpoint_pb2
  import endpoint_pb2_grpc
label_desc: Use image node_id 5 for calling the GRPCEndpoint obj's underlying member method code with example usage: obj.ReadRecord(request, context) and returns: endpoint_pb2