def __init__(self, text, segment_type=None,<EOL>is_bold=False, is_italic=False, is_strikethrough=False,<EOL>is_underline=False, link_target=None):
if segment_type is not None:<EOL><INDENT>self.type_ = segment_type<EOL><DEDENT>elif link_target is not None:<EOL><INDENT>self.type_ = hangouts_pb2.SEGMENT_TYPE_LINK<EOL><DEDENT>else:<EOL><INDENT>self.type_ = hangouts_pb2.SEGMENT_TYPE_TEXT<EOL><DEDENT>self.text = text<EOL>self.is_bold = is_bold<EOL>self.is_italic = is_italic<EOL>self.is_strikethrough = is_strikethrough<EOL>self.is_underline = is_underline<EOL>self.link_target = link_target<EOL>
Create a new chat message segment.