def _serialized_plugin_data(self, data_oneof_field, text_protobuffer):
    oneof_type_dict = {DATA_TYPE_EXPERIMENT: api_pb2.Experiment, DATA_TYPE_SESSION_START_INFO: plugin_data_pb2.SessionStartInfo, DATA_TYPE_SESSION_END_INFO: plugin_data_pb2.SessionEndInfo}
    protobuffer = text_format.Merge(text_protobuffer, oneof_type_dict[data_oneof_field]())
    plugin_data = plugin_data_pb2.HParamsPluginData()
    getattr(plugin_data, data_oneof_field).CopyFrom(protobuffer)
    return metadata.create_summary_metadata(plugin_data).plugin_data.content
def _serialized_plugin_data(self, data_oneof_field, text_protobuffer):
    oneof_type_dict = {DATA_TYPE_EXPERIMENT: api_pb2.Experiment, DATA_TYPE_SESSION_START_INFO: plugin_data_pb2.SessionStartInfo, DATA_TYPE_SESSION_END_INFO: plugin_data_pb2.SessionEndInfo}
    protobuffer = text_format.Merge(text_protobuffer, oneof_type_dict[data_oneof_field]())
    plugin_data = plugin_data_pb2.HParamsPluginData()
    getattr(plugin_data, data_oneof_field).CopyFrom(protobuffer)
    return metadata.create_summary_metadata(plugin_data).plugin_data.content