class_docstr: Wraps a xla_data_pb2.ShapeProto message with a convenient Python type.
  
  Provides direct access to the underlying xla_data_pb2.ShapeProto message in
  the
  message attribute, along with accessor wrappers to the message's fields.
  Avoid direct access to .message unless interacting directly with protobuf APIs
  like CopyFrom. In other words, prefer hauling the shape around in a Shape, and
  only access .message when strictly required by the protobuf API.
class_docstr_tok: ["Wraps","a","xla_data_pb2.ShapeProto","message","with","a","convenient","Python","type",".","Provides","direct","access","to","the","underlying","xla_data_pb2.ShapeProto","message","in","the","message","attribute",",","along","with","accessor","wrappers","to","the","message","'s","fields",".","Avoid","direct","access","to",".message","unless","interacting","directly","with","protobuf","APIs","like","CopyFrom",".","In","other","words",",","prefer","hauling","the","shape","around","in","a","Shape",",","and","only","access",".message","when","strictly","required","by","the","protobuf","API","."]
code: def element_type(self):
      return self.message.element_type
  
file_path: tensorflow-upstream/third_party/xla/xla/python_api/xla_shape.py
imports: import numpy
  from local_xla.xla import xla_data_pb2
  from xla.python_api import types_
label_desc: Use image node_id 2 for calling the Shape obj's underlying member method code with example usage: obj.element_type() and returns: self